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
--
https://mail.python.org/mailman/listinfo/python-list
- Does This Scare You? Lawrence D’Oliveiro
- Re: Does This Scare You? Chris Angelico
- Re: Does This Scare You? Wildman via Python-list
- Re: Does This Scare You? Chris Angelico
- Re: Does This Scare You? Wildman via Python-list
- Re: Does This Scare You? Ethan Furman
- Re: Does This Scare You? Michael Torrie
- Re: Does This Scare You? eryk sun
- Re: Does This Scare You? Chris Angelico
- Re: Does This Scare You? eryk sun
- Re: Does This Scare You? Chris Angelico
