def X(l=[]): weirdness. Python bug ?

Wojtek Walczak gminick at bzt.bzt
Fri Aug 22 06:05:05 EDT 2008


On Fri, 22 Aug 2008 11:41:18 +0200, Bart van Deenen wrote:

> Thanks all for your answers. I figured your solution already, but now I understand where the behavior is from. One question remains: can I find my parameter 'l' somewhere? I looked in a lot of objects, but couldn't find it.

YOURFUNCTION.func_globals['YOURFUNCTION'].func_defaults

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list