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

SourceForge.net noreply at sourceforge.net
Thu Jul 12 10:11:42 CEST 2007


Patches item #1739696, was opened at 2007-06-19 12:28
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Accepted
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

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

>Comment By: Georg Brandl (gbrandl)
Date: 2007-07-12 08:11

Message:
Logged In: YES 
user_id=849994
Originator: NO

Committed as rev. 56296, 56297 (2.5).

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

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