Newbi Q: What is a rational for strings not being lists in Python?
Simon Brunning
simon at brunningonline.net
Tue Oct 16 08:32:01 EDT 2007
On 10/16/07, Benjamin <musiccomposition at gmail.com> wrote:
> Good explanation, but basically strings are immutable so they can be
> used in dicts.
Nope. Value types should always be immutable.
<http://c2.com/cgi/wiki?ValueObjectsShouldBeImmutable>
--
Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues
More information about the Python-list
mailing list