Message82361
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. |
|
Date |
User |
Action |
Args |
2009-02-17 20:13:30 | benjamin.peterson | set | recipients:
+ benjamin.peterson, tim.peters, georg.brandl, rhettinger, pitrou |
2009-02-17 20:13:28 | benjamin.peterson | link | issue1283110 messages |
2009-02-17 20:13:27 | benjamin.peterson | create | |
|