On Thu, 14 Apr 2016 at 15:14 Victor Stinner <victor.stinner at gmail.com> wrote: > 2016-04-14 23:29 GMT+02:00 Barry Warsaw <barry at python.org>: > > I can see why you might want a global version number, but not doing so > would > > eliminate an implicit reliance on the GIL, or in a GIL-less > implementation > > <wink> a lock around incrementing the global version number. > > It's not like the builtin dict type is going to become GIL-free... So > I think that it's ok to use a global version. > > A very few know that, but the GIL has some advantages sometimes... > And even if it was GIL-free you do run the risk of two dicts ending up at the same version # by simply mutating the same number of times if the counters were per-dict instead of process-wide. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160414/7b9d9158/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4