Ron Adam wrote: > I wonder if "yield from" may run into pythons stack limit? My current implementation wouldn't, because nested yield-froms don't result in nested activations of Python frames. But... > if __name__ == "__main__": > print(factoral(10000)) # <---- extra zero too! > > > But if I add another zero, it begins to slow to a crawl as it uses swap > space. ;-) > > How would a "yield from" version compare? ... there is still a Python frame in existence for each active invocation of the generator, so it would probably use about the same amount of memory. -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4