confused about self, why not a reserved word?
Wojciech Walczak
wojtek.gminick.walczak at gmail.com
Mon May 5 08:10:59 EDT 2008
2008/5/5, globalrev <skanemupp at yahoo.se>:
> class Foo(object):
> def Hello(self):
> print "hi"
>
> object is purple, ie some sort of reserved word.
>
> why is self in black(ie a normal word) when it has special powers.
> replacing it with sel for example will cause an error when calling
> Hello.
Could you give an example of such an error?
--
Regards,
Wojtek Walczak
http://www.stud.umk.pl/~wojtekwa/
More information about the Python-list
mailing list