[pypy-dev] New __builtin__
hpk at trillke.net
Mon Jan 27 10:48:39 CET 2003
[Scott Fenton Sun, Jan 26, 2003 at 07:24:06PM -0500]
> On Mon, Jan 27, 2003 at 01:17:31AM +0100, holger krekel wrote:
> > i tested your code with the Python-2.2.2 test_builtin.py
> > (found in Python-2.2.2/Lib/test, has some dependencies).
> > 1) your code does not import cleanly (some typos here
> > and there)
> > 2) the tests fail right at 'abs', the first builtin
> > because you don't throw a TypeError if the argument
> > is not a number.
> > I take it that you didn't seriously intend your code
> > to be used as is.
> <sarcasm>Them thar's fightin' words, pardner</sarcasm>
> > Nevertheless, it would be nice to have a python
> > implementation of the builtin module that passes
> > its CPython's tests. Also the docstrings should be
> > copied from Python-2.3. This can be done automatically
> > by writing a script and iterating over
> > vars(__import__('__builtin__')) and using the inspect
> > module. I hopefully can do this soon and check it into
> > the upcoming repository. Or somebody else does it before
> > me.
> Don't worry. I'll take care of it. I just wanted to get
> a rough sketch out first
great. sorry if my posting sounded to harsh.
More information about the Pypy-dev