Modifying Class Object
tjreedy at udel.edu
Tue Feb 9 18:25:48 CET 2010
On 2/9/2010 12:12 AM, Alf P. Steinbach wrote:
> As far as the language spec is concerned the argument passing mechanism
> seems to me to be identical to assignments, not just "very much like".
Except for the cross-namespace nature of the assignment, yes. Glad you
> Your phrase "or objects derived therefrom" seems to imply that immutable
> objects can be copied
def f(*args, **kwds): print(args, kwds)
the objects bound to args and kwds are a tuple and dict *derived* from
(that collect together) the objects passed.
Terry Jan Reedy
More information about the Python-list