This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, db3l, gregory.p.smith, neologix, pitrou, python-dev, rnk, sable, vstinner
Date 2011-04-20.23:15:19
SpamBayes Score 2.2592105e-06
Marked as misclassified No
Message-id <1303341322.01.0.722397594727.issue11223@psf.upfronthosting.co.za>
In-reply-to
Content
sys_thread_info.patch:
 - Replace threading._info() by sys.thread_info: it now always have 3 values, but all values are optional (can be None). sys.thread_info.name is None if Python is compiled without threads.
 - Reorder sys internal doc (Static objects) and replace "dict" by "struct sequence" for float_info
 - Rename _PyThread_Info() to PyThread_GetInfo() (consistent name with PyFloat_GetInfo() and PyLong_GetInfo())
 - Always compile thread.c, but add #ifdef WITH_THREAD around most the file (except PyThread_GetInfo())

Example:

>>> sys.thread_info
sys.thread_info(name='pthread', lock='semaphore', version='NPTL 2.11.2')
History
Date User Action Args
2011-04-20 23:15:22vstinnersetrecipients: + vstinner, gregory.p.smith, db3l, pitrou, sable, benjamin.peterson, rnk, neologix, python-dev
2011-04-20 23:15:22vstinnersetmessageid: <1303341322.01.0.722397594727.issue11223@psf.upfronthosting.co.za>
2011-04-20 23:15:21vstinnerlinkissue11223 messages
2011-04-20 23:15:21vstinnercreate