[Tutor] SubDictionaries or am I reinventing a wheel?

Patrick K. O'Brien pobrien@orbtech.com
Tue, 12 Jun 2001 08:48:18 -0500


Gotcha. My mistake. Going on too little sleep. The brain is a little slow
this morning. Thanks again for the help. I really appreciate it.

---
Patrick K. O'Brien
Orbtech
"I am, therefore I think."

-----Original Message-----
From: roeland [mailto:roeland]On Behalf Of Roeland Rengelink
Sent: Tuesday, June 12, 2001 8:21 AM
To: pobrien@orbtech.com
Cc: Python Tutor
Subject: Re: [Tutor] SubDictionaries or am I reinventing a wheel?

"Patrick K. O'Brien" wrote:
>
> D'oh!!! (Followed by a smack to the forehead.)
>
> Boy you nailed this one, Roeland! I knew I was overlooking something very
> obvious (to everyone but me <wink>).
>
> No, I did not consider using nested dictionaries. But you can bet I'll
never
> make that mistake again. Ouch!
>
> Your example of being able to do val = gmRecordTypes['CAL']['A'] was
exactly
> the kind of simple, elegant language feature I just knew had to be
available
> in python. I hope that explains the final question of my original post,
> which in no way did I intend to sound "nasty". My apologies to anyone who
> got that impression.
>

Misunderstanding ;)

I didn't think your question was nasty, I thought you might take my
question ('Exactly what kind of manipulation do you mean ?') as nasty,
because you had actually given a pretty good explanation of what you
meant.

Anyway, glad to be of help,

Roeland

--
r.b.rigilink@chello.nl

"Half of what I say is nonsense. Unfortunately I don't know which half"