[issue20541] os.path.exists() gives wrong answer for Windows special files

2014-02-07 Thread Eric Snow
Eric Snow added the comment: > As per issue 1311, the exists returns True <-> stat will work equivalence is deliberate. We'll have to find a different way to resolve issue 20053 on Windows. I was going t say we should note this design/impl. detail in the os.path.exists() docs. However, it alrea

[issue20541] os.path.exists() gives wrong answer for Windows special files

2014-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: As per issue 1311, the exists returns True <-> stat will work equivalence is deliberate. We'll have to find a different way to resolve issue 20053 on Windows. Due to the special files on Windows, the only reliable cross-platform way to find out whether or not *

[issue20541] os.path.exists() gives wrong answer for Windows special files

2014-02-07 Thread Vajrasky Kok
Vajrasky Kok added the comment: See also: http://bugs.python.org/issue1311 -- nosy: +vajrasky ___ Python tracker ___ ___ Python-bugs-l

[issue20541] os.path.exists() gives wrong answer for Windows special files

2014-02-07 Thread Nick Coghlan
New submission from Nick Coghlan: In trying to figure out why my fix for issue 20053 wasn't working on Windows, I eventually traced it back to the fact that "os.path.exists(os.devnull)" returns False on Windows, so pip isn't picking up my config file override in ensurepip, and reads the global