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/2011-April/110905.html below:

[Python-Dev] [Python-checkins] cpython: Issue #11223: Add threading._info() function providing informations about the

[Python-Dev] [Python-checkins] cpython: Issue #11223: Add threading._info() function providing informations about the [Python-Dev] [Python-checkins] cpython: Issue #11223: Add threading._info() function providing informations about theBenjamin Peterson benjamin at python.org
Thu Apr 21 00:03:19 CEST 2011
2011/4/20 Victor Stinner <victor.stinner at haypocalc.com>:
> Le mercredi 20 avril 2011 à 11:57 -0500, Benjamin Peterson a écrit :
>> How about using a structseq ala sys.float_info or sys.long_info? (In
>> fact, we might want to put this in sys.)
>
> Would you prefer something like the following example?
>
>>>> sys.thread_info
> sys.threadinfo(name='pthread', 'lock_implementation': 'semaphore',
> version: 'NPTL 2.11.2')
>>>> sys.thread_info
> sys.threadinfo(name='nt', 'lock_implementation': 'semaphore', version:
> '')
>>>> sys.thread_info
> sys.threadinfo(name='os2', 'lock_implementation': '', version: '')

The only things that would improve that beautiful sight would be
s/threadinfo/thread_info/. :)



-- 
Regards,
Benjamin
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