static statements and thread safety

Chris Angelico rosuav at gmail.com
Thu Sep 22 04:18:28 EDT 2011


On Thu, Sep 22, 2011 at 6:16 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> That's a good point.  So, isn't the default arguments hack in the same
> boat with regards to threads?
>
> Maybe I'm just misunderstanding the thread concept in Python.  Threads
> have separate execution stacks but share interpreter global state,
> right?

I would say it probably is, but others on this list will know more of
threading in Python. I tend not to write multithreaded programs in
Python - the main reason for me to use Python is rapid scriptwriting,
which usually doesn't demand threads.

ChrisA



More information about the Python-list mailing list