Raymond Hettinger added the comment: 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(). ---------- assignee: -> rhettinger nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25215> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com