-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Closed
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Those APIs are used by pickle and provide a great way to handle escaped bytes sequences in much the same way as str(bytes)/repr(bytes) works.
In Python 2, these were used by the string_escape
codec, but that was removed for some reason. Perhaps we should revive this as bytes_escape
codec.
Example:
codecs.escape_decode(str(b))[0][2:-1] == b
Linked PRs
- gh-136278: Add documentation for codecs.escape_encode() and codecs.escape_decode() #136310
- gh-136278: Document codecs.escape_encode() and codecs.escape_decode() #136314
- [3.14] gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH-136314) #137149
- [3.13] gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH-136314) #137150
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Done
Status
Todo