Message134189
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') |
|
Date |
User |
Action |
Args |
2011-04-20 23:15:22 | vstinner | set | recipients:
+ vstinner, gregory.p.smith, db3l, pitrou, sable, benjamin.peterson, rnk, neologix, python-dev |
2011-04-20 23:15:22 | vstinner | set | messageid: <1303341322.01.0.722397594727.issue11223@psf.upfronthosting.co.za> |
2011-04-20 23:15:21 | vstinner | link | issue11223 messages |
2011-04-20 23:15:21 | vstinner | create | |
|