在瀏覽App Engine和StringListProperty
或ListProperty
的文檔後,我似乎無法找到列表中項目的順序是否有保證。也就是說,我想是肯定列表順序保持不變,儘管將與從數據存儲越來越:AppEngine:存儲在StringListProperty中的項目是否總是保持相同的順序?
instance = MyModel()
instance.list_property = ['a', 'b', 'c']
instance.put()
# Retrieve the model again
instance2 = MyModel.get_by_id(instance.key().id())
assert instance2.list_property == ['a', 'b', 'c']
不AppEngine上做出有關在列表或StringList的項目的順序任何保證?