[Python-3000] bytes: compare bytes to integer
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Aug 19 02:27:38 CEST 2007
Nick Coghlan wrote:
> bytes_obj[0] == ord('x')
That's a rather expensive way of comparing an
integer with a constant, though.
--
Greg
More information about the Python-3000
mailing list