Message368686
I don't want something probabilistic. Fix it or don't ;-)
One thing that would work, but at the cost of non-determinism: do the same as now, but obtain the number part of the group name by applying next() to a module-global private instance of itertools.count(). That will keep the numbers increasing "forever", and across calls. The point to using .count() is that it's atomic (i.e., won't repeat a number if multiple threads happen to be constructing regexps simultaneously).
It's a darned silly amount of effort, though ;-) |
|
Date |
User |
Action |
Args |
2020-05-12 00:12:46 | tim.peters | set | recipients:
+ tim.peters, nedbat, Anthony Sottile, kleshni |
2020-05-12 00:12:46 | tim.peters | set | messageid: <1589242366.76.0.341431578555.issue40480@roundup.psfhosted.org> |
2020-05-12 00:12:46 | tim.peters | link | issue40480 messages |
2020-05-12 00:12:46 | tim.peters | create | |
|