your_entity._entity.pop('property_to_delete', None)
It is shorter, and probably a little clearer.
Robert
> --
> 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-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>
class T(db.Model):
sp = db.StringProperty()
ip = db.IntegerProperty()
T(key_name='test', sp='some str', ip=7).put()
# stop. go look in the datastore viewer.
# now, comment out the def of 'sp' and the put(), then rerun with
test_t = T.get_by_key_name('test')
test_t._entity.pop('sp', None)
test_t.put()
Robert