You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be easier for writing tests if repr(table_referenced) would be just Table(TableRow(TableCell(Plain(Str(''))), TableCell(Plain(Str('')))), TableRow(TableCell(Plain(Str('1'))), TableCell(Plain(Str('2')))), TableRow(TableCell(Plain(Str('3'))), TableCell(Plain(Str('4')))), alignment=['AlignDefault', 'AlignDefault'], width=[0.5, 0.5]). i.e. if I copy the repr output and paste it, it would be a valid function to generate a panflute AST.
Currently, the __str__ points to the __repr__ method, may be the current repr will be moved to str, and has a new repr that has the said behavior?
The text was updated successfully, but these errors were encountered:
Makes sense (also agrees with the stated purpose of repr).
That said, it might be a lot of work to have valid repr for most objects. Will try to see if I can push a quick commit but not entirely sure of the timeline.
For example,
It will be easier for writing tests if
repr(table_referenced)
would be justTable(TableRow(TableCell(Plain(Str(''))), TableCell(Plain(Str('')))), TableRow(TableCell(Plain(Str('1'))), TableCell(Plain(Str('2')))), TableRow(TableCell(Plain(Str('3'))), TableCell(Plain(Str('4')))), alignment=['AlignDefault', 'AlignDefault'], width=[0.5, 0.5])
. i.e. if I copy the repr output and paste it, it would be a valid function to generate a panflute AST.Currently, the
__str__
points to the__repr__
method, may be the current repr will be moved to str, and has a new repr that has the said behavior?The text was updated successfully, but these errors were encountered: