[issue3589] Misleading names for multiprocessing "convenience" functions

Nick Coghlan report at bugs.python.org
Mon Sep 1 15:07:53 CEST 2008


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Interesting - in some of the other work I was doing regarding the PEP 8
compliant alternative threading API, I noticed that the threading module
contains similar gems such as:

def Event(*args, **kwds):
  return _Event(*args, **kwds)

Using a factory function to discourage subclassing is one thing, but why
name the factory function as if it was a still a class?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3589>
_______________________________________


More information about the Python-bugs-list mailing list