Safe, informative calico.repr() function for all types
Issue #170
new
Should not crash on too big, or recursive structures, and show nice, pretty-printed results for many types (IEnumerated, lists, dictionaries, etc). Replaces #167. Should be called in Calico GUI and in ICalico.
Comments (6)
-
reporter -
Why ToString and not Repr?
-
reporter Repr will put quotes around a string; ToString doesn't. Side-effect string output looks weird if it has quotes around it.
-
reporter Added IList and IDictionary to notebook... need to add to GUI. Don't know how we managed for so long without these! It does show them using Python syntax.
-
reporter Added recursive safety (eg, won't go into an infinite loop on recursive data structures).
-
reporter This is still an issue in Calico Scheme running under Python.
- Log in to comment
Also needs to only be used on Output... calico.display() should use ToString() not Repr().