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/075012.html below:

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

[Python-Dev] Special file "nul" in Windows and os.stat [Python-Dev] Special file "nul" in Windows and os.statMark Hammond mhammond at skippinet.com.au
Wed Oct 24 23:42:58 CEST 2007
> So, the question is what we should do?:
> 
> 1. Rely on the kernel32 function and behaves like it says?
> 
> 2. Return a fixed response for this special file "nul"?
> 
> Personally, I prefer the first one, but it changed the semantic of
> os.path.exists("nul") (but this semantic is not clear, as we get
> different behaviour in different Python versions and windows
> versions).

Note that the same issue would exist for 'aux', 'con' and 'prn' too -
'comXX' 'lptXX' 'clock$' also seem to get special treatment.  I agree it is
unfortunate that the behaviour has changed, but these special names are
broken enough on Windows that (1) seems the sanest thing to do.

Mark

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