[ python-Bugs-818315 ] Shared object modules in Windows have no __file__.

SourceForge.net noreply at sourceforge.net
Sat Nov 6 21:19:18 CET 2004


Bugs item #818315, was opened at 2003-10-05 16:44
Message generated for change (Comment added) made by alanmcintyre
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=818315&group_id=5470

Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Fincher (jemfinch)
Assigned to: Nobody/Anonymous (nobody)
Summary: Shared object modules in Windows have no __file__.

Initial Comment:
The subject basically says it.  Whether it's math.so,
operator.so, anything -- in *nix it has an __file__, in
Windows it doesn't.

----------------------------------------------------------------------

Comment By: Alan McIntyre (ESRG) (alanmcintyre)
Date: 2004-11-06 15:19

Message:
Logged In: YES 
user_id=1115903

In the case of the math module, I would assume that it
doesn't have a __file__ attribute on Windows because it's a
builtin and is rolled up into python2x.dll in the Windows
distribution. This seems to match up with the 2.3
codumentation: "The __file__ attribute is not present for C
modules that are statically linked into the interpreter; for
extension modules loaded dynamically from a shared library,
it is the pathname of the shared library file."



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=818315&group_id=5470


More information about the Python-bugs-list mailing list