[Python-Dev] Stack frames
Sat, 02 Aug 2003 00:49:27 +0200
Martin v. L=F6wis wrote:
> "M.-A. Lemburg" <email@example.com> writes:
>>>I recommend to use thread-local variables.
>>Thanks, but that only works in multi-threaded environments where
>>you process each call in a different thread. This application is
>>single-threaded (even though it may turn into a multi-threaded
>>one at some later stage).
> That is not true. In the single-threaded case, just use global
... and then manage access to these global variables ? No thanks.
I always try to keep global state in objects so that a later
transition to a multi-threaded application remains easily
I'll stick with my solution for the time being.
Professional Python Software directly from the Source (#1, Aug 02 2003)
>>> Python/Zope Products & Consulting ... http://www.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/