On Wed, Mar 11, 2015 at 1:24 AM, Henry Versemann <fencer1...@gmail.com> wrote: > so its valid python code to write the expression > > innerDict['+newinnrkey+'] > > without enclosing the parts outside of the plus-signs surrounding the > "newinnrkey" variable within quotes or double quotes? > I'm not sure I've ever heard or seen such python code before anywhere. > Can you explain or point me to some docs on this type of code expression? > And are there any gotchas or problems coding expressions like this? > Thanks for the help. >
No, it isn't valid, Bill mis-typed his reply. I don't want to speak for him, but I think he meant to write: > Why wouldn't you just say: > > innerDict[newinnrkey] = newinnrval and, indeed, why wouldn't you? Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1Jh-C0Rns0nxZD2m%3DME3PW-iwY0dF7XTJ_y9s7iRmtOsA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.