indirect references
Moshe Zadka
moshez at math.huji.ac.il
Tue Jun 6 01:59:06 EDT 2000
On Mon, 5 Jun 2000, Trent Mick wrote:
> Strings are immutable in
> Python and
Right
> passed/assigned by value (not by reference, which is what you are
> asking for here).
Wrong, they are passed by reference. But what Shaleh is asking is for
mutating the reference, and *that's* impossible.
> Arrays and dictionaries are passed by reference.
Just like everything else in Python. But arrays and dictionaries are
mutable.
just-picking-some-random-nits-ly y'rs, Z.
--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com
More information about the Python-list
mailing list