]> git.ipfire.org Git - thirdparty/jinja.git/commit
Implement consistent scoping for sets in loops
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 8 Jan 2017 02:17:30 +0000 (03:17 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 8 Jan 2017 02:17:30 +0000 (03:17 +0100)
commit8172db059d9952c29f299addf6cfaea3c0773166
tree670002ab42acf1dc7feb6e40d2fbc7fae2e6c87a
parentb557eca315e120301914ab7b4bfba8cbd0fce4e6
Implement consistent scoping for sets in loops

While technically this applies to any scope and not just for loops
it comes up most commonly in the context of for loops.  This now
defines the behavior for scoping in a way that is consistent but
different than it was in the past.  There is an ongoing conversation
if we should keep it that way or not.

References #641
jinja2/idtracking.py
tests/test_core_tags.py