Author michael.foord
Recipients
Date 2007-06-19.12:28:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Attached is a context patch against SVN head for the inspect module.

It moves getting a reference to 'code.co_code' into the body of the loop responsible for inspecting anonymous (tuple) arguments.

In IronPython, accessing 'co_code' raises a NotImplementedError - meaning that inspect.get_argspec is broken.

This patch means that *except* for functions with anonymous tuple arguments, it will work again - whilst maintaining full compatibility with the previous behaviour.

(A soimilar patch against Python 2.4.4 is in the IronPython Community Edition by Seo Sanghyeon.)

Jython has a similar patch to overcome the same issue by the way. See http://jython.svn.sourceforge.net/viewvc/jython?view=rev&revision=3200
History
Date User Action Args
2007-08-23 15:58:49adminlinkissue1739696 messages
2007-08-23 15:58:49admincreate