Passing by reference
Sion Arrowsmith
siona at chiark.greenend.org.uk
Fri Dec 21 07:32:56 EST 2007
More information about the Python-list mailing list
Fri Dec 21 07:32:56 EST 2007
- Previous message (by thread): Passing by reference
- Next message (by thread): Passing by reference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Michael Sparks <ms at cerenity.org> wrote: >def bar(): > global x > x[0] += " another" > print id(x[0]) ... and for bonus marks, explain why the "global x" in this function is not required. -- \S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/ "Frankly I have no feelings towards penguins one way or the other" -- Arthur C. Clarke her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
- Previous message (by thread): Passing by reference
- Next message (by thread): Passing by reference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list