On 17/10/2013 01:46, Chris Angelico wrote:
On Thu, Oct 17, 2013 at 11:43 AM, MRAB <pyt...@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.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to