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

Kristján Valur Jónsson kristjan at ccpgames.com
Wed Nov 3 06:26:27 CET 2010


Completely off topic.
What's with factory functions?  Why not a class?  And why are there factory functions in threading.py and not classes?
K

-----Original Message-----
From: python-ideas-bounces+kristjan=ccpgames.com at python.org [mailto:python-ideas-bounces+kristjan=ccpgames.com at python.org] On Behalf Of Greg Ewing
Sent: Wednesday, November 03, 2010 6:19
To: python-ideas at python.org
Subject: Re: [Python-ideas] time.wallclock() or other similar stuff

However, it suggests a factory function that returns some kind of object that performs timing, rather than simply returning a time.





More information about the Python-ideas mailing list