[issue1311] os.path.exists(os.devnull) regression on windows

2019-08-21 Thread Steve Dower
Steve Dower added the comment: New changeset 9eb3d5463976068900e94b860ced7e035885835c by Steve Dower in branch '3.8': bpo-37834: Normalise handling of reparse points on Windows (GH-15370) https://github.com/python/cpython/commit/9eb3d5463976068900e94b860ced7e035885835c -- _

[issue1311] os.path.exists(os.devnull) regression on windows

2019-08-21 Thread Steve Dower
Steve Dower added the comment: Well, I was trying not to resurrect this old issue, but looks like I did it accidentally. Hi there, old hands! We miss you :) We also figured out a new [l]stat() implementation on Windows that handles symlinks and junctions better, and also non-file types such

[issue1311] os.path.exists(os.devnull) regression on windows

2019-08-21 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +15082 pull_request: https://github.com/python/cpython/pull/15370 ___ Python tracker ___ __

[issue1311] os.path.exists(os.devnull) regression on windows

2019-08-21 Thread Steve Dower
Steve Dower added the comment: New changeset df2d4a6f3d5da2839c4fc11d31511c8e028daf2c by Steve Dower in branch 'master': bpo-37834: Normalise handling of reparse points on Windows (GH-15231) https://github.com/python/cpython/commit/df2d4a6f3d5da2839c4fc11d31511c8e028daf2c -- nosy: +

[issue1311] os.path.exists(os.devnull) regression on windows

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: All these tests on Windows XP SP4, executing os.stat("nul") Python 2.1 thru 2.4 raises: OSError: [Errno 22] Invalid argument: 'nul' Python 2.5 gives a different error: WindowsError: [Error 87] El parámetro no es correcto: 'nul' -- nosy: +gagenelli

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-26 Thread Facundo Batista
Facundo Batista added the comment: >>> import os.path >>> os.path.exists("con") False >>> os.path.exists("nul") False >>> os.path.exists("prn") False This is in Windows 2000 (5.00.2195) sp4, using *both* Python 2.3.5 and 2.5.1, no cygwin. Personally, I'm +1 with Mark Hammond about this: I

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-24 Thread Martin v. Löwis
Martin v. Löwis added the comment: Please disregard Cygwin Python for this discussion. It (probably) uses the stat implementation from cygwin1.dll, which may work differently from Cygwin release to Cygwin release. __ Tracker <[EMAIL PROTECTED]>

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-24 Thread Martin v. Löwis
Martin v. Löwis added the comment: As Facundo found out, the behavior of os.path.exists is fairly irrelevant here, as that functions is trivial. What really matters is whether os.stat succeeds for NUL. Can those users for whom it succeeds please report what Windows versions they are using, and wh

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-24 Thread Martin v. Löwis
Martin v. Löwis added the comment: The purpose of Py_GetFileAttributesEx* is to wrap GetFileAttributesEx, on systems where it doesn't exist (Windows 95 in particular). If it doesn't exist, it is emulated; if it exists, it is directly called. -- nosy: +loewis

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-23 Thread Kevin Dwyer
Kevin Dwyer added the comment: Ok, it seems that Python 2.5 implements two new functions Py_GetFileAttributesExA and Py_GetFileAttributesExW in posixmodule.c within the #ifdef MS_WINDOWS block that may return ERROR_INVALID_PARAMETER to os.stat, which will percolate WindowsError up to os.exists():

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-23 Thread Kevin Dwyer
Kevin Dwyer added the comment: I tried this under Python 2.3.3, 2.5.1 (native) and 2.3.4 (cygwin). The operating system is Windows 2000 SP4. C:\Python23>python Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for mor

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-23 Thread David Kågedal
David Kågedal added the comment: I tried it on two different machines, and got two different answers: conan$ /cygdrive/c/Python25/python -c 'import os.path; print os.path.exists("nul")' False conan$ /cygdrive/c/Python24/python -c 'import os.path; print os.path.exists("nul")' False conan$ /cygdr

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-22 Thread Facundo Batista
Facundo Batista added the comment: You migrated only of Python version, or also of windows installation? I checked Py25 and Py23 in my Win 2k, and in both I have the same behaviour: C:\Python23>python Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "c

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-22 Thread David Kågedal
David Kågedal added the comment: It's called os.devnull, and nothing else. -- title: os.path.exists(os.devnul) regression on windows -> os.path.exists(os.devnull) regression on windows __ Tracker <[EMAIL PROTECTED]> ___