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. _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com