Message198037
| Author |
ethan.furman |
| Recipients |
barry, eli.bendersky, ethan.furman, ncoghlan, pitrou, r.david.murray |
| Date |
2013年09月19日.01:23:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1379553832.93.0.351257845229.issue19030@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Okay, some slight reorganizing. Current patch gives preferential treatment to getattr, falling back on dict lookup if getattr raises an exception or if the resulting object's class is not found in the mro (including the metaclass mro).
Amazingly, nothing appeared to break in the test suite. :)
If no kibitzing in the next couple days I'll write some tests to better excercise the metaclass portion (I used Enum for interactive testing). |
|