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.

Thank you.

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

Reply via email to