In <[EMAIL PROTECTED]>, Beliavsky wrote:

>> ISTM the big catch for Fortran programmers is when a mutable container
>> is referenced from multiple places; thus a change via one reference
>> will confusingly show up via the other one.
> 
> As a Fortranner, I agree. Is there an explanation online of why Python
> treats lists the way it does? I did not see this question in the Python
> FAQs at http://www.python.org/doc/faq/ .

This question sounds as if lists are treated somehow special.  They are
treated like any other object in Python.  Any assignment binds an object
to a name or puts a reference into a "container" object.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to