Message132

Author bckfnn
Recipients
Date 2000-11-18.19:33:51
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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

History
Date User Action Args
2008-02-20 17:16:42adminlinkissue222843 messages
2008-02-20 17:16:42admincreate