[Python-ideas] Python 3.x and bytes

Guido van Rossum guido at python.org
Tue May 24 04:21:53 CEST 2011


2011/5/23 Bruce Leban <bruce at leapyear.org>:
> I like c'x'. It's easy to read and very explicitly constant and clear what
> the value is 'x'. (Some other letter instead of 'c' would be fine as well.)

We shouldn't add any new notation to create integers from characters
to the language. It's too small a use case for adding new syntax. I
would focus on agreeing on the notation that is most readable;
personally I vote for ord('x').

-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list