Author tim.peters
Recipients Anthony Sottile, kleshni, nedbat, tim.peters
Date 2020-05-12.00:12:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589242366.76.0.341431578555.issue40480@roundup.psfhosted.org>
In-reply-to
Content
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 ;-)
History
Date User Action Args
2020-05-12 00:12:46tim.peterssetrecipients: + tim.peters, nedbat, Anthony Sottile, kleshni
2020-05-12 00:12:46tim.peterssetmessageid: <1589242366.76.0.341431578555.issue40480@roundup.psfhosted.org>
2020-05-12 00:12:46tim.peterslinkissue40480 messages
2020-05-12 00:12:46tim.peterscreate