A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-October/075010.html below:

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

[Python-Dev] Special file "nul" in Windows and os.statFred 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4