Message196728
> Would these distribution generators be implemented internally (see attached patch) or publicly exposed?
See issue18900. Even if this proposition will be rejected I think we should publicly expose weighted choice_generator(). A generator or a builder which returns function are only ways how efficiently implement this feature. Use lru_cache isn't good because several choice generators can be used in a program and because it left large data in a cache long time after it was used. |
|
| Date |
User |
Action |
Args |
| 2013-09-01 19:16:37 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, pitrou, aisaac, westley.martinez, madison.may |
| 2013-09-01 19:16:37 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2013-09-01 19:16:37 | serhiy.storchaka | link | issue18844 messages |
| 2013-09-01 19:16:37 | serhiy.storchaka | create | |
|