Re: failing to instantiate an inner class because of its order

2006-12-27 Thread Gabriel Genellina
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

Re: failing to instantiate an inner class because of its order

2006-12-27 Thread Pyenos
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

failing to instantiate an inner class because of its order

2006-12-27 Thread Pyenos
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