Class constants in python
<p>In python, I want a class to have some "constants" (practically, variables) which will be common in all subclasses. Is there a way to do it with friendly syntax?
Right now I use:</p>

<pre><code>class Animal:
    SIZES=["Huge","Big","Medium","Small"]

class Horse(Animal):
    def printSize(self):
        print(Animal.SIZES[1])
</code></pre>

<p>and I'm wondering if there is a better way to do it or a way to do it without then having to write "Animal." before the sizes.
Thanks!
edit: forgot to mention that horse inherits from animal. </p>
