[pypy-dev] __builtin__ module

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


On Fri, Jan 24, 2003 at 02:48:42PM +0100, holger krekel wrote:
>
> what do you mean by this?  "everything" can always be expressed in
> a python function.  It's a matter of time and space so could you
> be more specific?

Mostly, stuff that exists as "builtin" syntax, ie printf-style formats
that can be implemented "under the hood" using sprintf should probably
be C. "everything" can be expressed in term of my signature, I just
wouldn't try it if my life depened on it.

>
> Anyway, I would try very hard to express all the builtins in python.
> And i see Thomas Heller's ctypes approach as a way to make
> this possible.  Before coding anything in C there must be a
> real *need* to do so.
>

I can make chr python either way. It's a question of how "deep" we want
python to go.

-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/10b11ad0/attachment.pgp>


More information about the Pypy-dev mailing list