Re: Unsubscriptable object when using Exec

2008-11-14 Thread Indian
Thanks Chris!! It worked.. Yeah my bad i was trying out the bad logic :) On Sat, Nov 15, 2008 at 5:31 AM, Chris Rebert <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 10:40 AM, Indian <[EMAIL PROTECTED]> wrote: > > Hi Friends > > > > I'm getting the

Re: Unsubscriptable object when using Exec

2008-11-14 Thread Chris Rebert
On Fri, Nov 14, 2008 at 10:40 AM, Indian <[EMAIL PROTECTED]> wrote: > Hi Friends > > I'm getting the TypeError Unsubscriptable object when using Exec in a class > > Here's the example > > class Fake(object): > def __init__(self, reg): > self._reg

Unsubscriptable object when using Exec

2008-11-14 Thread Indian
Hi Friends I'm getting the TypeError Unsubscriptable object when using Exec in a class Here's the example class Fake(object): def __init__(self, reg): self._reg = reg def OpenKey(self, rootkey, path): open_key = self._reg path_string='[\'HKLM\']&#