On Thursday, November 17, 2011 4:19:16 PM UTC-5, viniciusban wrote:
>
> I'm saying that:
> row.update() doesn't alter database contents, as set.update() does.
>
> Same verb, different behaviour.
>
Why should it have the same behavior -- it's the same verb, but operating 
on instances of different classes? row.update() does what you would expect 
-- it updates the Row object. Note, a Row object (as well as a Rows object) 
does not merely reference a record in the db -- it is actually a copy of 
the data from the db, converted to a Python object. A Set, on the other 
hand, merely represents records in the db, so it makes sense that 
set.update() would update the db record itself.

Anthony

Reply via email to