A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-December/106613.html below:

[Python-Dev] Using logging in the stdlib and its unit tests

[Python-Dev] Using logging in the stdlib and its unit testsVinay Sajip vinay_sajip at yahoo.co.uk
Thu Dec 9 10:52:13 CET 2010
Glenn Linderman <v+python <at> g.nevcal.com> writes:


>     Agreed, they are not necessarily dedicated to apps.  But while they
>     are running the app, they have the appname in their thread local
>     storage, no?    So if a thread has the appname in its thread local
>     storage, is it not servicing that app, at that moment?  And if it
>     is, why is that insufficient?  That is my question, and you've
>     sidestepped it.

Sorry, I didn't mean to side-step: it's just that when reading your earlier post
(on the Web using Gmane), all the lines of Python in your post ran together, so
I didn't quite see what you were getting at.

Having looked at it more carefully, you're right: the threads set is not needed.
You can just "return tlocal.appName == self.app.name". I missed that, so thanks
for teaching me something, too :-)

Regards,

Vinay Sajip

More information about the Python-Dev mailing list

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