On 20/04/12 16:32, Surya K wrote:
I java it really works well.
Java: this.foo() Python: self.foo() Works almost identically in both. Of course in Java the 'this' is optional but many style guides recommend its use to make it clear where the function lives... If you really like 'this' over 'self' you can even do that too: class C: def foo(this): pass def bar(this): this.foo() -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor