Default list parameter issue

Peter Otten __peter__ at web.de
Fri Aug 6 18:39:35 CEST 2004


Olivier Boudeville wrote:

> I do not understand why using an empty list as default parameter results
>   in such a different behaviour.

You are not alone.

http://www.python.org/doc/faq/general.html#why-are-default-values-shared-between-objects

Peter



More information about the Python-list mailing list