[pypy-dev] New __builtin__
Scott Fenton
scott at fenton.baltimore.md.us
Sun Jan 26 17:33:52 CET 2003
Oops. Sorry about that. The code, as before, is at
http://fenton.balitmore.md.us/pypy.py
On Sun, Jan 26, 2003 at 05:28:03PM +0100, holger krekel wrote:
> [Scott Fenton Fri, Jan 24, 2003 at 08:25:23AM -0500]
> > 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.
>
> aehm, did i miss anything or was your attachment lost?
>
> > thinks-python-can-be-faster-than-c-ly yours,
>
> depends-on-what-you-measure-anyway-ly y'rs,
>
> holger
--
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));}
More information about the Pypy-dev
mailing list