Message225137
Other languages have no such handly feature as generators. NumPy provides the size parameter to all functions and generates a bunch of random numbers at time. This doesn't look pythonic (Python stdlib prefers iterators).
I believe a generator is most Pythonic and most handly solution of this issue on Python. And it is efficient enough. |
|
Date |
User |
Action |
Args |
2014-08-10 10:32:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, pitrou, aisaac, westley.martinez, NeilGirdhar, madison.may, dkorchem |
2014-08-10 10:32:42 | serhiy.storchaka | set | messageid: <1407666762.53.0.241210527232.issue18844@psf.upfronthosting.co.za> |
2014-08-10 10:32:42 | serhiy.storchaka | link | issue18844 messages |
2014-08-10 10:32:42 | serhiy.storchaka | create | |
|