[Tutor] How to Pass lists by value

Alan Gauld alan.gauld at freenet.co.uk
Tue Dec 6 21:35:37 CET 2005


Lots of good stuff from Wes snipped...
>  (a side note here: that only mutable objects have methods.) 

But this is not quite true. Strings are immutable and have lots 
of methods and even tuples and plain integers have methods 
(albeit Pythons magic operator methods) which can be 
subclassed and overridden.

But to be honest that minor detail really makes no difference 
to the basic point of Wes' message, that everuything is an object, 
but only some objects are mutable

Alan G.


More information about the Tutor mailing list