Can Python function return multiple data?

Marko Rauhamaa marko at pacujo.net
Thu Jun 4 13:30:02 EDT 2015


Steven D'Aprano <steve at pearwood.info>:

>> On 2015-06-04, Marko Rauhamaa <marko at pacujo.net> wrote:
>>> If it prints 1, it's pass by value. If it prints 3, it's pass by
>>> reference.
>
> Wrong. Why do you [Marko] imagine that pass-by-value and
> pass-by-reference are the only two options?

It's a classic dichotomy. The example I provided illustrates the
distinction between the two.


Marko



More information about the Python-list mailing list