[pypy-dev] __builtin__ module

Boyd Roberts boyd at strakt.com
Thu Jan 23 11:09:05 CET 2003


Armin Rigo wrote:

>def chr(i):
>    return "\x00\x01\x02x03...\xFF"[i]
>
>  
>
The problem with this is that it's absurdly verbose as well as error
prone to enumerate the string constant.  It may be faster, but it's
no good if it's _wrong_.




More information about the Pypy-dev mailing list