Message80625
| Author |
carlj |
| Recipients |
carlj, georg.brandl, ggenellina |
| Date |
2009年01月27日.06:15:37 |
| SpamBayes Score |
7.625132e-05 |
| Marked as misclassified |
No |
| Message-id |
<1233036939.45.0.639195415593.issue5062@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think that checking to see which things really exist with
getattr/hasattr made sense back in the days before the __dir__, since in
those days the real API for an object could diverge wildly from what was
reported by dir(object), but nowadays, if someone goes to the trouble of
defining the __dir__ method, then we should just trust that as being
"the API" and not do any other checking. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年01月27日 06:15:39 | carlj | set | recipients:
+ carlj, georg.brandl, ggenellina |
| 2009年01月27日 06:15:39 | carlj | set | messageid: <1233036939.45.0.639195415593.issue5062@psf.upfronthosting.co.za> |
| 2009年01月27日 06:15:38 | carlj | link | issue5062 messages |
| 2009年01月27日 06:15:37 | carlj | create |
|