[issue45991] Improve ambiguous docstrings in pkgutil
New submission from Kevin Hock
Change by Irit Katriel
Stanley
Kevin Hock
Stanley
Barney Gale
Kevin Hock
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.)
----------
_______________________________________
Python tracker
Stanley
participants (4)
-
Barney Gale
-
Irit Katriel
-
Kevin Hock
-
Stanley