Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

This is for purpose. Path is not a glob pattern, and glob pattern is not a 
path. '*.txt' is aт ordinary file name on Linux and is invalid file name on 
Windows. If we wanted to accept Path in any place that accepts a string, we 
would make Path a subclass of str.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35453>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to