[Python-Dev] New PEP: 319

Jeremy Hylton jeremy@zope.com
16 Jun 2003 16:35:22 -0400


On Mon, 2003-06-16 at 15:07, Samuele Pedroni wrote:
> Python is already doing things alright, it already has got the higher-level 
> constructs.
> 
> 'synchronized' makes sense on methods to have thread-safe data structures. 
> The rest of Java synchronization facilities should really be used to 
> construct higher-level tools.
> 
> I think 'with' is very likely a worthy addition. And maybe something along 
> the lines of:
> 
> class C(object,Synchronizable):
> 
>    def meth(self,...) [syncmethod]:
>      ...
> 
> I'm very skeptical about syncrhonize/asynchronize and implicit locks 
> associated/able with all objects.

+1

Jeremy