James Henstridge ja...@jamesh.id.au 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
Changes by junior1971 junior1...@meta.ua:
Added file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
Changes by junior1971 junior1...@meta.ua:
Added file: http://bugs.python.org/file22772/generictramadolhclonline.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file22772/generictramadolhclonline.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
Chris Rebert pyb...@rebertia.com 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
Chris Rebert pyb...@rebertia.com 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
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python-bugs-list
New submission from andrew cooke and...@acooke.org:
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).
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python-bugs-list
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python-bugs-list
11 matches
Mail list logo