display
- : display
(obj)¶ Show the contents of the object obj, labeled with its variable name.
Nexus invokes
displayautomatically whenever an object needs to appear on screen, which normally happens for a statement that is not terminated by a semicolon. For example:myclass (...)
Or:
myobj = myclass (...)
As a rule, a user-defined class should override the
dispmethod to replace the default rendering:myobj = myclass (...) ⇒ myobj = <class myclass>
If
displayitself is overridden instead, the override is responsible for printing the object’s name, whichinputnamecan supply.