Ok, here is the test 
code https://gist.github.com/ojomio/941d03b728a88d93d010
Apart from reproducing the (seeming) problem, it prints out 
"PASSIVE_NO_RESULT"(yes, you were right about the name) which is *in* 
committed_state
вторник, 8 декабря 2015 г., 19:44:16 UTC+5 пользователь Michael Bayer 
написал:
>
>
> We have a lot of "PASSIVE_*" symbols, but I can't find one, even looking 
> way back, that is called "PASSIVE_NO_DELETE".  Also these particular 
> symbols don't get populated into objects, they are arguments we send to 
> various attribute fetch/history methods.    If I had to guess, you 
> *might* be seeing PASSIVE_NO_RESULT, but that wouldn't be present in 
> committed_state. 
>
> Overall this description of behavior is not clear.  If you could 
> reproduce your exact results in a console session or script and please 
> report on those exactly, that would help understand your case. 
> Following the guidelines at http://stackoverflow.com/help/mcve would be 
> most helpful. 
>
> The is_modified() method up until 0.8 included a default setting for its 
> own "passive" flag that would cause it to fetch relationships as a side 
> effect.  This was fixed in 0.8.   Also it does not include 
> collection-bound relationships as part of its answer unless the 
> include_collections flag is set to True. 
>
> > 
> > Does anyone know why it happens like this? How can I correctly check if 
> > the object's going to be updated on commit? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "sqlalchemy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to sqlalchemy+...@googlegroups.com <javascript:> 
> > <mailto:sqlalchemy+unsubscr...@googlegroups.com <javascript:>>. 
> > To post to this group, send email to sqlal...@googlegroups.com 
> <javascript:> 
> > <mailto:sqlal...@googlegroups.com <javascript:>>. 
> > Visit this group at http://groups.google.com/group/sqlalchemy. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to