[Python-ideas] solving multi-core Python

Ron Adam ron3200 at gmail.com
Sun Jun 21 20:54:48 CEST 2015



On 06/20/2015 06:54 PM, Eric Snow wrote:
> Also note that Barry has a (rejected) PEP from a number of years ago about
> freezing objects...  That idea is likely out of scope as relates to my
> proposal, but it certainly factors in the problem space.

How about instead of freezing, just modify a flag or counter if it's 
mutated.  That could be turned off by default.

Then have a way to turn on an ObjectMutated warning or exception if any 
objects is modified within a routine, code block. or function.

With something like that, small parts of python can be tested and made less 
mutable in small sections at a time.  Possibly working from the inside out.

It doesn't force immutability but instead asks for it.

A small but not quite so impossible step. (?)

Cheers,
     Ron



More information about the Python-ideas mailing list