[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Éric Araujo
Éric Araujo added the comment: > This site.py is only an example how it can happen. site is special, as it’s one of the modules imported during Python startup. Can you reproduce the bug with the same file named os.py? (I expect you can.) Can you reproduce with spam.py? (I think you can’t.)

[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Jan Kratochvil
Jan Kratochvil added the comment: This site.py is only an example how it can happen. In reality it is due to .py files intended for incompatible version of Python. I am not a Python programmer to have some appropriate incompatible code at hand. -- __

[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Éric Araujo
Éric Araujo added the comment: An alternate idea would be to recommend more strongly in the doc that people should not shadow standard library module names (in your example, site). -- nosy: +eric.araujo ___ Python tracker

[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Jan Kratochvil
New submission from Jan Kratochvil : People use custom Python builds setting PYTHONHOME and PYTHONPATH to these custom builds. This may be expected to break running system Python binary but it also unexpectedly breaks various applications which also embed Python: $ echo foo >site.py; export PY