[Python-ideas] doctest

Éric Araujo merwok at netwok.org
Fri Mar 2 08:01:48 CET 2012


Le 02/03/2012 07:55, Devin Jeanpierre a écrit :
> [...] dicts and sets are not idiosyncratic or in any way
> exceptional. doctest itself should handle them the way a naive user
> would expect.

This discussion seems to forget a core issue with doctest: The output
lines can be *anything* that gets printed.  eval-able reprs of Python
objects are only a part of the possibilities.  That’s why doctest cannot
“just call sorted” on the output lines.

Regards



More information about the Python-ideas mailing list