context = context.new(context)

88 views
Skip to first unread message

John Bazik

unread,
Feb 18, 2016, 1:16:19 PM2/18/16
to Django developers (Contributions to Django itself)
I'm looking at code that does this:

 context = context.new(context)

Prior to 1.7, I assume that worked since a context was a dict.  Now that it's a stack, it breaks.

I could suggest they use flatten:

 context = context.new(context.flatten())

but that's not exactly a copy, which is what I think they're after.

What do you think they should be doing?

John

Tim Graham

unread,
Mar 7, 2016, 10:34:57 AM3/7/16
to Django developers (Contributions to Django itself)
I guess this should go to django-users (usage questions). It's not clear to me how this is related to the development of Django itself. To increase the likelihood of getting an answer, make the code example more complete and find the commit in Django where the behavior changed. I can't answer the question in its current form.
Reply all
Reply to author
Forward
0 new messages