Doctests for nested functions

Just just at
Sat Sep 23 09:06:02 CEST 2006

In article <1158972773.947401.326850 at>,
 bearophileHUGS at 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.


More information about the Python-list mailing list