classification
Title: Outdated C api doc about Windows error
Type: Stage:
Components: Documentation Versions: Python 3.7, Python 3.6, Python 3.5, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eryksun, xiang.zhang
Priority: normal Keywords:

Created on 2016-12-22 06:06 by xiang.zhang, last changed 2016-12-22 07:24 by xiang.zhang.

Messages (3)
msg283814 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2016-12-22 06:06
https://docs.python.org/3.7/c-api/exceptions.html#c.PyErr_SetFromWindowsErrWithFilename it stills refers to PyErr_SetFromWindowsErrWithFilenameObject but this function doesn't exist since Py3.4. I didn't find when and why it's deleted.

And https://docs.python.org/3.4/c-api/exceptions.html#c.PyErr_SetFromWindowsErr raises OSError instead of WindowsError.
msg283816 - (view) Author: Eryk Sun (eryksun) * (Python triager) Date: 2016-12-22 07:10
PyErr_SetFromWindowsErrWithFilenameObject was never implemented. See issue 11210.

Since 3.3 WindowsError is simply an alias for OSError. See PEP 3151.
msg283818 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2016-12-22 07:24
> PyErr_SetFromWindowsErrWithFilenameObject was never implemented. See issue 11210.

> Since 3.3 WindowsError is simply an alias for OSError. See PEP 3151.

Ohh, thanks for the info. I don't find the implementation in 2.7 either.
History
Date User Action Args
2016-12-22 07:24:32xiang.zhangsetmessages: + msg283818
versions: + Python 2.7
2016-12-22 07:10:46eryksunsetnosy: + eryksun
messages: + msg283816
2016-12-22 06:06:20xiang.zhangcreate