having both dynamic and static variables

Santoso Wijaya santoso.wijaya at gmail.com
Mon Mar 7 17:30:42 EST 2011


Now you're just muddying the terminology!

~/santa


On Mon, Mar 7, 2011 at 1:20 PM, Paul Rubin <no.email at nospam.invalid> wrote:

> Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
> > but I call that a feature, not a bug. If you want an immutable constant,
> > use a tuple, not a list.
>
> Nope:
>
>    L = ([1,2],[3,4])  # tuple
>    L[0].append(5)     # mutate L, in some reasonable sense of "mutate"
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110307/92cab2ff/attachment.html>


More information about the Python-list mailing list