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/2008-September/082125.html below:

[Python-Dev] Further PEP 8 compliance issues in threading and multiprocessing

[Python-Dev] Further PEP 8 compliance issues in threading and multiprocessing [Python-Dev] Further PEP 8 compliance issues in threading and multiprocessingFredrik Lundh fredrik at pythonware.com
Mon Sep 1 18:28:19 CEST 2008
Antoine Pitrou wrote:

> event_class = Event().__class__ ?
> 
> Not pretty I know :-)

somewhat prettier, assuming 2.3 or newer:

 >>> import threading
 >>> e = threading.Event()
 >>> type(e)
<class 'threading._Event'>
 >>> isinstance(e, type(threading.Event()))
True

(but pretty OT)

</F>

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