[pypy-dev] __builtin__ module
Armin Rigo
arigo at tunes.org
Fri Jan 24 10:39:35 CET 2003
Hello Scott,
On Thu, Jan 23, 2003 at 03:32:06PM -0500, Scott Fenton wrote:
> > Except that classmethod, staticmethod, and super could be done
> > in pure Python. Aren't those even in Guido's descrintro??
>
> They may well be. My point in writing some of __builtin__ was to
> get some inital code out there, not to draw a line in the sand.
> The next version will probably have some more stuff included in
> it.
Sure. I was rather talking about the comments you added in the e-mail, where
you say that some functions don't seem to be implementable.
About chr(i) vs. '%c'%i vs. '\x00\x01...\xFF'[i]: what I feel this shows is
that one of these solutions must be thought as the primitive way to build a
character, and the others should use it; and I definitely feel that chr() is
the primitive way to build a character. Contrary to what I said in a previous
e-mail I don't think that chr() should be implemented with '%c'%i. On the
other hand, I guess that the strings' % operator could nicely be implemented
in pure Python. It would then have to use chr() to implement the %c format
code. It looks more reasonable than the other way around.
A bientôt,
Armin.
More information about the Pypy-dev
mailing list