Message1375
Christian Junker reports on jython-users:
"""
It seems like the fromkeys method of the dict class is not correctly
implemented in Jython 2.2a1:
>>> dict.fromkeys(['k1', 'k2'])
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: descriptor 'fromkeys' requires 'dict' object but received a 'list'
It should require an iterable, not a dict as first argument.
"""
Note dict.fromkeys() was added to cpython in 2.3, but we are implementing it in 2.2 (as we do with a few other 2.3 features).
- kz |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:38 | admin | link | issue1619040 messages |
2008-02-20 17:17:38 | admin | create | |
|