[reportlab-users] Many __repr__() methods are really __str__ methods
Norman Shelley
reportlab-users@reportlab.com
Wed, 12 Feb 2003 12:31:38 -0700
I have an application that dumps a description of how it built a pdf file so
that one can slightly modify that description and rerun the application to get a
new pdf file.
I just noticed today that when a reportlab Table instance is used that my
generated script fails. I looked into it and determined that the def
__repr__(self) methods for at least the following are really more like def
__str(self) methods. __repr__(self) methods should output a string that Python
can interpret and these only output strings which a human can interpret and
Python crashes on their output with syntax errors.
./lib/styles.py PropertySet
./platypus/flowables.py KeepTogether
./platypus/paragraph.py Paragraph
./platypus/tables.py Table