Message300826
For my use case, it was easy enough to wrap the `uid = d[obj]` in a try... catch... plus locking.
Using setdefault would cause the counter to be incremented every time. In truth, here I did not care about having consecutive uids, so that would have worked just as well.
In real truth, it later turned out that I didn't really need numeric uids anyways; I could just use weakrefs to the object themselves instead. |
|
Date |
User |
Action |
Args |
2017-08-25 05:35:20 | Antony.Lee | set | recipients:
+ Antony.Lee, rhettinger, pitrou |
2017-08-25 05:35:20 | Antony.Lee | set | messageid: <1503639320.56.0.307957119411.issue31254@psf.upfronthosting.co.za> |
2017-08-25 05:35:20 | Antony.Lee | link | issue31254 messages |
2017-08-25 05:35:20 | Antony.Lee | create | |
|