This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: __file__ attribute missing from dynamicly loaded module
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, shacktoms
Priority: normal Keywords: patch

Created on 2003-08-25 18:16 by shacktoms, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fileattribute.cdiff shacktoms, 2003-08-25 18:16 moved call to _PyImport_FixupExtension
Messages (2)
msg44515 - (view) Author: Shack Toms (shacktoms) Date: 2003-08-25 18:16
This a patch that corresponds to Bug report [ 698282 ] 
__file__ attribute missing from dynamicly loaded module, 
submitted by dsweeton.

As he reports, if a single application embeds multiple 
interpreters, only the one with the first instance of a 
dynamically loaded module gets the __file__ attribute. It 
is missing from all later instances.
 
I have attached a cdiff patch, based on his comments.
msg44516 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-04 18:48
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as importdl.c  2.71 and
2.70.14.1, NEWS 1.831.4.31.
History
Date User Action Args
2022-04-10 16:10:50adminsetgithub: 39127
2003-08-25 18:16:01shacktomscreate