[Python-Dev] Special file "nul" in Windows and os.stat
Fred Drake
fdrake at acm.org
Wed Oct 24 23:34:45 CEST 2007
On Oct 24, 2007, at 4:23 PM, Facundo Batista wrote:
> There (and always talking in windows), the OP says the in Py2.4
> os.path.exists("nul") returned True and now in 2.5 returns False. Note
> that "nul" is an special file, something like /dev/null.
It's special, but in a different way. /dev/null really exists in the
Unix filesystem; "nul" is more magical than that.
What's more, it has peers: "prn", "com1" and others like that.
I don't know what the right way to handle these is (I'm no Windows
guru, or even regular user), but it's important to realize that the
pain of the specialness isn't limited. :-)
-Fred
--
Fred Drake <fdrake at acm.org>
More information about the Python-Dev
mailing list