[Python-Dev] bytes thoughts
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 17 01:09:46 CET 2006
More information about the Python-Dev mailing list
Fri Mar 17 01:09:46 CET 2006
- Previous message: [Python-Dev] bytes thoughts
- Next message: [Python-Dev] test_compiler failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Christos Georgiou wrote: > Well, what's the result of > > bytes([1,0,0])^ bytes([1,0]) > > ? Is it bytes([0,0,0]) (à la little-endian) or is it bytes([1,1,0]) > (straight conversion to base-256)? Or perhaps throw a ValueError if the > sizes differ? In the interests of refusing the temptation to guess, I'd go for the ValueError. Greg
- Previous message: [Python-Dev] bytes thoughts
- Next message: [Python-Dev] test_compiler failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list