decred / tinydecred

Python tools for Decred
ISC License
27 stars 14 forks source link

multi: remove most references to "object" from code and docstrings #122

Closed teknico closed 4 years ago

teknico commented 4 years ago

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.