Not clear about the dot notation
Ian Kelly
ian.g.kelly at gmail.com
Sun Jan 16 15:26:02 EST 2011
On 1/16/2011 12:59 PM, Zeynel wrote:
> What does vote.vote refer to in this snippet?
"vote" is an instance of the Vote class, and "vote.vote" is the value of
the "vote" attribute on that instance. In this case, that will be an int.
More precisely, "vote.vote" is a value managed by the "vote" descriptor
on the "Vote" class, a Google App Engine IntegerProperty.
Cheers,
Ian
More information about the Python-list
mailing list