[Python-bugs-list] [ python-Bugs-523833 ] Inaccuracy in PyErr_SetFromErrno()'s doc

noreply@sourceforge.net noreply@sourceforge.net
Sat, 23 Mar 2002 12:57:38 -0800


Bugs item #523833, was opened at 2002-02-28 13:02
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=523833&group_id=5470

Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Florent Rougon (frougon)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Inaccuracy in PyErr_SetFromErrno()'s doc

Initial Comment:
Python 2.1 and 2.2 documentations (file
api/exceptionHandling.html) about PyErr_SetFromErrno
say:

[...] a wrapper function around a system call can write
"return PyErr_SetFromErrno();" when the system call
returns an error.

but this function's prototype is:

   PyObject* PyErr_SetFromErrno(PyObject *type)

therefore, I would prefer something like:

[...] a wrapper function around a system call can write
"return PyErr_SetFromErrno(type);" when the system call
returns an error.

(or PyErr_SetFromErrno(exc_type) or whatever you want
provided the function is called with its argument)

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

>Comment By: Neil Schemenauer (nascheme)
Date: 2002-03-23 20:57

Message:
Logged In: YES 
user_id=35752

Fixed in exceptions.tex 1.4.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=523833&group_id=5470