[ python-Bugs-818315 ] Shared object modules in Windows have no
__file__.
SourceForge.net
noreply at sourceforge.net
Sun Dec 19 19:07:25 CET 2004
Bugs item #818315, was opened at 2003-10-05 23:44
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=818315&group_id=5470
Category: Windows
Group: None
>Status: Closed
>Resolution: Invalid
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: Martin v. Löwis (loewis)
Date: 2004-12-19 19:07
Message:
Logged In: YES
user_id=21627
It's as alanmcintyre says: math is not a shared object in
Windows. Closing this as invalid.
----------------------------------------------------------------------
Comment By: Alan McIntyre (ESRG) (alanmcintyre)
Date: 2004-11-06 21: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