(solved) smtplib, capturing output from set_debuglevel ??

Andrew Dalke adalke at mindspring.com
Sat Oct 9 22:43:13 EDT 2004


Josiah Carlson wrote:
> It is a kind of per-thread storage, but you can get at the data any time
> from any thread (via multi_thread_output.get_ready() ). From what I
> understand of generic Python thread local storage gained from the
> docstring in CVS for the Python implementation here:
>    <http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Lib/_threading_local.py?rev=1.3&view=markup>
> 
> ...other threads cannot access Python standard thread local storage.

Mmm, I see your point.  There's a roundabout way by
getting the '_local__key' of the local storage object
then enumerating all the Threads to find the one with
that key in the __dict__.  Too much hackery.

				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list