[Tutor] MutableString/Class variables

Alan Gauld alan.gauld at btinternet.com
Thu May 9 14:23:42 CEST 2013


On 09/05/13 13:10, Albert-Jan Roskam wrote:

> class MutableStr(str):
>      s = None

Why make s a class variable?
I'd expect it to be an instance attribute.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list