Philip Jenvey <[email protected]> added the comment:

pypy already provides PyErr_SetFromErrnoWithFilename so writing a 
PyErr_SetFromErrnoWithFilenameObject should be a pretty straightforward task 
for 
anyone who's interested.

Here its impl:

https://bitbucket.org/pypy/pypy/src/f6f44dc30721299a1005b642653079d736862d65/pyp
y/module/cpyext/pyerrors.py?at=default#cl-145

tests:

https://bitbucket.org/pypy/pypy/src/f6f44dc30721299a1005b642653079d736862d65/pyp
y/module/cpyext/test/test_pyerrors.py?at=default#cl-201

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue991>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to