Currently, MDIOReader and MDIOWriter prints the Python object. It would be useful to have a nice printable representation.
classInfoReporter:
def__init__(self, obj):
self.obj=objdef__repr__(self):
items=self.obj.info_items()
returninfo_text_report(items)
def_repr_html_(self):
items=self.obj.info_items()
returninfo_html_report(items)
from here is a good model to follow.
Currently,
MDIOReaderandMDIOWriterprints the Python object. It would be useful to have a nice printable representation.from here is a good model to follow.