[Python-ideas] Consider making enumerate a sequence if its argument is a sequence

Random832 random832 at fastmail.com
Thu Oct 1 20:33:26 CEST 2015


On Thu, Oct 1, 2015, at 11:10, Steven D'Aprano wrote:
> On Thu, Oct 01, 2015 at 08:15:25AM +0300, Akira Li wrote:
> 
> > True or false?: do all iterables return the same items twice?
> >   http://www.fallacyfiles.org/loadques.html
> 
> [Aside: I have no idea what point you are making with the above link.]
> 
> Of course they don't necessarily do so, but those that don't are not 
> necessarily well-behaved. 

I think what he is claiming, more or less, is that there is not a
universal notion of "well-behaved" (this is true), or indeed *any*
broadly-applicable notions of "well-behaved" (this is false).


More information about the Python-ideas mailing list