Message2399

Author dsuch
Recipients
Date 2005-01-03.02:45:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch implements most of the functionality of PEP
279 The enumerate() built-in function. It can't be
fully implemented in this moment, because of:

Jython 2.2aNewstyle on java1.4.2_06 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> class C(enumerate):pass
...
Traceback (innermost last):
  File "<console>", line 1, in ?
TypeError: base is not a class object:
'reflectedfunction' object
>>>

I'm willing to develop it further but there must be a
way to subclass builtin base types first (and it seems
to be a matter of days now :-)

It passes most of the test from test_enumerate.py of
Python 2.3.4 (included in attachment) - I commented out
those requiring sets module and subclassing builtins.
History
Date User Action Args
2008-02-20 17:18:25adminlinkissue1094757 messages
2008-02-20 17:18:25admincreate