On 10/27/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
Jim sent this to me when the python-dev list was down for maintenance. Can anyone with Python 2.5 who knows something about function internals enlighten us about what may have changed here. Previously the names of nested functions appeared in func_code.co_names but that doesn't appear to be the case in Python 2.5.
Confirmed. Try func_code.co_varnames instead. I don't know why the change, and a quick search wasn't very enlightening, other than they python guys mentioned something about co_names and co_varnames changed, and some people fixing this problem by using co_varnames in python 2.5. -Dan