Message161712
| Author |
rhettinger |
| Recipients |
ezio.melotti, fgracia, mrabarnett, rhettinger |
| Date |
2012年05月27日.16:52:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338137555.04.0.766746560495.issue14924@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> All iterators are always true,
More generally, all objects are true by default. The only false objects in Python are None; container-like objects with a __len__ that returns zero; and number-like objects with a __nonzero__ method that returns False.
Guido decided that iterators should not be treated like containers and should not have a __len__ method. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月27日 16:52:35 | rhettinger | set | recipients:
+ rhettinger, ezio.melotti, mrabarnett, fgracia |
| 2012年05月27日 16:52:35 | rhettinger | set | messageid: <1338137555.04.0.766746560495.issue14924@psf.upfronthosting.co.za> |
| 2012年05月27日 16:52:34 | rhettinger | link | issue14924 messages |
| 2012年05月27日 16:52:34 | rhettinger | create |
|