Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #56946 > unrolled thread
| Started by | MRAB <python@mrabarnett.plus.com> |
|---|---|
| First post | 2013-10-17 09:40 +0100 |
| Last post | 2013-10-17 09:40 +0100 |
| 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.
Re: how to add object from dict MRAB <python@mrabarnett.plus.com> - 2013-10-17 09:40 +0100
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2013-10-17 09:40 +0100 |
| Subject | Re: how to add object from dict |
| Message-ID | <mailman.1151.1381999217.18130.python-list@python.org> |
On 17/10/2013 01:46, 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))? > I'm trying to make the bug clearer for the OP by doing it the same way as the existing code.
Back to top | Article view | comp.lang.python
csiph-web