Re: dictionaries and threads

2005-06-02 Thread Bloke
thanks. Looks good. -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionaries and threads

2005-06-02 Thread John Abel
Bloke wrote: >I've been trying to find a Python tutorial on threading - does anyone >have a reference? > >Rob > > > You could try this: http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf J -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionaries and threads

2005-06-02 Thread Bloke
I've been trying to find a Python tutorial on threading - does anyone have a reference? Rob -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionaries and threads

2005-06-01 Thread Tim Peters
[Gary Robinson] > I know the Global Interpreter Lock ensures that only one python thread > has access to the interpreter at a time, which prevents a lot of > situations where one thread might step on another's toes. Not really. The CPython implementation's C code relies on the GIL in many ways t

Re: dictionaries and threads

2005-06-01 Thread Paul Rubin
Gary Robinson <[EMAIL PROTECTED]> writes: > As far as I can tell, if the Python bytecodes that cause dictionary > modifications are atomic, then there should be no problem. But I don't > know that they are because I haven't looked at the bytecodes. Depending on behavior like that is asking for

dictionaries and threads

2005-06-01 Thread Gary Robinson
Hi, I know the Global Interpreter Lock ensures that only one python thread has access to the interpreter at a time, which prevents a lot of situations where one thread might step on another's toes. But I'd like to ask about a specific situation just to be sure I understand things relative to