Michael Foord <mich...@voidspace.org.uk> added the comment:

Ok, so the cause of the bug is 'simple' - not sure what the best fix is.

When I run python from a freshly built py3k I have the following as sys.path:

['', '/dev/null/lib/python32.zip', '/compile/python-trunk3/Lib', 
'/compile/python-trunk3/Lib/plat-darwin', 
'/compile/python-trunk3/build/lib.macosx-10.4-x86_64-3.2-pydebug', 
'/Volumes/Second Drive/michael/.local/lib/python/3.2/site-packages']

Note that weird second entry!

support.forget(...) trys to unlink the supplied name (+.py + c|o) from every 
path in sys.path.

The unlink function catches OSError, but *only* if the errno is errno.ENOENT. 
On my system the specific error raises is:

OSError: [Errno 20] Not a directory

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8586>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to