MCPcopy Create free account
hub / github.com/ccxt/ccxt / pprint

Function pprint

python/ccxt/static_dependencies/marshmallow/utils.py:77–93  ·  view source on GitHub ↗

Pretty-printing function that can pretty-print OrderedDicts like regular dictionaries. Useful for printing the output of :meth:`marshmallow.Schema.dump`. .. deprecated:: 3.7.0 marshmallow.pprint will be removed in marshmallow 4.

(obj, *args, **kwargs)

Source from the content-addressed store, hash-verified

75
76
77def pprint(obj, *args, **kwargs) -> None:
78 """Pretty-printing function that can pretty-print OrderedDicts
79 like regular dictionaries. Useful for printing the output of
80 :meth:`marshmallow.Schema.dump`.
81
82 .. deprecated:: 3.7.0
83 marshmallow.pprint will be removed in marshmallow 4.
84 """
85 warnings.warn(
86 "marshmallow's pprint function is deprecated and will be removed in marshmallow 4.",
87 RemovedInMarshmallow4Warning,
88 stacklevel=2,
89 )
90 if isinstance(obj, collections.OrderedDict):
91 print(json.dumps(obj, *args, **kwargs))
92 else:
93 py_pprint(obj, *args, **kwargs)
94
95
96# https://stackoverflow.com/a/27596917

Callers 15

mainFunction · 0.85
place_delayed_orderFunction · 0.85
watch_balance_loopFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…