Parallelization on muli-CPU hardware?

Alex Martelli aleaxit at
Thu Oct 7 21:13:56 CEST 2004

Aahz <aahz at> wrote:
> >> still possible to use introspection to access thread-local data in
> >> another thread.
> >
> >Is it...?  Maybe I'm missing something...:
> If you look at the code for _threading_local, you'll see that it depends
> on __getattribute__() to acquire a lock and patch in the current
> thread's local state.  IIRC from the various threads about securing
> Python, there are ways to break __getattribute__(), but I don't remember
> any off-hand (and don't have time to research).

I believe you're thinking of the minimal portable version: I believe
that for such systems as Windows and Linux (together probably 99% of
Python users, and i speak as a Mac fan...!-) there are specific
implementations that use faster and probably unbreakable approaches.


More information about the Python-list mailing list