On Sat, 13 Nov 2010 05:50:40 -0800, alex23 wrote:

> Tracubik <affdfsdfds...@b.com> wrote:
>> why the integer value doesn't change while the list value do?
> 
> http://effbot.org/pyfaq/why-are-default-values-shared-between-
objects.htm


Right website, wrong page :)

http://effbot.org/zone/call-by-object.htm


See also Wikipedia's page on parameter passing conventions:

http://en.wikipedia.org/wiki/Evaluation_strategy


-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to