Doctests for nested functions

Just just at xs4all.nl
Sat Sep 23 03:06:02 EDT 2006


In article <1158972773.947401.326850 at i42g2000cwa.googlegroups.com>,
 bearophileHUGS at lycos.com wrote:

> Can doctests be added to nested functions too? (This can be useful to
> me, I use nested function when I don't have attributes that I have to
> remember, but I want to split the logic in some subparts anyway).

I think we had that discussion before, but that's not what nested 
functions are for (in Python). Use modules for that. Also solves your 
doctest problem nicely.

Just



More information about the Python-list mailing list