[issue12797] io.FileIO and io.open should support openat
Antoine Pitrou
report at bugs.python.org
Sun Oct 30 18:30:40 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
Here is my quick review:
- shouldn't the opener also get the third open() argument (although it currently seems to always be 0o666)?
- when fdobj is NULL, you shouldn't override the original error
- PyLong_AsLong can fail (if the opener returns too large an int), you should check for that
Thank you!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12797>
_______________________________________
More information about the Python-bugs-list
mailing list