[issue25215] Simple extension to iter(): iter() returns empty generator

Brett Cannon report at bugs.python.org
Tue Sep 22 18:14:00 CEST 2015


Brett Cannon added the comment:

I agree with Raymond. Allowing a non-argument iter() runs the risk of someone messing up and forgetting the arguments and yet having no error that they did so. And considering how easy it is to get an iterator of an empty list or tuple I don't see a benefit.

Thanks for the suggestion, Jurjen, but I'm closing this as rejected.

----------
nosy: +brett.cannon
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25215>
_______________________________________


More information about the Python-bugs-list mailing list