30 Sep
2003
30 Sep
'03
2:21 p.m.
Hi, I try to do the following inside a python script: myDict={'myKey':'myVal'} myString='myDict' myObject = getattr(thisScriptNameSpace, myString) What should I write for 'thisScriptNameSpace' to get 'myObject' pointing to 'myDict'? In a 'normal' Python-Modul 'thisScriptNameSpace' should be 'self'. It should be possible in a Python Script, ins't it? -- Any hints are welcome, Elena