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 Tomas Ravinskas
Recipients Tomas Ravinskas
Date 2020-02-01.17:02:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580576532.94.0.922991847859.issue39517@roundup.psfhosted.org>
In-reply-to
Content
runpy accepts Path like objects but open_code seems to only accept strings, so calling open_code with Path object throws TypeError.
I think runpy should call str() on all path passed to open_code.
The relevant line is 232 in runpy.py in function _get_code_from_file.
History
Date User Action Args
2020-02-01 17:02:12Tomas Ravinskassetrecipients: + Tomas Ravinskas
2020-02-01 17:02:12Tomas Ravinskassetmessageid: <1580576532.94.0.922991847859.issue39517@roundup.psfhosted.org>
2020-02-01 17:02:12Tomas Ravinskaslinkissue39517 messages
2020-02-01 17:02:12Tomas Ravinskascreate