You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: from jsonobject import *
In [2]: class Foo(JsonObject):
...: bar = ListProperty()
...:
In [3]: foo = Foo()
In [4]: foo.bar = [1, 2, 3]
In [5]: foo.to_json()
Out[5]: {'bar': [1, 2, 3]}
In [6]: foo.bar += [4]
In [7]: foo.to_json() # The change isn't reflected here
Out[7]: {'bar': [1, 2, 3]}
In [8]: foo.bar # ...even though it is here
Out [8]: [1, 2, 3, 4]
The text was updated successfully, but these errors were encountered:
currently
The text was updated successfully, but these errors were encountered: