[issue29045] Outdated C api doc about Windows error

2021-02-26 Thread Eryk Sun


Eryk Sun  added the comment:

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

--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
type:  -> enhancement
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.5, Python 
3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29045] Outdated C api doc about Windows error

2016-12-21 Thread Xiang Zhang

Xiang Zhang added the comment:

> 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.

--
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29045] Outdated C api doc about Windows error

2016-12-21 Thread Eryk Sun

Eryk Sun added the comment:

PyErr_SetFromWindowsErrWithFilenameObject was never implemented. See issue 
11210.

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

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29045] Outdated C api doc about Windows error

2016-12-21 Thread Xiang Zhang

New submission from Xiang Zhang:

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.

--
assignee: docs@python
components: Documentation
messages: 283814
nosy: docs@python, xiang.zhang
priority: normal
severity: normal
status: open
title: Outdated C api doc about Windows error
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com