[Python-Dev] Stack frames
M.-A. Lemburg
mal@lemburg.com
Fri, 01 Aug 2003 21:29:49 +0200
Fri, 01 Aug 2003 21:29:49 +0200
- Previous message: [Python-Dev] Stack frames
- Next message: [Python-Dev] Stack frames
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. L=F6wis wrote: > "M.-A. Lemburg" <mal@lemburg.com> writes: >=20 >>The problem is that I can't change the library all that much, >>e.g. add some context parameter to all calls, so I have to use >>some other technique for accessing the call-specific variables. >=20 > 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). --=20 Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Aug 01 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________
- Previous message: [Python-Dev] Stack frames
- Next message: [Python-Dev] Stack frames
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]