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 kmaork
Recipients kmaork
Date 2020-02-19.23:02:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582153350.45.0.111444771925.issue39691@roundup.psfhosted.org>
In-reply-to
Content
As in many functions in python3, io.open_code should probably accept pathlike objects and not just path strings.

Below is  open_code's docstring:
> Opens the provided file with the intent to import the contents.
> This may perform extra validation beyond open(), but is otherwise interchangeable with calling open(path, 'rb').

The second bit is not entirely true, as open accepts pathlike objects and open_code doesn't.
Fixing this will help solve future bugs and existing bugs like https://bugs.python.org/issue39517

I'd be happy to open a pull request if it is agreed that this should be changed.
History
Date User Action Args
2020-02-19 23:02:30kmaorksetrecipients: + kmaork
2020-02-19 23:02:30kmaorksetmessageid: <1582153350.45.0.111444771925.issue39691@roundup.psfhosted.org>
2020-02-19 23:02:30kmaorklinkissue39691 messages
2020-02-19 23:02:30kmaorkcreate