Message137621
| Author |
ncoghlan |
| Recipients |
Arfrever, Trundle, barry, benjamin.peterson, eric.araujo, jcea, michael.foord, ncoghlan, r.david.murray, rhettinger |
| Date |
2011年06月04日.02:26:31 |
| SpamBayes Score |
4.8887546e-06 |
| Marked as misclassified |
No |
| Message-id |
<1307154392.29.0.271051612232.issue12248@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It would be broken in the same way that it was broken in 2.7.1 though. That can be a plus when it comes to maintenance releases.
OTOH, this does turn a silent failure (__dir__() ignored on old-style classes) into a noisy failure (must return a list).
If you make Barry's classes new-style, they break in 2.7.1 as well, so I'm coming around to a point of view that this is a legitimate fix that reveals a real bug in third party code (i.e. anyone that hits this had a __dir__ that previously wasn't getting invoked) |
|