Damn, there's one thing I forgot to mention in my first mail : I get this behaviour with python 3.3.2. I confirm that it works correctly with 2.7.5. I also confirm the problems appeared with the master yesterday.
So, a different behaviour between python 2 and 3, that's not a fun bug. Can you think of a better way to debug it than to systematically trace both executions and find where it changes ? 2013/8/19 Michael Bayer <[email protected]> > I just ran this back all the way to 0.7.2 and I'm still getting all four > videos in the collection: > > ('List of videos after append:', [<Video: v1>, <Video: v2>]) > ('List of videos after insert:', [<Video: v4>, <Video: v1>, <Video: v2>, > <Video: v3>]) > (1, 1, 1, 1) > (2, 2, 1, 2) > (3, 3, 1, 3) > (4, 4, 1, 0) > > > not so for you ? > > > > On Aug 19, 2013, at 5:42 PM, Michael Bayer <[email protected]> > wrote: > > sorry, yes that's perfect I missed that > > > On Aug 19, 2013, at 5:25 PM, Georges Dubus <[email protected]> > wrote: > > > > Le lundi 19 août 2013 17:24:10 UTC+2, Michael Bayer a écrit : >> >> seems like a bug, do you have a quick test.py or I can just work one up >> >> > Would the code from the gist with an assert be considered as a valid > test.py ? > > self.assertEqual(q.videos, [v4, v1, v2, v3]) > > and for good measure > > q.videos = reversed(q.videos) > self.assertEqual(q.videos, [v3, v2, v1, v4]) > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- Georges -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
