Message228213
Agreed.
Since type has __subclasscheck__ (why I don't know) this might result in a slowdown since all checks have to go through calling it in PyObject_IsSubclass.
Just noticed that given_exception_matches_inner can be simplified a bit since PyObject_IsSubclass already checks for tuples by itself. |
|
Date |
User |
Action |
Args |
2014-10-02 11:09:45 | georg.brandl | set | recipients:
+ georg.brandl, gvanrossum, barry, jamesh, ncoghlan, pitrou, benjamin.peterson, jwilk, eric.araujo, Trundle, cvrebert, daniel.urban, yorik.sar, ethan.furman, Yury.Selivanov, Jim.Jewett, gcbirzan, Antony.Lee |
2014-10-02 11:09:45 | georg.brandl | set | messageid: <1412248185.25.0.288020173273.issue12029@psf.upfronthosting.co.za> |
2014-10-02 11:09:45 | georg.brandl | link | issue12029 messages |
2014-10-02 11:09:45 | georg.brandl | create | |
|