Hi William,

On Aug 24, 1:35 pm, William Stein <wst...@gmail.com> wrote:
[...]
> > But you couldn't use the attribute "._properties" in doc tests anyway,
> > because AFAIK rings are cdef classes, so, you can't access the
> > attributes on a python level.
>
> Yes you can, if you declare them "cdef public _properties".

OK, but I guess this wouldn't be done here.

> But the
> dictionaries-in-doctests issue is something we have contended with for years
> and their a standard solution.  When you write a doctest that involves
> printing out d, instead print out say:
>      list(sorted(list(d)))
> or something like that.

That's a very good hint! I could use those things in some of my doc
tests!

Thank you
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to