On Sun, Dec 12, 2010 at 11:07 PM, Brian O'Connor <[email protected]> wrote: >> As an example of what I'm talking about -- #14262 is a manifestation >> of a use case that is undeniably simple: "get_function() as var". This >> pattern is used in several places in Django's own codebase. > > <snip> >> >> To that end, I'm willing to be practical and concede that >> adding takes_context would at the very least be consistent, even if it >> still fails to hit a large range of test cases. > > Forgive me if this proposal has already been turned down, but what about the > following:
What you've described is essentially what the current proposal *is* - i.e., add takes_context to context_tag (#1105), but also add a `get_function() as var` shortcut (#14262). The exact color of #14262 hasn't been picked, but assignment_tag is as good as any I've heard. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
