There are many uses of object in code and docstrings that seem to assume an equivalence between a Python object and a JSON object.
In Python, everything is an object. A JSON (and Javascript) object more or less translates to a dict in Python (even though JSON decoding can also return a list).
This PR changes most usages of object in code and docstrings to dict, or to module when network parameters are concerned. It also removes it altogether in class declarations. Finally it changes some code to be clearer and more robust.
There are many uses of
object
in code and docstrings that seem to assume an equivalence between a Python object and a JSON object.In Python, everything is an object. A JSON (and Javascript) object more or less translates to a dict in Python (even though JSON decoding can also return a list).
This PR changes most usages of
object
in code and docstrings todict
, or tomodule
when network parameters are concerned. It also removes it altogether in class declarations. Finally it changes some code to be clearer and more robust.