dictionary_add_list

Overview

Adds an empty list in an existing dictionary at key. Note that this will overwrite any existing value at that key.

Parameters

  • dictionarydictionary – The dictionary to manipulate
  • keystring – The key at which to add an empty list

Example

{% dictionary_add_list mydict "new" %}  # {'a': 1} => {'a': 1, 'new': []}