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 SilentGhost
Recipients Dan Rose, SilentGhost, rhettinger
Date 2019-05-25.06:33:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558765988.82.0.779203804403.issue37040@roundup.psfhosted.org>
In-reply-to
Content
This seem like a misdirected expectation. count returns a regular iterator and the purpose behind it is not to enable membership checks, this only works because it's a regular iterators and normal rules for checking membership are applied.

In any case, it is possible to write an infinite loop in Python either by accident or intentionally, this doesn't seem like a reasonable rationale for making this sort changes.
History
Date User Action Args
2019-05-25 06:33:08SilentGhostsetrecipients: + SilentGhost, rhettinger, Dan Rose
2019-05-25 06:33:08SilentGhostsetmessageid: <1558765988.82.0.779203804403.issue37040@roundup.psfhosted.org>
2019-05-25 06:33:08SilentGhostlinkissue37040 messages
2019-05-25 06:33:08SilentGhostcreate