[Python-Dev] Purpose of Doctests [Was: Best practices for Enum]

Dan Stromberg drsalists at gmail.com
Sun May 19 18:14:12 CEST 2013


On Sat, May 18, 2013 at 11:41 PM, Raymond Hettinger <
raymond.hettinger at gmail.com> wrote:

>
> On May 14, 2013, at 9:39 AM, Gregory P. Smith <greg at krypto.org> wrote:
>
> Bad: doctests.
>
>
> I'm hoping that core developers don't get caught-up in the "doctests are
> bad meme".
>

Don't doctests intended for CPython not work on Jython, Pypy, IronPython...

I've been avoiding them for this reason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130519/0659c180/attachment.html>


More information about the Python-Dev mailing list