On Feb 19, 2009, at 7:42 AM, nick voronin wrote:

>
> hello!
> i have Storage object
>
> o = web.utils.Storage(a=1)
>
> when i can add item b=2 to object "o" witout erasing item a?

It's as simple as saying o.b = 2

 >>> import web
 >>> o = web.Storage(a=1)
 >>> o
<Storage {'a': 1}>
 >>> o.b = 2
 >>> o
<Storage {'a': 1, 'b': 2}>
 >>>

--
http://www.apgwoz.com





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to