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 pitrou
Recipients cool-RR, pitrou
Date 2010-10-01.23:00:35
SpamBayes Score 0.0016268111
Marked as misclassified No
Message-id <1285974051.05.0.846922021131.issue10011@psf.upfronthosting.co.za>
In-reply-to
Content
Mainly to protect against potential infinite recursion with isinstance checks. Also, performance is probably better.

Here are the relevant code and comments in PyErr_GivenExceptionMatches() (in Python/errors.c):

        /* PyObject_IsSubclass() can recurse and therefore is
           not safe (see test_bad_getattr in test.pickletester). */
        res = PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject *)exc);
History
Date User Action Args
2010-10-01 23:00:51pitrousetrecipients: + pitrou, cool-RR
2010-10-01 23:00:51pitrousetmessageid: <1285974051.05.0.846922021131.issue10011@psf.upfronthosting.co.za>
2010-10-01 23:00:35pitroulinkissue10011 messages
2010-10-01 23:00:35pitroucreate