Message2399
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. |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:25 | admin | link | issue1094757 messages |
2008-02-20 17:18:25 | admin | create | |
|