[pypy-issue] [issue1259] module __file__ attribute shows wrong path

bdk tracker at bugs.pypy.org
Mon Feb 11 01:53:07 CET 2013

bdk <bdkearns at gmail.com> added the comment:

$ ./pypy/goal/pypy-c 
Python 2.7.3 (8556098ab5f0, Feb 10 2013, 04:31:21)
[PyPy 2.0.0-beta1 with GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``why did you guys have to make the
builtin fortune more interesting than actual work? i just catched myself
restarting pypy 20 times''
>>>> import sys; sys.__file__
>>>> import cPickle; cPickle.__file__
>>>> import os; os.__file__
>>>> import time; time.__file__

these are both inconsistent and not correct. can they be fixed to give sane 
answers? docs seem to imply they should behave like this:


>>>> import sys
>>>> sys.__file__

>>>> import cPickle
>>>> cPickle.__file__

>>>> import os
>>>> os.__file__

release:  -> 2.0

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list