Re: [python-uk] [pyconuk] Minimalistic software transactional memory

2007-12-11 Thread Michael Sparks
Hi Richard, On Tuesday 11 December 2007 13:36, Richard Taylor wrote: > I don't think that you can rely on the threadsafety of these functions. > Even if they are threadsafe in C Python (which I doubt that 'set' is), the > locking in Jython in more fine grained and would likely catch you out. It'

Re: [python-uk] [pyconuk] Minimalistic software transactional memory

2007-12-11 Thread Richard Taylor
Mike I don't think that you can rely on the threadsafety of these functions. Even if they are threadsafe in C Python (which I doubt that 'set' is), the locking in Jython in more fine grained and would likely catch you out. I would suggest that you should routinely wrap shared datamodels like th