Message8185
On the trunk, the print method in StdoutWrapper calls printToFile if stdout is a PyFile, and calls printToFileWriter if stdout is a PyFileWriter.
printToFile does this:
s = o.__str__().toString();
whereas printToFileWriter does this:
s = o.toString();
which leads to the __repr__ method being called.
It's unclear why printToFileWriter doesn't also invoke the __str__ method. |
|
Date |
User |
Action |
Args |
2013-11-30 14:02:49 | richardfearn | set | messageid: <1385820169.21.0.535158342085.issue2105@psf.upfronthosting.co.za> |
2013-11-30 14:02:49 | richardfearn | set | recipients:
+ richardfearn |
2013-11-30 14:02:49 | richardfearn | link | issue2105 messages |
2013-11-30 14:02:49 | richardfearn | create | |
|