list as paremeters...

Michael Peuser mpeuser at web.de
Sun Aug 31 15:58:11 CEST 2003


"shagshag13" <shagshag13 at yahooPLUSDESPAM.fr> schrieb im Newsbeitrag
news:3f51ce6e$0$26843$626a54ce at news.free.fr...
> hello,
>
> i have an unexpected behaviour that i didn't understand, can someone
explain
> this to me ?


This is a feature, nor a bug ;-)
As Python has no 'static' local variables, you can use this trickily to
emulate them. Note however that the preset value has to be mutable, {} e.g.

Kindly
Michael P






More information about the Python-list mailing list