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

Guido van Rossum guido at python.org
Wed Sep 3 18:13:58 CEST 2008


2008/9/2 Greg Ewing <greg.ewing at canterbury.ac.nz>:
> Steven D'Aprano wrote:
>>
>> Why not expose the class directly, instead of making it private and then
exposing it via a factory function that does nothing else?
>
> This option would also have the advantage of not
> changing the API (unless there's code out there that
> actually depends on them *not* being classes, and
> that seems rather unlikely).

No. Allowing them to be subclassed makes it harder to replace them on some
platforms with equivalent but faster implementations.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080903/8ae51b43/attachment.htm>


More information about the Python-Dev mailing list