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.

Author Zdeněk.Pavlas
Recipients Zdeněk.Pavlas, ezio.melotti, mrabarnett
Date 2013-03-25.15:27:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364225248.29.0.538486263378.issue17544@psf.upfronthosting.co.za>
In-reply-to
Content
<documentation>
There is a global indicator (per thread) of the last error that occurred. Most functions do not clear this on success, but will set it to indicate the cause of the error on failure. Most functions also return an error indicator, usually NULL if they are supposed to return a pointer, or -1 if they return an integer.
</documentation>

AIUI, the last error global variable should be ignored, unless function fails.  This is not the case.  To reproduce:

1. call a C function that sets TypeError, but does not return NULL.
2. run a lot of python code, do some I/O.. everything runs fine.
3. run a regexp match, or import the re module.  TypeError is raised.
History
Date User Action Args
2013-03-25 15:27:28Zdeněk.Pavlassetrecipients: + Zdeněk.Pavlas, ezio.melotti, mrabarnett
2013-03-25 15:27:28Zdeněk.Pavlassetmessageid: <1364225248.29.0.538486263378.issue17544@psf.upfronthosting.co.za>
2013-03-25 15:27:28Zdeněk.Pavlaslinkissue17544 messages
2013-03-25 15:27:28Zdeněk.Pavlascreate