[PyPy-issue] [issue505] site.py in local directory imported on startup.
Lennart Regebro
pypy-dev-issue at codespeak.net
Thu Apr 8 03:52:36 CEST 2010
Lennart Regebro <regebro at gmail.com> added the comment:
I'm sorry, I was clear. It doesn't import site.py, it *runs* it. Like so:
$ mkdir /tmp/sajt
$ cd /tmp/sajt
$ echo "print 'THIS SHOULD NOT BE DISPLAYED'" > site.py
$ python2.5
Python 2.5.4 (r254:67916, Jan 20 2010, 21:44:03)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ python2.6
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ /opt/pypy-1.2/bin/pypy
THIS SHOULD NOT BE DISPLAYED
Python 2.5.2 (72074, Mar 10 2010, 21:30:03)
[PyPy 1.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``"that's why the 'or' is really an
'and' "''
>>>>
----------
nosy: +pypy-issue -ac, arigo, cfbolz, mwh, pedronis, tismer
_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue505>
_______________________________________________________
More information about the Pypy-issue
mailing list