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 r.david.murray
Recipients merchise, ncoghlan, r.david.murray, rhettinger
Date 2015-10-20.21:41:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445377298.05.0.214930765916.issue25448@psf.upfronthosting.co.za>
In-reply-to
Content
Thinking about this some more my explanation isn't quite clear (because my thinking wasn't quite clear): the problem isn't that APIError isn't *capable* of being a base class; I was wrong when I said it is itself a metaclass.  It is a class that has ABCMeta *as* its metaclass.  The problem is what I said in the second part: that APIError isn't a base class *of DriverError*.  The operant issue is that 'except' isn't doing issubclass, it is looking at the base class list of DriverError, and APIError isn't in it.

I'd have to see your 2.7 code to figure out why that version "works" :)
History
Date User Action Args
2015-10-20 21:41:38r.david.murraysetrecipients: + r.david.murray, rhettinger, ncoghlan, merchise
2015-10-20 21:41:38r.david.murraysetmessageid: <1445377298.05.0.214930765916.issue25448@psf.upfronthosting.co.za>
2015-10-20 21:41:38r.david.murraylinkissue25448 messages
2015-10-20 21:41:37r.david.murraycreate