[Tutor] Baffling problem with a list of objects sharing a property

Peter Otten __peter__ at web.de
Wed May 25 12:23:35 EDT 2016


Alex Hall wrote:

> class Test(object):
>  def __init__(self, name, paths=[]):

https://docs.python.org/2/faq/programming.html#why-are-default-values-shared-between-objects





More information about the Tutor mailing list