[issue12029] ABC registration of Exceptions

2012-05-10 Thread James Henstridge
James Henstridge added the comment: The documentation for ABCMeta.register() says that it makes the other class a "virtual subclass". That would make the ABC a "virtual base class". So whether the current behaviour is correct depends on whether you consider a "virtual base" to count as a bas

[issue12029] ABC registration of Exceptions

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker ___ ___ Python-bugs-l

[issue12029] ABC registration of Exceptions

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker ___ ___ Python-bugs-

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 : Added file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker ___ ___ Python-bugs-list

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 : Added file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker ___ ___ Python-bugs-lis

[issue12029] ABC registration of Exceptions

2011-05-23 Thread Chris Rebert
Chris Rebert added the comment: Surveying the docs, the current behavior *is* /technically/ correct (in a suspiciously precise way) according to the Language Reference: http://docs.python.org/dev/reference/compound_stmts.html#grammar-token-try_stmt : "For an except clause with an expression [.

[issue12029] ABC registration of Exceptions

2011-05-23 Thread Chris Rebert
Chris Rebert added the comment: Scouting around the CPython codebase a bit, I speculate that the cause of this behavior is that PyErr_GivenExceptionMatches() in errors.c uses PyType_IsSubtype() [which simply walks a class's __mro__ checking for pointer equality] rather than PyObject_IsSubclas

[issue12029] ABC registration of Exceptions

2011-05-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12029] ABC registration of Exceptions

2011-05-08 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12029] ABC registration of Exceptions

2011-05-08 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12029] ABC registration of Exceptions

2011-05-08 Thread andrew cooke
New submission from andrew cooke : Hi, In general, registering a class with an ABC is equivalent to making it a subclass (isinstance and issubclass are patched through ABCMeta). However, this does not work for exceptions (see example below, where exception is not caught). This doesn't seem