Simon Friedberger <[email protected]> added the comment:
And, just to state this explicitly, I think you are right that there are general idioms for checking if a generator can produce an item but I think it would be nicer if iterators which could do this is in a cheap way (like in this case) would allow it explicitly. I don't know, maybe I'm wrong. Just seems nice. :) ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue38789> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
