[pypy-dev] Builtin types
Scott Fenton
scott at fenton.baltimore.md.us
Thu Jan 23 23:17:23 CET 2003
Hello all. While trying to mix up some more stuff for
__builtin__, I came up with an interesting problem.
The solution I found for classmethod (using google on
c.l.python, since I couldn't figure it out myself)
requires that classes that use it
must derive from object. That made me wonder, could
we just automatically derive everything from object
in Minimal? The big problem with doing this in CPython,
as I understand it, is extensions that need to be
converted, but we don't have that problem here, obviously.
So would it be alright if I went ahead and used this code
as if everything derived from object?
-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/20030123/8ea67429/attachment.pgp>
More information about the Pypy-dev
mailing list