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 simon_
Recipients simon_, tim.peters
Date 2019-11-18.08:32:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574065970.39.0.716822242423.issue38789@roundup.psfhosted.org>
In-reply-to
Content
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. :)
History
Date User Action Args
2019-11-18 08:32:50simon_setrecipients: + simon_, tim.peters
2019-11-18 08:32:50simon_setmessageid: <1574065970.39.0.716822242423.issue38789@roundup.psfhosted.org>
2019-11-18 08:32:50simon_linkissue38789 messages
2019-11-18 08:32:50simon_create