Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Monday, December 3rd, 2007

Subject:Extending Dict
Time:4:36 pm.

What I am trying to do:
  Hold an object/dict of session credential information (user_name, password, remote_url, agent_type, etc) under a human legible session name.

In prototyping I made a session class with a property __sessions that I planned to be a dict.  The problem I'm having is exposing a lot of the built in parts of dict.  Like   "something" in mysessions or for session in mysessions.

I know there has to be a better way, but my grasp of python is still pretty lacking when it comes to lists and dicts.

Comments: Read 3 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image