Message181044
| Author |
brett.cannon |
| Recipients |
brett.cannon |
| Date |
2013年01月31日.21:06:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1359666401.55.0.375165619272.issue17093@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
ABCs, even though they are almost always at the bottom of an inheritance hierarchy, should still do the right thing in the face of being in the middle of an MRO. That means that they should call super() as appropriate. So for methods that return a value, blindly call super(). For methods that do not necessarily return anything (e.g. invalidate_caches()), check if super() as the method and it is callable and if that is true then make the super() call.
This is not backwards-compatible as it is new semantics people will rely on, but neither is it a bug but a bad design decision on my part. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月31日 21:06:41 | brett.cannon | set | recipients:
+ brett.cannon |
| 2013年01月31日 21:06:41 | brett.cannon | set | messageid: <1359666401.55.0.375165619272.issue17093@psf.upfronthosting.co.za> |
| 2013年01月31日 21:06:41 | brett.cannon | link | issue17093 messages |
| 2013年01月31日 21:06:41 | brett.cannon | create |
|