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: Extend PyErr_SetFromWindowsErr
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: theller Nosy List: loewis, theller
Priority: normal Keywords: patch

Created on 2002-07-02 16:02 by theller, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
error.diff theller, 2002-07-02 16:02 Patch for error.c
pyerrors.diff theller, 2002-07-02 16:13
docpatch.diff theller, 2002-07-05 06:57 Patch for doc/exceptions.tex
Messages (6)
msg40485 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2002-07-02 16:02
PyErr_SetFromWindowsErr and 
PyErr_SetFromWindowsErrWithFilename can only raise 
PyExc_WindowsError. This patch introduces variants of 
these functions taking an additional PyObject* 
parameter, which allows to specify the type of the 
exception to raise.
msg40486 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2002-07-02 16:13
Logged In: YES 
user_id=11105

Patch for the header file was missing...
msg40487 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-05 05:47
Logged In: YES 
user_id=21627

If this is meant to be used by extension modules, it should
be documented.
msg40488 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2002-07-05 06:57
Logged In: YES 
user_id=11105

Sure. Patch uploaded: docpatch.diff
msg40489 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-28 16:42
Logged In: YES 
user_id=21627

The patch looks good, please apply it, with the following
changes:
- add \versionadded marks into the documentation;
- add an entry to Misc/NEWS.
msg40490 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2002-07-29 14:30
Logged In: YES 
user_id=11105

Thanks. Checked in:

committed   * Up-To-Date  1.8         Doc/api/exceptions.tex
committed   * Up-To-Date  2.55        Include/pyerrors.h
committed   * Up-To-Date  1.447       Misc/NEWS
committed   * Up-To-Date  2.71        Python/errors.c
History
Date User Action Args
2022-04-10 16:05:28adminsetgithub: 36839
2002-07-02 16:02:18thellercreate