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 martin.panter
Recipients clevy, martin.panter, rhettinger, serhiy.storchaka, stutzbach
Date 2015-06-16.04:23:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434428621.33.0.697939004145.issue24434@psf.upfronthosting.co.za>
In-reply-to
Content
The trouble with Serhiy’s suggestion is that it would still try to iterate the argument:

>>> i = iter(lambda: print("ITERATION"), "infinity")
>>> i in dict()  # No iteration
False
>>> i in ItemsView(dict())
ITERATION
ITERATION
ITERATION
False
History
Date User Action Args
2015-06-16 04:23:41martin.pantersetrecipients: + martin.panter, rhettinger, stutzbach, serhiy.storchaka, clevy
2015-06-16 04:23:41martin.pantersetmessageid: <1434428621.33.0.697939004145.issue24434@psf.upfronthosting.co.za>
2015-06-16 04:23:41martin.panterlinkissue24434 messages
2015-06-16 04:23:41martin.pantercreate