[Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
Lennart Regebro
regebro at gmail.com
Mon May 20 07:57:43 CEST 2013
On Mon, May 20, 2013 at 1:51 AM, Gregory P. Smith <greg at krypto.org> wrote:
>
> On May 19, 2013 4:31 PM, "Benjamin Peterson" <benjamin at python.org> wrote:
>>
>> 2013/5/19 Gregory P. Smith <greg at krypto.org>:
>> > Idea: I don't believe anybody has written a fixer for lib2to3 that
>> > applies
>> > fixers to doctests. That'd be an interesting project for someone.
>>
>> 2to3 can operate on doctests, though it doesn't do anything different
>> to them than it does to normal sourcecode.
>
> Oh cool. I didn't realize that already existed!
It won't change any output, though, which still means that they tend to break.
More information about the Python-Dev
mailing list