Thomas Dybdahl Ahle a écrit : > On Wed, 2008-03-26 at 23:04 +0100, Michał Bentkowski wrote: >> Why does python create a reference here, not just copy the variable? > > Python, like most other oo languages, will always make references for =, > unless you work on native types (numbers and strings). > There's nothing like a "native type" in Python, and numbers and strings are ordinary objects. Python will always use references, period. -- http://mail.python.org/mailman/listinfo/python-list
- Why does python behave so? (removing list items) Michał Bentkowski
- Re: Why does python behave so? (removing list ite... Thomas Dybdahl Ahle
- Re: Why does python behave so? (removing list ite... Dan Bishop
- Re: Why does python behave so? (removing list ite... Steven D'Aprano
- Re: Why does python behave so? (removing list ite... Bruno Desthuilliers
- Re: Why does python behave so? (removing list ite... Waldemar Osuch
- Re: Why does python behave so? (removing list ite... Jarek Zgoda
- Re: Why does python behave so? (removing list ite... bearophileHUGS