[Python-ideas] Pre-PEP Adding A Secrets Module To The Standard Library
Stephen J. Turnbull
stephen at xemacs.org
Sun Sep 20 06:45:36 CEST 2015
Chris Angelico writes:
> My personal preference for shed colour: token_bytes returns a
> bytestring, its length being the number provided. All the others
> return Unicode strings, their lengths again being the number provided.
> So they're all text bar the one that explicitly says it's in bytes.
I think that token_url may need a bytes mode, for the same reasons
that bytes needs __mod__: such tokens will often be created and parsed
by programs that never leave the "ASCII-compatible bytes" world.
More information about the Python-ideas
mailing list