On Jun 9, 9:32 am, Brian Harring <[EMAIL PROTECTED]> wrote:
> Realize it's hit trunk already,
No worries, we can always open another ticket :)

> but noticed an annoying potential
> gotcha- for single var in a for loop, any changes to the context stay
> put- for multiple vars, the context gets wiped.
Dang, I knew there must have been some logic in why I was handling the
context originally - this was the case I had thought of then promptly
forgotten about.

You're right. This is a change in behaviour between a single and
multiple keywords and probably should be addressed.
This would mean changing the context.update behaviour like mentioned
in the other ticket in this thread and and making sure that any
keywords not used this loop get popped out.

> So... consistancy would be wise; which should it be?  Also, use izip
> instead of zip dang it :P
Gosh, how many keyword arguments are you trying to use? ;)
Does it really matter to use izip if it's going to usually be less
than 3 iterations?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to