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 khock
Recipients barneygale, docs@python, khock, slateny
Date 2022-02-28.17:43:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646070193.39.0.139397868602.issue45991@roundup.psfhosted.org>
In-reply-to
Content
> Maybe instead a note could be put in the Pathlib doc noting functions that accept path arguments might not accept Path objects?

My concern with that is that someone using `pkgutil` wouldn't see it. However, I can see the argument that fixing the 'source' is better than each use. I'm not sure how wide-spread these kind of issues are to weigh in on how many 'uses' there are. If that makes sense.

>Should pkgutil call os.fspath() in this case?

I really like that idea. (I haven't contributed to CPython before, so I'll let someone else weigh in on if that is standard practice.)
History
Date User Action Args
2022-02-28 17:43:13khocksetrecipients: + khock, docs@python, barneygale, slateny
2022-02-28 17:43:13khocksetmessageid: <1646070193.39.0.139397868602.issue45991@roundup.psfhosted.org>
2022-02-28 17:43:13khocklinkissue45991 messages
2022-02-28 17:43:13khockcreate