Why a class when there will only be one instance?
Steve Lamb
grey at despair.dmiyu.org
Tue May 25 20:55:36 EDT 2004
On 2004-05-26, SeeBelow at SeeBelow.Nut <SeeBelow at SeeBelow.Nut> wrote:
> I see the value of a class when two or more instances will be created, but
> Python programmers regularly use a class when there will only be one
> instance. What is the benefit of this?
What happens when down the line someone wants to use that code in
something that requires multiple instances?
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list