Added the output for 'nested' as an example
This commit is contained in:
parent
f937eaefac
commit
86ef95bd26
|
|
@ -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>,)}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue