Hi and thanx!
Caleb Hattingh wrote:
>
> >>> temp=d[12345]
> >>> temp.x = 5
>
> After I assign the object to the dict with ID=12345, I can easily get
> the object by its key and manipulate its state. The last 4 lines show
> that the state changed for all the active references to the created
> obje
hi comp.lang.python.
I need some newbe advice on idiomatic use of Python dictionaries.
I have service with a dictionary which holds a bunch of objects as
values, and an ID as key to each object. Then I want to change an
objects state based on its key. The way I am doing this now is by using
'from