[Python-ideas] Python 3.x and bytes

Nick Coghlan ncoghlan at gmail.com
Tue May 24 07:19:27 CEST 2011


On Tue, May 24, 2011 at 12:40 PM, Stephen J. Turnbull
<stephen at xemacs.org> wrote:
> Bruce Leban writes:
>  > and the I've always read the leading zero to mean 'this is a
>  > number'.
>
> That's precisely Nick's point in suggesting it!

Indeed :)

Still, I've come around to the point of view that the simplest and
clearest way to write it is simply "ord('x')", and if that is in a
time-critical inner loop, save the value in a named variable.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list