[Python-Dev] Excluding the current path from module search path?
R. David Murray
rdmurray at bitdance.com
Tue Aug 25 18:43:03 CEST 2009
On Tue, 25 Aug 2009 at 16:59, Chris Withers wrote:
> In any case, as a parting comment, http://bugs.python.org/issue1232023 seems
> to have been committed with no tests and the only documentation being a one
> liner in the NEWS.txt file. Was there other discussion of this?
It probably should have gone into What's New as well, but it was too
late for that at the time the bug was filed.
> (Incidentally, export PYTHONPATH= or its Windows equivalent circumvents
> whatever the patch was trying to achieve, so the change doesn't seem to make
> sense anyway...)
The change was fixing a clear bug: blank path elements were being
introduced into the path _unintentionally_ and unexpectedly. Setting
PYTHONPATH would be a way to do it intentionally.
More information about the Python-Dev