I have no class

Rustom Mody rustompmody at gmail.com
Sun Nov 23 12:02:57 EST 2014


On Sunday, November 23, 2014 10:20:05 PM UTC+5:30, Seymore4Head wrote:
> Like I have said, most of the stuff I am doing is still trial and
> error.  Having to specify RPS to use it inside the class seemed wrong
> to me.

Yes that is natural.
Python is a bit odd in the OO-world in that it prioritizes
"Explicit is better than implicit" over convenience.

Notice that you use self.throw where in most other OOP languages
you would use just throw.

Since the whole point of making 'key' (the table) a class variable
as against an instance variable is that it is not attached to 
self.
So where is it attached?
Answer follows from "Explicit is better than implicit"



More information about the Python-list mailing list