On Mon, Jul 19, 2004, Phillip J. Eby wrote: > > However, anything that calls back into Python code isn't necessarily > atomic, and in general, almost anything can call back into Python code. Yup. > For example, the seemingly harmless dictionary item assignment can call > back into Python for a custom type's __hash__ and __eq__ methods, so could > it be that a thread switch could actually occur during this statement: > > foo[bar] = baz > > if 'bar' has such custom methods? Maybe I'm wrong, and the GIL is still > held in such a case, but I'm not sure *how*. No, it isn't. -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ Barbara Boxer speaks for me: http://buffaloreport.com/2004/040713.boxer.marriage.html
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4