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

2013-07-31 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Work in progress in issue 18214.

--
nosy: +pitrou
resolution:  -> duplicate
status: open -> closed
superseder:  -> Stop purging modules which are garbage collected before shutdown

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-11-14 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

But there were r85393 (2.7) and r85394 (3.1).

--
nosy: +Arfrever
versions: +Python 2.7, Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-10-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Since that revision only touched py3k, I am guessing that it only broke 3.2.

--
nosy: +terry.reedy
versions: +Python 3.2 -Python 2.5, Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-10-12 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Rebroken in r85392. See #10068.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-10-15 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r75437.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-10-15 Thread Jamie Kirkpatrick

Jamie Kirkpatrick  added the comment:

Updated the testcase to show that the __dict__ for the module is incorrect 
unless the module is assigned to a temp variable.

--
Added file: http://bugs.python.org/file15134/testcase.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-10-15 Thread Jamie Kirkpatrick

New submission from Jamie Kirkpatrick :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com