a python pitfall
Ian Kelly
ian.g.kelly at gmail.com
Thu May 14 15:48:32 EDT 2015
On Thu, May 14, 2015 at 12:06 PM, Billy Earney <billy.earney at gmail.com> wrote:
> Hello friends:
>
> I saw the following example at
> http://nafiulis.me/potential-pythonic-pitfalls.html#using-mutable-default-arguments
> and did not believe the output produced and had to try it for myself....
See also https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects
More information about the Python-list
mailing list