[Python-Dev] bytes.from_hex()

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 4 01:02:26 CET 2006


Ron Adam wrote:

> This would apply to codecs that 
> could return either bytes or strings, or strings or unicode, or bytes or 
> unicode.

I'd need to see some concrete examples of such codecs
before being convinced that they exist, or that they
couldn't just as well return a fixed type that you
then transform to what you want.

I suspect that said transformation would involve some
further encoding or decoding, in which case you really
have more than one codec.

--
Greg


More information about the Python-Dev mailing list