On May 2, 2012 10:10 PM, "Simon King" <simon.k...@uni-jena.de> wrote: > > Hi William, > > On 2012-05-02, William Stein <wst...@gmail.com> wrote: > > On Wed, May 2, 2012 at 2:38 PM, Simon King <simon.k...@uni-jena.de> wrote: > >> I thought (i.e.: I am sure that I was repeatedly told) that calling > >> magical methods in a doctest is strongly discouraged. > > > > I *always* call _repr_ directly in the doctest of repr. I only ever > > make indirect doctests when there is no easy way to make a good direct > > one. > > Really? I don't recall who was referee, but I do recall that I was asked > (and I think not just once) to better provide an indirect test, like > "Only ever make a direct doctest for a magical method when there is no > easy way to make a good indirect test."
Really. I completely disagree with the above quote. > Cheers, > Simon > > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org