How to create an array which can be used also as a dictionary
clp2 at rebertia.com
Thu Sep 10 21:59:27 CEST 2009
On Thu, Sep 10, 2009 at 12:51 PM, Hans Müller <heintest at web.de> wrote:
> Diez B. Roggisch wrote:
>> Hans Müller wrote:
>>> But what happens if i modify
>>> a.value1 = 1000
>>> d["aax"].value1 now 1000 or still "hello" as in this example ?
>> It's changed. Didn't you try that?
> to be true, no - not in this direct context.
> btw. how can I get a copy when I need it ?
The `copy` module:
More information about the Python-list