From 86ef95bd26ae2911bfcb782017c932ecb0ccd389 Mon Sep 17 00:00:00 2001 From: Cacahuete Lenovo Ubuntu Date: Fri, 14 Sep 2018 23:48:51 +0200 Subject: [PATCH] Added the output for 'nested' as an example --- nested_mapping.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nested_mapping.py b/nested_mapping.py index eb4f9d9..c6b7bed 100644 --- a/nested_mapping.py +++ b/nested_mapping.py @@ -87,3 +87,22 @@ if __name__ == "__main__": print("") print("Its mapping:") pprint(structure) + + ## Output: + ## + ##{'2 same dict 1 other': [{'as': , 'same': }, + ## {'different': , 'the': }], + ## 'play me': , + ## 'sequence types': {'lists': [, , []], + ## 'sets': {, , }, + ## 'tuples': (, , [])}, + ## 'some types': {'MaClasse': , + ## 'datetime': , + ## 'empty-list': , + ## 'empty-tuple': , + ## 'float': , + ## 'int': , + ## 'list': [], + ## 'set': {}, + ## 'str': , + ## 'tuple': (,)}}