Skip to content

Outdated C api doc about Windows error #73231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zhangyangyu opened this issue Dec 22, 2016 · 6 comments
Closed

Outdated C api doc about Windows error #73231

zhangyangyu opened this issue Dec 22, 2016 · 6 comments
Labels
docs Documentation in the Doc dir OS-windows topic-C-API type-feature A feature request or enhancement

Comments

@zhangyangyu
Copy link
Member

zhangyangyu commented Dec 22, 2016

BPO 29045
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba, @zhangyangyu

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2016-12-22.06:06:20.650>
labels = ['3.8', '3.9', '3.10', 'type-feature', 'OS-windows', 'docs']
title = 'Outdated C api doc about Windows error'
updated_at = <Date 2021-02-26.20:45:06.637>
user = 'https://github.com/zhangyangyu'

bugs.python.org fields:

activity = <Date 2021-02-26.20:45:06.637>
actor = 'eryksun'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation', 'Windows']
creation = <Date 2016-12-22.06:06:20.650>
creator = 'xiang.zhang'
dependencies = []
files = []
hgrepos = []
issue_num = 29045
keywords = []
message_count = 4.0
messages = ['283814', '283816', '283818', '387746']
nosy_count = 7.0
nosy_names = ['paul.moore', 'tim.golden', 'docs@python', 'zach.ware', 'eryksun', 'steve.dower', 'xiang.zhang']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue29045'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

Linked PRs

@zhangyangyu
Copy link
Member Author

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.

@zhangyangyu zhangyangyu added the 3.7 (EOL) end of life label Dec 22, 2016
@zhangyangyu zhangyangyu added the docs Documentation in the Doc dir label Dec 22, 2016
@eryksun
Copy link
Contributor

eryksun commented Dec 22, 2016

PyErr_SetFromWindowsErrWithFilenameObject was never implemented. See bpo-11210.

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

@zhangyangyu
Copy link
Member Author

PyErr_SetFromWindowsErrWithFilenameObject was never implemented. See bpo-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.

@eryksun
Copy link
Contributor

eryksun commented Feb 26, 2021

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

@eryksun eryksun added OS-windows 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes type-feature A feature request or enhancement and removed 3.7 (EOL) end of life labels Feb 26, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@erlend-aasland erlend-aasland added topic-C-API and removed 3.10 only security fixes 3.9 only security fixes 3.8 (EOL) end of life labels Jan 12, 2024
@serhiy-storchaka
Copy link
Member

The first issue was fixed in gh-107298.

@serhiy-storchaka
Copy link
Member

#117226 updates the documentation that referred to WindowsError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir OS-windows topic-C-API type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants