#28782: Template variable resolution on objects that are no mappings but implement __getitem__ -------------------------------------+------------------------------------- Reporter: Frank Sachsenheim | Owner: Frank | Sachsenheim Type: Bug | Status: assigned Component: Template system | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Frank Sachsenheim): thanks for your response, Tim. > You could try a post to the DevelopersMailingList i'll do that. though i need to create another account for that. :-/ > but I think you could do that just as well. yep. > It might be helpful to see your work-in-progress code, also. as a pull request on github or otherwise? > you might be better off adapting your code to the current behavior. For example, maybe you could wrap the objects in question in a class that will do the lookup that you want. yes, i thought of this. but from a rather dogmatic, pythonic view the code as it is is 'wrong'. Django has maintained a reasonable release policy over the years that allows deprecations. again, from a documentation's point of view parts of the behaviour couldn't be taken as granted. Python has evolved, and with the support of only the recent versions, there's an opportunity to adapt to its enhancements. after all, Django has an emphasis on clean code and this is a constraint for the longevity of the project. -- Ticket URL: <https://code.djangoproject.com/ticket/28782#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.d03c70de9e6dc2c3f29657921e988c55%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.