[Python-porting] Doctests in single-source port

Dirkjan Ochtman dirkjan at ochtman.nl
Sun Jul 6 20:02:13 CEST 2014


On Tue, Apr 1, 2014 at 3:59 AM, Lennart Regebro <regebro at gmail.com> wrote:
> There are a few here: http://python3porting.com/problems.html#running-doctests
>
> But several of them actually reduce doctests value as documentation,
> so it's not brilliant.

Thanks for the pointer, that turned out to be useful.

I just wrote a blog post on another solution that helped me solve my problems:

http://dirkjan.ochtman.nl/writing/2014/07/06/single-source-python-23-doctests.html

Cheers,

Dirkjan


More information about the Python-porting mailing list