list_dictionary¶
-
support.lists.
list_dictionary
(dictionary)¶ Print a dictionary, one line for each item, with the keys sorted
Examples:
In [2]: print list_dictionary({'a':1, 'b':2, 'cc':{'x':8, 'y':9}}) 3 items a 1 b 2 cc {'y': 9, 'x': 8} In [3]: list_dictionary({'a':1, 'b':2, 'cc':{'x':8, 'y':9}}) Out[3]: "3 items\na\t1\nb\t2\ncc\t{'y': 9, 'x': 8}\n"