This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gaborjbernat
Recipients gaborjbernat, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-01-07.09:23:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610011401.69.0.814272139734.issue42855@roundup.psfhosted.org>
In-reply-to
Content
❯ py -c "from pathlib import Path; Path('http://w.org').exists()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python39\lib\pathlib.py", line 1407, in exists
    self.stat()
  File "C:\Python39\lib\pathlib.py", line 1221, in stat
    return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'http:\\w.org'

The above code returns correctly False on UNIX systems.
History
Date User Action Args
2021-01-07 09:23:21gaborjbernatsetrecipients: + gaborjbernat, paul.moore, tim.golden, zach.ware, steve.dower
2021-01-07 09:23:21gaborjbernatsetmessageid: <1610011401.69.0.814272139734.issue42855@roundup.psfhosted.org>
2021-01-07 09:23:21gaborjbernatlinkissue42855 messages
2021-01-07 09:23:21gaborjbernatcreate