[New-bugs-announce] [issue7140] imp.new_module does not function correctly if the module is returned from a function and used directly

Jamie Kirkpatrick report at bugs.python.org
Thu Oct 15 13:24:52 CEST 2009


New submission from Jamie Kirkpatrick <jkp at kirkconsulting.co.uk>:

See the testcase included.  If you instead assign the result of the 
get_module() call to a variable and then make the call to the function 
defined in that module it works as expected.

----------
components: Library (Lib)
files: testcase.py
messages: 94082
nosy: jkp
severity: normal
status: open
title: imp.new_module does not function correctly if the module is returned from a function and used directly
type: behavior
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file15133/testcase.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7140>
_______________________________________


More information about the New-bugs-announce mailing list