[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-11 Thread Elijah Rippeth
Change by Elijah Rippeth : -- versions: +Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44

[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-07 Thread Elijah Rippeth
New submission from Elijah Rippeth : I have a directory with hundreds of thousands of text files. I wanted to explore one file, so I wrote the following code expecting it to happen basically instantaneously because of how generators work: ```python from pathlib import Path base_dir = Path

[issue40749] Consider adding decorator for required inner class

2020-05-23 Thread Elijah Rippeth
New submission from Elijah Rippeth : Sometimes it's desirable to couple classes together by nesting. Currently there's no way to signal to an interface implementer that an inner class is a required attribute to be implemented. I propose a decorator for `abstractnestedclass` to fil