[Python-Dev] bytes.from_hex() (original) (raw)
Ron Adam rrr at ronadam.com
Wed Feb 22 21:28:52 CET 2006
- Previous message: [Python-Dev] bytes.from_hex()
- Next message: [Python-Dev] bytes.from_hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Terry Reedy wrote:
"Greg Ewing" <greg.ewing at canterbury.ac.nz> wrote in message
Which is why I think that only unicode codings should be available through the .encode and .decode interface. Or alternatively there should be something more explicit like .unicodeencode and .unicodedecode that is thus restricted. I prefer the shorter names and using recode, for instance, for bytes to bytes.
While I prefer constructors with an explicit encode argument, and use a recode() method for 'like to like' coding. Then the whole encode/decode confusion goes away.
- Previous message: [Python-Dev] bytes.from_hex()
- Next message: [Python-Dev] bytes.from_hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]