[Python-3000] PEP 3138- String representation in Python 3000
Stephen J. Turnbull
stephen at xemacs.org
Sat May 17 23:57:34 CEST 2008
Greg Ewing writes:
> If you're choosing a compression method, it makes sense
> to choose 'zip', 'gzip', or 'bzip2', but less sense to
> choose 'hex' or 'base64',
Doesn't "consenting adults" cover choosing a nonsensical compressor?
Do you really think that .transform clients will really choose
'base64' when they want 'lzma'? If so, why isn't
if compression_method not in ['zip', 'lzma']:
raise PEBKAC_Error
sufficient protection?
> and even less 'utf8' or 'latin1'.
These will fail the typing tests, since they are string->bytes, not
bytes->bytes. These tests will be necessary, which could be
considered an argument against the flat namespace.
More information about the Python-3000
mailing list