Today, 01:44 AM
Are arguments passed to functions passed as data or a reference to data or does Python make that call behind the scenes?
curbie
curbie
function arguments
|
Today, 01:44 AM
Are arguments passed to functions passed as data or a reference to data or does Python make that call behind the scenes?
curbie
Today, 06:48 AM
(This post was last modified: Today, 06:48 AM by Gribouillis.)
(Today, 01:44 AM)Curbie Wrote: Are arguments passed to functions passed as data or a reference to dataAll arguments are passed by object reference. In CPython it means concretely that for each argument, the memory address of an existing Python object is passed for each argument (these objects are implemented as C structures).
« We can solve any problem by introducing an extra level of indirection »
|
|