Of course, it was easy to bypass this issue with a GQL query, but I'd like to learn about why my intuition was wrong about this.
On Dec 18, 12:34 am, James <[email protected]> wrote: > for t in things: > > t.images.get() > > if not t.images.get(): > > things.remove(t) > > The indent broke for the initial post... > > On Dec 18, 12:33 am, James <[email protected]> wrote: > > > for t in things: > > > if not t.images.get(): > > things.remove(t) > > > for t in things: print t.images.get() > > > Strangely enough, this is what gets printed: > > > <model.image.Image object at 0x9d2daec> > > <model.image.Image object at 0x9d2da0c> > > None > > <model.image.Image object at 0x9d2d1ec> > > <model.image.Image object at 0x9d2da8c> > > <model.image.Image object at 0x9d2d54c> > > None > > <model.image.Image object at 0x9d2decc> > > None > > <model.image.Image object at 0xa00282c> > > > Images, in this case, is a collection name for an inverted index. > > > But this kind of error has never happened before. Am i overlooking > > something blatant, or is the call returning something different when > > called twice? > > > And yeah, I could define the variable once in a separate list and then > > use a zip() procedure, but this still worries me. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
