Message262744
A user can use map(), filter(), zip() without knowing anything about generators. In most cases those function will do their magic and provide a finite number of outputs.
The weighted_choice_generator on the other hand isn't as easy to use. If the user wants 5 values from it, they need to know about `take()` from itertools or call `next()`. |
|
Date |
User |
Action |
Args |
2016-04-01 15:43:11 | Christian.Kleineidam | set | recipients:
+ Christian.Kleineidam, tim.peters, rhettinger, mark.dickinson, pitrou, aisaac, westley.martinez, serhiy.storchaka, NeilGirdhar, madison.may, dkorchem, xksteven |
2016-04-01 15:43:11 | Christian.Kleineidam | set | messageid: <1459525391.54.0.847845341376.issue18844@psf.upfronthosting.co.za> |
2016-04-01 15:43:11 | Christian.Kleineidam | link | issue18844 messages |
2016-04-01 15:43:11 | Christian.Kleineidam | create | |
|