Message160399
| Author |
jamesh |
| Recipients |
acooke, cvrebert, daniel.urban, eric.araujo, jamesh |
| Date |
2012年05月11日.04:44:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1336711487.98.0.933182018634.issue12029@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 base. From the reasoning behind the introduction of ABCs, it certainly sounds like it should count.
Also, this is a feature that works correctly in Pyton 2.7, so could trip people up who are trying to move to Python 3. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月11日 04:44:48 | jamesh | set | recipients:
+ jamesh, acooke, eric.araujo, cvrebert, daniel.urban |
| 2012年05月11日 04:44:47 | jamesh | set | messageid: <1336711487.98.0.933182018634.issue12029@psf.upfronthosting.co.za> |
| 2012年05月11日 04:44:47 | jamesh | link | issue12029 messages |
| 2012年05月11日 04:44:47 | jamesh | create |
|