Issue 28096: set.difference() is not interruptible (original) (raw)

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.