On Mon, 10 Jul 2006 19:30:09 +0200, Diez B. Roggisch wrote:

[snip]
 
> So: Yes, mutable strings are dangerous. 

I'm sorry, perhaps I'm being slow today, but just why are they dangerous?
More dangerous than, say, mutable lists and mutable dicts? Unless I'm
missing something, the worst that can happen is that people will write
inefficient code, and they'll be caught out by the same sort of things
that surprise newbies about lists. E.g. using a list as a default value
in function definitions.


> Use them only when their benefits outweigh their risks.

That goes without saying :)


-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to