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 jneb, rhettinger
Date 2015-09-22.15:35:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442936159.9.0.124298197156.issue25215@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure that python needs a neater way to make an empty generator.  It isn't a common use case and there isn't anything wrong with iter([]).

There are downsides to expanding an API.  It creates yet another thing to learn and remember.  Even now, few developers know about the two-argument form of iter().
History
Date User Action Args
2015-09-22 15:35:59rhettingersetrecipients: + rhettinger, jneb
2015-09-22 15:35:59rhettingersetmessageid: <1442936159.9.0.124298197156.issue25215@psf.upfronthosting.co.za>
2015-09-22 15:35:59rhettingerlinkissue25215 messages
2015-09-22 15:35:59rhettingercreate