[go: up one dir, main page]

Menu

#207 Add a human-readable representation of the objects

Backlog
open
nobody
None
nobody
2021-12-25
2021-05-05
Ulf Lorenz
No
What and Why

It is convenient, especially in a Python console, to just type a variable and get a human-readable representation of this variable.

The idea would be to have a toString() method in the C++ classes, and a repr function in the Python interface for every single class.

Note: Relegated to very low priority. Reasons:

  • It feels strange to stuff these very small objects with toString() methods.
  • Often, it is rather cumbersome to give a useful string representation, or it is not entirely clear how to make the most sense out of it (sum of operators, for examples, can be large).
  • Neither the data model nor the scripts are so complex that not knowing what you have in your hand should usually be an issue.

Discussion

  • Ulf Lorenz

    Ulf Lorenz - 2021-08-08
    • Milestone: Backlog --> 0.3.4
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-12-25
    • status: open --> assigned
    • assigned_to: Ulf Lorenz
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-12-25
    • status: assigned --> open
    • assigned_to: Ulf Lorenz --> nobody
    • Milestone: 0.3.4 --> Backlog
     
  • Ulf Lorenz

    Ulf Lorenz - 2021-12-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,3 +3,9 @@
     It is convenient, especially in a Python console, to just type a variable and get a human-readable representation of this variable.
    
     The idea would be to have a toString() method in the C++ classes, and a __repr__ function in the Python interface for every single class.
    +
    +**Note**: Relegated to very low priority. Reasons:
    +
    +* It feels strange to stuff these very small objects with toString() methods.
    +* Often, it is rather cumbersome to give a useful string representation, or it is not entirely clear how to make the most sense out of it (sum of operators, for examples, can be large).
    +* Neither the data model nor the scripts are so complex that not knowing what you have in your hand should usually be an issue.
    
     

Log in to post a comment.