Not clear about the dot notation

Zeynel azeynel1 at gmail.com
Sun Jan 16 14:59:11 EST 2011


What does vote.vote refer to in this snippet?
 def txn():
 quote = Quote.get_by_id(quote_id)
 vote = Vote.get_by_key_name(key_names = user.email(), parent =
quote)
 if vote is None:
 vote = Vote(key_name = user.email(), parent = quote)
 if vote.vote == newvote:
 return
 quote.votesum = quote.votesum - vote.vote + newvote
 vote.vote = newvote
from here: http://code.google.com/appengine/articles/overheard.html


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /