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.

classification
Title: Outdated C api doc about Windows error
Type: enhancement Stage:
Components: Documentation, Windows Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eryksun, paul.moore, steve.dower, tim.golden, xiang.zhang, zach.ware
Priority: normal Keywords:

Created on 2016-12-22 06:06 by xiang.zhang, last changed 2022-04-11 14:58 by admin.

Messages (4)
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.
msg387746 - (view) Author: Eryk Sun (eryksun) * (Python triager) Date: 2021-02-26 20:45
The documentation still has two references to PyErr_SetFromWindowsErrWithFilenameObject, which is not a defined function in the C API.

https://docs.python.org/3.10/c-api/exceptions.html#c.PyErr_SetFromWindowsErrWithFilename
History
Date User Action Args
2022-04-11 14:58:41adminsetgithub: 73231
2021-02-26 20:45:06eryksunsetversions: + Python 3.8, Python 3.9, Python 3.10, - Python 2.7, Python 3.5, Python 3.6, Python 3.7
nosy: + paul.moore, tim.golden, zach.ware, steve.dower

messages: + msg387746

components: + Windows
type: enhancement
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