Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56924 > unrolled thread

Re: how to add object from dict

Started byMohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
First post2013-10-17 04:45 +0330
Last post2013-10-17 04:45 +0330
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to add object from dict Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> - 2013-10-17 04:45 +0330

#56924 — Re: how to add object from dict

FromMohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
Date2013-10-17 04:45 +0330
SubjectRe: how to add object from dict
Message-ID<mailman.1139.1381972564.18130.python-list@python.org>
On Thu, 2013-10-17 at 11:46 +1100, Chris Angelico wrote:
> On Thu, Oct 17, 2013 at 11:43 AM, MRAB <python@mrabarnett.plus.com> wrote:
> > I'm guessing, but perhaps you need:
> >
> >     instance = getattr(self, "%s" % key)
> 
> How's that different from getattr(self,str(key))?
> 
> ChrisA
I get the string of CheckBox instead of its Object:
AttributeError: 'Ui_ProjectsFind' object has no attribute 'ssss'

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web