Re: [Cython] PEP 509: detect dict modification by version tag

2016-04-14 Thread Robert Bradshaw
Cool! This was essentially my answer for "if you were to propose a Python PEP, what would it be" on the podcast. We should get Cython listed as a potential user as well. On Thu, Apr 14, 2016 at 9:15 AM, Stefan Behnel wrote: > Hi! > > This new PEP seems interesting for Cython optimisations, too:

[Cython] PEP 509: detect dict modification by version tag

2016-04-14 Thread Stefan Behnel
Hi! This new PEP seems interesting for Cython optimisations, too: https://www.python.org/dev/peps/pep-0509/ Essentially, it adds a 64 bit modification counter to dicts that allows detecting unmodified dicts, e.g. during lookups of methods or globals. It's currently proposed for Py3.6. Stefan _