[Python-modules-team] Bug#833820: sphinx: Avoid evaulating default function arguments when including them in the documentation

Petter Reinholdtsen pere at hungry.com
Thu Aug 11 20:09:01 UTC 2016


[Dmitry Shachnev]
> Speaking about your example, I would recommend against using such
> functions at all: the default argument of that function is module
> *import* time, not the actual time when it is executed; this is not
> what one may expect.

I agree completely, and that issue is being tracked as 
<URL: http://bugs.debian.org/833821 > and is going to be fixed upstream.

-- 
Happy hacking
Petter Reinholdtsen



More information about the Python-modules-team mailing list