Closed GoogleCodeExporter closed 9 years ago
Hmmmm, probably we shouldn't be using repr(), but something like str(). Either
that or (worse) define a __repr__() function for NoneObjects. Any thoughts on
why we used repr() in the first place?
Original comment by mike.auty@gmail.com
on 21 Feb 2012 at 10:04
I'm not sure why we used it... I think maybe because there was an issue when
some funky characters were printed in the terminal.
Original comment by jamie.l...@gmail.com
on 21 Feb 2012 at 10:15
Hmmmm, ok. I'd prefer to work on resolving the funky characters some other
way, and use str() if necessary. If that proves too difficult we can fall back
to a more descriptive repr(), but technically it's supposed to give a
representation of the object, and that's exactly what it's done for the
NoneObject...
Original comment by mike.auty@gmail.com
on 21 Feb 2012 at 10:24
I believe this change was introduced during the unicode discussion we
had... As i mentioned then str() is not really appropriate since the
value could be unicode. We should have a SmartStr() equivalent for
these kind of things.
Michael.
Original comment by scude...@gmail.com
on 22 Feb 2012 at 8:53
Original comment by mike.auty@gmail.com
on 10 Mar 2012 at 11:35
Ok, well r1563 changed the reprs back to strs, so we shouldn't be seeing
<NoneObjects> again in those circumstances. Feel free to reopen this if
there's other situations where these occur.
Original comment by mike.auty@gmail.com
on 21 Mar 2012 at 11:45
Original issue reported on code.google.com by
jamie.l...@gmail.com
on 21 Feb 2012 at 9:59Attachments: