Best way to access a class variable in an object?
<p>These both work:</p>

<pre><code>class A:
    V = 3
    def getV(self):
        return self.V
    def getVbis(self):
        return A.V

print A().getV()
print A().getVbis()
</code></pre>

<p>Which one is more pythonic? Why?</p>
