Message132
The program below works with CPython but raises a TypeError with
JPython. The exception message is somewhat ironic.
----------------- BEGIN test180.py -----------------
class A: pass
def f(*args): print args
apply(f, (1,2,3), A().__dict__)
----------------- END -----------------
d:\java\jpython\test>jpython test180.py
Traceback (innermost last):
File "test180.py", line 6, in ?
TypeError: apply() 3rd argument must be a dictionary with string keys
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:16:42 | admin | link | issue222843 messages |
| 2008-02-20 17:16:42 | admin | create | |
|