generator object, next method

Paul Rubin http
Thu Sep 8 10:14:07 CEST 2005

Duncan Booth <duncan.booth at invalid.invalid> writes:
> 1) Every time you access you create a new method-wrapper object.

Why is that?  I thought is a callable and actually
advances the iterator.  Why shouldn't always be the same object?

More information about the Python-list mailing list