Serhiy Storchaka storchaka+cpython@gmail.com added the comment:
This is an interesting idea, but I afraid it will complicate the code too much, destroying the remnants of the initial elegant design. I am going to try to experiment with this idea after implementing other features, so it will not block them.
For now we need to document that iglob() may collect some names internally before starting to emit them. If my English be better I would did it myself.
----------
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue22167 _______________________________________