[IronPython] avoiding using the keyword 'self'

Ori oorrii at gmail.com
Sat Aug 4 07:19:52 PDT 2007

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. 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 inherited class. Is there a way to avoid this prefix?
> Thanks,
> Ori

View this message in context: http://www.nabble.com/avoiding-using-the-keyword-%27self%27-tf4216418.html#a11996927
Sent from the IronPython mailing list archive at Nabble.com.

More information about the Users mailing list