Does This Scare You?
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Fri Aug 19 19:42:12 EDT 2016
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
More information about the Python-list
mailing list