Does This Scare You?
Wildman
best_lay at yahoo.com
Fri Aug 19 21:11:54 EDT 2016
On Sat, 20 Aug 2016 10:57:37 +1000, Chris Angelico wrote:
> On Sat, Aug 20, 2016 at 9:42 AM, Lawrence D’Oliveiro
> <lawrencedo99 at gmail.com> wrote:
>> Python 3.5.2+ (default, Aug 5 2016, 08:07:14)
>> [GCC 6.1.1 20160724] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> from pathlib import PureWindowsPath
>> >>> PureWindowsPath("prn").is_reserved()
>> True
>> >>> PureWindowsPath("prn.doc").is_reserved()
>> True
>> >>> PureWindowsPath("com9.exe").is_reserved()
>> True
>> >>> PureWindowsPath("c:/my documents/prn.doc").is_reserved()
>> True
>
> When was the last time you wanted to create a file with a reserved
> name? Paths, drive letters, file extensions, don't matter. All that
> matters is the base name.
>
> Not a Python issue; they're reserved by Windows.
>
> ChrisA
Since I am fairly new to Python, I realize there is much that I
still don't know but I don't understand how Windows can have
reserved names on a Linux system. What am I missing?
--
<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!
More information about the Python-list
mailing list