You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to have a nice printout of the model class. Users should be able to quickly inspect what the model is without having to list all members of the model class.
Context
During the development of the tutorials, it became apparent the need for this feature.
Goal
We need to have a nice printout of the model class. Users should be able to quickly inspect what the model is without having to list all members of the model class.
Context
During the development of the tutorials, it became apparent the need for this feature.
Required features
__str__()
method (see this).Model components can be sort of an instance-dependent print implemented in a hidden function, e.g.,
_print_details()
.Specifications
__str__()
method for theModel
metaclass._print_details()
method for theModel
instances.The text was updated successfully, but these errors were encountered: