Can Python function return multiple data?
random832 at fastmail.us
random832 at fastmail.us
Thu Jun 4 01:01:55 EDT 2015
On Wed, Jun 3, 2015, at 17:56, Mark Lawrence wrote:
> Now does Python pass by value or by reference? Happily sits back and
> waits for 10**6 emails to arrive as this is discussed for the 10**6th
> time.
Python's in that same awkward space as Java, where it technically passes
by value, but the values are usually pointers, so passing a mutable
object (such as a list) allows the function to modify the caller's state
in a way that many people associate exclusively with by-reference.
Have I hit all the high points?
More information about the Python-list
mailing list