[Python-ideas] Factory functions (was: RE: time.wallclock() or other similar stuff)

Antoine Pitrou solipsis at pitrou.net
Wed Nov 3 09:58:52 CET 2010


On Wed, 3 Nov 2010 13:26:27 +0800
Kristján Valur Jónsson
<kristjan at ccpgames.com> wrote:
> And why are there factory functions in threading.py and not classes?

I'm not sure, but it looks like a poor man's way of discouraging
subclassing.

Regards

Antoine.





More information about the Python-ideas mailing list