Message52785
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 |
|
| Date |
User |
Action |
Args |
| 2007-08-23 15:58:49 | admin | link | issue1739696 messages |
| 2007-08-23 15:58:49 | admin | create | |
|