Python advocacy in scientific computation
sturlamolden at yahoo.no
Mon Mar 6 00:19:43 CET 2006
Dennis Lee Bieber wrote:
> > 1. Can python do "pass by reference"? Are datastructures represented by
> > references as in Java (I don't know yet).
> Everything in Python is a reference to an object. I think the
> question you want is more on the lines of: Can I change an object that
> has been passed? Short answer: depends on what type of object is at the
> end of the reference. A mutable container object (list, dictionary,
> maybe a class instance) can have its contents changed.
More information about the Python-list