[Python-Dev] Special file "nul" in Windows and os.stat

"Martin v. Löwis" martin at v.loewis.de
Thu Oct 25 06:05:51 CEST 2007

> So, the question is what we should do?:

Before this question can be answered, I think we need to fully
understand what precisely is happening in 2.4, and what precisely
is happening in 2.5.

AFAICT, it is *not* the case that Python 2.4 (indirectly) has
hard-coded the names CON, PRN, NUL etc. in the C library. Instead,
Python 2.4 *also* relies on kernel32 functions to determine that
these files "exist".

My question now is what specific kernel32 functions Python 2.4
calls to determine that NUL is a file; before that question
is sufficiently answered, I don't think any action should be


More information about the Python-Dev mailing list