[Tutor] FYI
Remco Gerlich
scarblac@pino.selwerd.nl
Sat, 14 Apr 2001 21:54:17 +0200
On 0, Pedro Diaz Jimenez <pdiaz88@terra.es> wrote:
> Moral: lists, dictionaries (and all other objects???) are copies by
> reference, be careful when you pass them to functions
Yes, all other objects as well. Assignment is by reference. Python never
copies things "by itself".
If the object is immutable, like a string or an integer, you'll never
notice the difference, of course (except it's faster this way).
--
Remco Gerlich