Message2530

Author dustin19
Recipients
Date 2006-08-16.15:11:00
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
As best as I could tell, when jython is generating a
call to PyObjects._callextra to handle calls made using
the * or ** syntax, it is filling in empty * or **
arguments with Py.None, rather than the null that
_callextra is expecting.  As such, _callextra generates
an Exception with either "argument after * must be a
sequence" or "argument after ** must be a dictionary"
when there is no * or ** present in the call, respectively.

I've attached a diff file of SrcGenCompiler.py that
seems to take care of the problem (at least in my
testing).  I believe it is now treating the * and ** as
CodeCompiler.java does in visitCall, inserting them as
null rather than Py.None.
History
Date User Action Args
2008-02-20 17:18:34adminlinkissue1541355 messages
2008-02-20 17:18:34admincreate