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.
Created on 2016年09月12日 06:34 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg275977 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年09月12日 06:34 | |
>>> from itertools import count
>>> set.difference({0}, count())
This hangs and can't be interrupted by Ctrl-C.
|
|||
| msg275985 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2016年09月12日 07:39 | |
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 make a decision whether to slow-down every single possible input source, or slow-down every possible consumer, or to just punt, because this never comes up in practice. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:36 | admin | set | github: 72283 |
| 2016年09月12日 07:39:42 | rhettinger | set | status: open -> closed resolution: duplicate messages: + msg275985 |
| 2016年09月12日 06:34:57 | serhiy.storchaka | create | |