[Patches] [ python-Patches-576458 ] Extend PyErr_SetFromWindowsErr

noreply@sourceforge.net noreply@sourceforge.net
Mon, 29 Jul 2002 07:30:06 -0700


Patches item #576458, was opened at 2002-07-02 18:02
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=576458&group_id=5470

Category: Core (C code)
Group: Python 2.3
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: Thomas Heller (theller)
Summary: Extend PyErr_SetFromWindowsErr

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Thomas Heller (theller)
Date: 2002-07-29 16:30

Message:
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


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-07-28 18:42

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

----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2002-07-05 08:57

Message:
Logged In: YES 
user_id=11105

Sure. Patch uploaded: docpatch.diff

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-07-05 07:47

Message:
Logged In: YES 
user_id=21627

If this is meant to be used by extension modules, it should
be documented.

----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2002-07-02 18:13

Message:
Logged In: YES 
user_id=11105

Patch for the header file was missing...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=576458&group_id=5470