Re: [Python-Dev] __length_hint__

2009-04-02 Thread Raymond Hettinger
Iterators can implement a method called __length_hint__ that provides a hint to certain internal routines (such as list.extend) so they can operate more efficiently. As far as I can tell, __length_hint__ is currently undocumented. Should it be? This has been discussed, and no, it is a implemen

Re: [Python-Dev] __length_hint__

2009-04-02 Thread Benjamin Peterson
2009/4/2 Daniel Stutzbach : > Iterators can implement a method called __length_hint__ that provides a hint > to certain internal routines (such as list.extend) so they can operate more > efficiently.  As far as I can tell, __length_hint__ is currently > undocumented.  Should it be? This has been d