i believe this as to do with how object instances are evaluated for  
equality in python.

ive had a similar issue and if i recall correctly (im on my phone atm  
and not close to my code), i needed to implement __eq__ & __ne__ (or  
whatever non equal is, i cant remember) to my Model object subclasses.



Sent from my iPhone

On 09-02-21, at 20:51, MajorProgamming <sefira...@gmail.com> wrote:

>
> I currently have a need to take a result from a query (which is a
> list) and remove one entity from it. For some reason though when I
> perform the remove, I get an error which says that the entity does not
> exist on the list. How can I do this correctly?
>
> Code:
> #excerpt:
> #wx and wx2 are db.Query objects with filters...
> #I want to remove wx2 from wx
> direct=wx2.get()
> wx=wx.fetch(limit=50)
> wx.remove(direct)
> #this code returns an error. I know for a fact (through debugging)
> that wx2 entity exists in the wx result.
>
>
> Thanks,
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to