Re: [IronPython] avoiding using the keyword 'self'

2007-08-04 Thread Sanghyeon Seo
2007/8/4, Ori <[EMAIL PROTECTED]>: > I don't understand why I have to write the "self." prefix - the context is > the inherited class. Is there a way to avoid this prefix? No. You are programming in Python. -- Seo Sanghyeon ___ Users mailing list Users

Re: [IronPython] avoiding using the keyword 'self'

2007-08-04 Thread Ori
I guess the answer is no, and I must explicitly use the 'self.' prefix. About the syntax error - you are right, there is one in the post, but it has nothing to do with ineriting from a sub-class Ori wrote: > > Hello, > > I have a python class which inherits from some other (c#) class. Somethin

Re: [IronPython] avoiding using the keyword 'self'

2007-08-04 Thread Michael Foord
Ori wrote: > Hello, > > I have a python class which inherits from some other (c#) class. Something > like: > from MyNamespace import MyClass > class PyClass(MyClass) > def myMethod(self) > return self.PropertyFormInheritedClass > You appear to have a syntax error here (which may be the

[IronPython] avoiding using the keyword 'self'

2007-08-04 Thread Ori
Hello, I have a python class which inherits from some other (c#) class. Something like: from MyNamespace import MyClass class PyClass(MyClass) def myMethod(self) return self.PropertyFormInheritedClass I don't understand why I have to write the "self." prefix - the context is the inherite