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/ ________________________________________________________________________
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