Message8185

Author richardfearn
Recipients richardfearn
Date 2013-11-30.14:02:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385820169.21.0.535158342085.issue2105@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-30 14:02:49richardfearnsetmessageid: <1385820169.21.0.535158342085.issue2105@psf.upfronthosting.co.za>
2013-11-30 14:02:49richardfearnsetrecipients: + richardfearn
2013-11-30 14:02:49richardfearnlinkissue2105 messages
2013-11-30 14:02:49richardfearncreate