[Python-Dev] pprint(iterator)

Guido van Rossum guido at python.org
Tue Jan 27 23:15:07 CET 2009


On Tue, Jan 27, 2009 at 2:12 PM, Benjamin Peterson <benjamin at python.org> wrote:
> On Tue, Jan 27, 2009 at 3:46 PM, Raymond Hettinger <python at rcn.com> wrote:
>> It is becoming the norm in 3.x for functions to return iterators,
>> generators, or views whereever possible.
>
>> Do you guys have any thoughts on the subject?
>
> Maybe a solution like this could help with bugs like #2610?

It would have to special-case range() objects.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list