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

Antoine Pitrou solipsis at pitrou.net
Mon Sep 1 17:39:18 CEST 2008


Jean-Paul Calderone <exarkun <at> divmod.com> writes:
> 
> Here's a complaint.  It's surprising that you can't use Event et al with
> isinstance.  This is something I'm sure a lot of people run into (I did,
> many years ago) when they start to use these APIs.  Once you do figure
> out why it doesn't work, it's not clear how to do what you want, since
> _Event is private.

event_class = Event().__class__ ?

Not pretty I know :-)




More information about the Python-Dev mailing list