[pypy-dev] __builtin__ module

Thomas Heller theller at python.net
Wed Jan 22 18:15:12 CET 2003


Boyd Roberts <boyd at strakt.com> writes:

> Thomas Heller wrote:
> 
> >I don't think so. For me, this is a fine implementation of chr():
> >
> >def chr(i):
> >    return "\x00\x01\x02x03...\xFF"[i]
> >
> 
> That's dreadful.
> 
>     def chr(i):
>         return'%c' % i
> 

Maybe, but you probably got my point...

Thomas



More information about the Pypy-dev mailing list