Raymond Hettinger added the comment:
This is no different than the many other places in Python where you can tell
the language to go on an infinite wild goose chase: sum(count()),
list(count()), etc. I believe there is already a tracker item open for such
things. Someone is going to have to
New submission from Serhiy Storchaka:
>>> from itertools import count
>>> set.difference({0}, count())
This hangs and can't be interrupted by Ctrl-C.
--
components: Interpreter Core
messages: 275977
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: