[Python-bugs-list] [ python-Bugs-523473 ] PyModule_AddObject doesn't set exception

noreply@sourceforge.net noreply@sourceforge.net
Mon, 17 Jun 2002 10:17:54 -0700


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

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Yakov Markovitch (markovitch)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: PyModule_AddObject doesn't set exception

Initial Comment:
PyModule_AddObject tests for its first parameter to be
a module and third to be non-NULL and returns -1 if
these are wrong, but doesn't set any exception. This
behaviour is obviously wrong (at least for the case
when first parameter is not a module - this must be a
PyExc_TypeError).

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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-17 13:17

Message:
Logged In: YES 
user_id=3066

Actually, it doesn't check the 3rd arg, nor does it need to.
I've added appropriate exceptions in Python/modsupport.c
revisions 2.55.2.1, 2.58.16.1, and 2.60.

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

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