This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson, georg.brandl, pitrou, rhettinger, tim.peters
Date 2009-02-17.20:13:27
SpamBayes Score 3.839679e-07
Marked as misclassified No
Message-id <1afaf6160902171213i24ba98f3ibbfccf7aef85552a@mail.gmail.com>
In-reply-to <1234898836.58.0.29089924608.issue1283110@psf.upfronthosting.co.za>
Content
On Tue, Feb 17, 2009 at 1:27 PM, Antoine Pitrou <report@bugs.python.org> wrote:
>
> Antoine Pitrou <pitrou@free.fr> added the comment:
>
> If iterators don't want their boolean value to be messed up, couldn't
> they simply use __bool__ for that?

Since there is no base iterator class, that would complicate the API
and lead to subtle bugs. Personally, I don't think any iterators
should supported len() at all.
History
Date User Action Args
2009-02-17 20:13:30benjamin.petersonsetrecipients: + benjamin.peterson, tim.peters, georg.brandl, rhettinger, pitrou
2009-02-17 20:13:28benjamin.petersonlinkissue1283110 messages
2009-02-17 20:13:27benjamin.petersoncreate