[Patches] [ python-Patches-1739696 ] Patch inspect.py for IronPython / Jython Compatibility

SourceForge.net noreply at sourceforge.net
Wed Jun 20 18:05:36 CEST 2007


Patches item #1739696, was opened at 2007-06-19 08:28
Message generated for change (Settings changed) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1739696&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mike Foord (mjfoord)
>Assigned to: Collin Winter (collinwinter)
Summary: Patch inspect.py for IronPython / Jython Compatibility

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1739696&group_id=5470


More information about the Patches mailing list