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
It would be nice if there can be a way to set a list as an item in a MultiDict object.
This is currently only possible if you re-create the object.
Examples
from chalice.app import MultiDict
m = MultiDict(None)
m["a"] = ["a1", "a2"]
print(m)
// MultiDict({'a': [['a1', 'a2']]}) # list is inserted in a list
from chalice.app import MultiDict
m = MultiDict({"a": ["a1", "a2"]})
print(m)
// MultiDict({'a': ['a1', 'a2']}) # list is OK, as it was provided during object creation
So maybe the correct functionality for __setitem__ would be the following:
from chalice.app import MultiDict
m = MultiDict(None)
m["a"] = ["a1", "a2"]
print(m)
// MultiDict({'a': ['a1', 'a2']})
The text was updated successfully, but these errors were encountered:
It would be nice if there can be a way to set a list as an item in a MultiDict object.
This is currently only possible if you re-create the object.
Examples
So maybe the correct functionality for
__setitem__
would be the following:The text was updated successfully, but these errors were encountered: