Safe, informative calico.repr() function for all types

Issue #170 new
Doug Blank created an issue

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)

  1. Doug Blank reporter

    Also needs to only be used on Output... calico.display() should use ToString() not Repr().

  2. Doug Blank reporter

    Repr will put quotes around a string; ToString doesn't. Side-effect string output looks weird if it has quotes around it.

  3. Doug Blank 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.

  4. Doug Blank reporter

    Added recursive safety (eg, won't go into an infinite loop on recursive data structures).

  5. Log in to comment