Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
__new__ solution in Clear category for Capital City by flpo
class Capital(object):
instance = None
def __new__(cls, name):
if Capital.instance is None:
Capital.instance = super(Capital, cls).__new__(cls)
Capital.instance._name = name
return Capital.instance
def name(self):
return self._name
June 11, 2018
Comments: