list as paremeters...

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

"shagshag13" <shagshag13 at> schrieb im Newsbeitrag
news:3f51ce6e$0$26843$626a54ce at
> hello,
> i have an unexpected behaviour that i didn't understand, can someone
> 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.

Michael P

More information about the Python-list mailing list