(solved) smtplib, capturing output from set_debuglevel ??

Andrew Dalke adalke at mindspring.com
Sun Oct 10 04:43:13 CEST 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.

				dalke at dalkescientific.com

More information about the Python-list mailing list