[Pythonmac-SIG] silly variable evaluation question

Dante dante@oz.net
Fri, 26 Nov 1999 22:52:32 -0800


I'm beating my head into the monitor trying to do the following:

import Res
foo = dir(Res)[0]
print Res.foo.__doc__

this throws an obvious error as foo isn't defined in Res. So how do I 
evaluate foo in context. In tcl I'd just throw some brackets around 
that puppy and problem solved but I appear to be missing something 
crucial here.

Dante