A question on modification of a list via a function invocation
Steve D'Aprano
steve+python at pearwood.info
Sun Sep 3 22:05:01 EDT 2017
On Mon, 4 Sep 2017 04:15 am, Stephan Houben wrote:
> Needless to say, according to the definition in Plotkin's paper, Python
> is "call-by-value".
According to Plotkin's definition, when you pass a value like a 100MB string:
"This is a long string of text..." # continues on for millions more characters
does the interpreter make a copy of the 100MB string?
If not, then it isn't pass (call) by value.
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
More information about the Python-list
mailing list