Issue1739696
Created on 2007-06-19 12:28 by michael.foord, last changed 2007-07-12 08:11 by georg.brandl.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
inspect-patch.patch
|
michael.foord,
2007-06-19 12:28
|
Context Patch for inspect.py against SVN head |
|
|
|
msg52785 - (view) |
Author: Michael Foord (michael.foord) |
Date: 2007-06-19 12:28 |
|
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
|
|
msg52786 - (view) |
Author: Georg Brandl (georg.brandl) |
Date: 2007-07-12 08:11 |
|
Committed as rev. 56296, 56297 (2.5).
|
|
| Date |
User |
Action |
Args |
| 2007-06-19 12:28:04 | mjfoord | create | |
|