-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
bpo-39723: make io.open_code accept PathLike objects #18602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18602 +/- ##
==========================================
- Coverage 82.20% 82.06% -0.14%
==========================================
Files 1958 1955 -3
Lines 589743 584072 -5671
Branches 44457 44458 +1
==========================================
- Hits 484772 479324 -5448
+ Misses 95308 95117 -191
+ Partials 9663 9631 -32
Continue to review full report at Codecov.
|
Modules/_io/_iomodule.c
Outdated
| /*[clinic end generated code: output=2fe4ecbd6f3d6844 input=9121d12e66f85b25]*/ | ||
| { | ||
| return PyFile_OpenCodeObject(path); | ||
| return PyFile_OpenCodeObject(PyOS_FSPath(path)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does the new reference returned by PyOS_FSPath() get freed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, hopefully in this next commit :-)
|
|
|
Sounds good, opened #19824 for the documentation update. |
https://bugs.python.org/issue39723