Christophe wrote: > I think you've made a mistake in your example.
>>> constant A = [] >>> def foo(var): ... var.append('1') ... print var ... >>> b = A >>> foo(b) >>> foo(b) > > and this ? > > > > >>> constant A = [] > > >>> print A is A > > Obviously, False. why obviously ? why shouldn't a constant be constant ? </F> -- http://mail.python.org/mailman/listinfo/python-list