Added the output for 'nested' as an example

This commit is contained in:
Cacahuete Lenovo Ubuntu 2018-09-14 23:48:51 +02:00
parent f937eaefac
commit 86ef95bd26

View file

@ -87,3 +87,22 @@ if __name__ == "__main__":
print("") print("")
print("Its mapping:") print("Its mapping:")
pprint(structure) pprint(structure)
## Output:
##
##{'2 same dict 1 other': [{'as': <bytes>, 'same': <int>},
## {'different': <str>, 'the': <str>}],
## 'play me': <type>,
## 'sequence types': {'lists': [<str>, <datetime>, [<int>]],
## 'sets': {<int>, <str>, <bool>},
## 'tuples': (<str>, <datetime>, [<int>])},
## 'some types': {'MaClasse': <MaClasse>,
## 'datetime': <datetime>,
## 'empty-list': <list>,
## 'empty-tuple': <tuple>,
## 'float': <float>,
## 'int': <int>,
## 'list': [<bool>],
## 'set': {<str>},
## 'str': <str>,
## 'tuple': (<str>,)}}