[Alex] > Btw, random.py doesn't seem to supply pseudo-random iterators -- > easy to make e.g. with iter(random.random, None) [assuming you > want a nonterminating one], Probably a bit faster with: starmap(random.random, repeat(())) > but that wouldn't be copyable. Should > something be done about that...? No. 1) The use case is not typical. Other than random.random() and time.ctime(), it is rare to see functions of zero arguments that usefully return an infinite sequence of distinct values. 2) If you need a copy, run it through tee(). Raymond
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