This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients belopolsky, benjamin.peterson, bmiller, loewis, rhettinger
Date 2008-04-11.23:44:40
SpamBayes Score 0.015704503
Marked as misclassified No
Message-id <1207957483.87.0.167403491235.issue2610@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, I would like to see a newsgroup or python-dev discussion for a 
more general solution to the problem for helpful repr's for iterators.  
In 3.0, lots of things return iterators, not just range().  

Before applying one ad-hoc patch, it would be helpful to think through 
how the issue should be handled across the whole language.  For 
example, perhaps pprint() should display general iterators with the 
<...> notation.  

For teaching and experimentation purposes, maybe the right answer is 
the make the command-line a bit smarter.  It already knows how to 
suppress None return values.  Perhaps, it should be taught how to 
display range objects and dict.items() and such.
History
Date User Action Args
2008-04-11 23:44:44rhettingersetspambayes_score: 0.0157045 -> 0.015704503
recipients: + rhettinger, loewis, belopolsky, benjamin.peterson, bmiller
2008-04-11 23:44:43rhettingersetspambayes_score: 0.0157045 -> 0.0157045
messageid: <1207957483.87.0.167403491235.issue2610@psf.upfronthosting.co.za>
2008-04-11 23:44:42rhettingerlinkissue2610 messages
2008-04-11 23:44:41rhettingercreate