Jeroen Demeyer wrote:
On 2013-03-06 19:48, Nils Bruin wrote:
Any time you change the behaviour between interactive and non-
interactive sessions you make things harder to debug. Perhaps instead
of *printing* something, return a value that has a __repr__ that looks
like an informative message. A string would basically do, but it has
ugly quotes in its __repr__. Since in non-interactive environments
values of statements are thrown away rather than have their repr
printed, you'd basically get the behaviour you're asking for.

This sounds like a very good idea, it would still require changing
doctests, but that just needs to be done once.

And people won't be able to (fully) copy-paste doctest results from an interactive session (at least in some/more cases)... ;-)

But I don't mind.


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to