Default list parameter issue

Peter Otten __peter__ at web.de
Fri Aug 6 12:39:35 EDT 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