At Wednesday 27/12/2006 20:37, Pyenos wrote:
class Model:
def fuck(self):print "fuck!"
class View:
Model() #this part is fine
class Controller:
def __init__(self):
self.Model=Model()
Controller().Model.fuck() #actually slight problem in previous solution
Pyenos <[EMAIL PROTECTED]> writes:
> class Model:
> Controller() #problem
>
> class View:
> Model()
>
> class Controller:pass
>
>
> Python interpreter complains that 'Name Error: Controller()' not defined.
>
Following Edward Kozlowski's advice I can suggest to myself
class Model:
Controller()
class View:
Model()
class Controller:pass
Python interpreter complains that 'Name Error: Controller()' not defined.
--
http://mail.python.org/mailman/listinfo/python-list