Domain-specific standard output
The outputs of print()
statements should be formatted in the language itself, i.e. the output can be parsed. Currently, we use just the __repr__
for the Python data types used with one exception for Number
, whose Python type is pint.Quantity
, is printed through a formatter (see function print_value()
). The task is to write formatters for all the types used and to call them in print_value()
.
Edited by Ivan Kondov