Skip to content

wimglenn/all-escapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

all-escapes

Registers a codec for representing binary escapes in text domain.

>>> b"Hello, World!".decode("all-escapes")
'\\x48\\x65\\x6c\\x6c\\x6f\\x2c\\x20\\x57\\x6f\\x72\\x6c\\x64\\x21'

>>> r"\x48\x65\x6c\x6c\x6f\x2c\x20\x57\x6f\x72\x6c\x64\x21".encode("all-escapes")
b'Hello, World!'

About

Codec for binary escapes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages