DALPy-Developers/DALPy

Update dalpy_to_string to display object type

EitanJoseph opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
The current iteration of the dalpy_to_string function does not indicate the object type in the string representation of DALPy objects. This can be confusing when the dalpy_to_string representation and other base python object representations coincide, for example with DALPy Array and Python list.

Describe the solution you'd like
Some indication of the object type should be added to the dalpy_to_string function's string representation generation for each DALPy provided data structure. For example:

Array[1,2,3]
Queue[1,2,3]

Additional context
Here is a screenshot from a Brandeis University Spring 2022 COSI21a student's submission for which they were confused as to why they were failing test cases, despite the output and expected appearing identical.
Screen Shot 2022-03-22 at 12 41 28 PM
README.md