[Python-ideas] doctest

Guido van Rossum guido at python.org
Fri Mar 2 04:31:24 CET 2012


On Thu, Mar 1, 2012 at 6:31 PM, Mark Janssen <dreamingforward at gmail.com> wrote:
> I just thought of something:  isn't the obvious solution is for doctest to
> test the type of an expression's output and if it's in the set of unordered
> types {set, dict} to run sort() on it?  Then the docstring author can just
> put the (sorted) output of what's expected....

What if the output is a list of dicts?

-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list