[Python-Dev] doctest, unicode repr, and 2to3
barry at python.org
Fri Mar 5 17:13:32 CET 2010
On Mar 05, 2010, at 10:56 AM, Antoine Pitrou wrote:
>String type is actually very important, if you don't want your
>application/library to fail in the face of non-ASCII data.
>That's why we did all this thing in py3k, after all :)
That's not actually what I mean. I meant that in doctests, you probably don't
need to be confronted by the string type every single time. It's just not
that interesting for documentation, most of the time. I have no problem
adding (unit)tests that ensure your outputs and values are of the expected
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Python-Dev