[pypy-dev] New __builtin__

Scott Fenton scott at fenton.baltimore.md.us
Fri Jan 24 14:25:23 CET 2003


Yes, everyone, it is the moment you have all dreaded.
A new version of pure python __builtin__s. This version
contains nudity, sexual references, chr implemented
using '%c'%i, an optimized ord, multiarg map and
zip, and the new functions unichr, oct, hex, staticmethod,
*attr (for * in (get,has,set)), isinstance, issubclass,
and slice. I did not include classmethod as this seems
to warrent further discussion. Stuff I think can be easily
done in python that haven't been yet: dir, raw_input, reload,
round, and xrange.

thinks-python-can-be-faster-than-c-ly yours,
-Scott

-- 
char m[9999],*n[99],*r=m,*p=m+5000,**s=n,d,c;main(){for(read(0,r,4000);c=*r;
r++)c-']'||(d>1||(r=*p?*s:(--s,r)),!d||d--),c-'['||d++||(*++s=r),d||(*p+=c==
'+',*p-=c=='-',p+=c=='>',p-=c=='<',c-'.'||write(1,p,1),c-','||read(2,p,1));}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20030124/12d00405/attachment.pgp>


More information about the Pypy-dev mailing list