[Tutor] Hello and newbie question about "self"

Kent Johnson kent37 at tds.net
Mon Feb 4 03:49:26 CET 2008


Tony Cappellini wrote:
>>> http://www.ibiblio.org/swaroopch/byteofpython/read/self.html
> Is there a typo in the contents of this web page?

Yes, you are right, C++ uses 'this'.

Kent

> 
> Should this statement
> 
> Note for C++/Java/C# Programmers
> 
> The self in Python is equivalent to the "self" pointer in C++ and the
> this reference in Java and C#.
> 
> 
> Actually be
> 
> Note for C++/Java/C# Programmers
> 
> The self in Python is equivalent to the "this" pointer in C++ and the
> this reference in Java and C#.
> 
> 
> (I substituted "this" for "self")
> 



More information about the Tutor mailing list