21 Nov
2017
21 Nov
'17
2:02 a.m.
Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: Serhiy, I think you're focusing on an irrelevant edge case and reading too much into the recipe. You could create an underlying binary tree with O(n) iteration and O(log n) deletion but then that completely misses the point of the itertools recipes and would likely be pointless in the real-world and likely perform worse than the current recipe in common cases unless you wrote a C extension for it. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue32099> _______________________________________