failing to instantiate an inner class because of its order
buffi
bjorn.kempen at gmail.com
Wed Dec 27 20:44:30 EST 2006
> 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
>
>
> Has to call in this way. I have confirmed this works.
What is even the point of the class View there since you don't use it?
/buffi (buffis.com)
More information about the Python-list
mailing list