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

bdk tracker at bugs.pypy.org
Mon Feb 11 10:36:26 CET 2013


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

furthermore, this behavior has changed sometime in the past months:

$ ~/pypy-c-jit-57379-5c84521f68f5-linux64/bin/pypy 
imPython 2.7.3 (5c84521f68f5, Sep 19 2012, 04:35:33)
[PyPy 1.9.1-dev0 with GCC 4.7.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
pAnd now for something completely different: ``redefining yellow seems like a
better idea''
>>>> import sys
>>>> print sys.__file__
/home/buildslave/bot64/pypy-c-jit-linux-x86-64/build/pypy/module/sys

$ ~/pypy-c-jit-61025-8556098ab5f0-linux64/bin/pypy 
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: ``happy new year''
>>>> import sys
>>>> print sys.__file__
/home/pypy/module/sys

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1259>
________________________________________


More information about the pypy-issue mailing list