]> git.ipfire.org Git - thirdparty/jinja.git/commit
Replace lambda for 'dict' in with dict itself 400/head
authorPeter Harris <pete.alex.harris@gmail.com>
Fri, 23 Jan 2015 10:12:10 +0000 (10:12 +0000)
committerPeter Harris <pete.alex.harris@gmail.com>
Fri, 23 Jan 2015 10:12:10 +0000 (10:12 +0000)
commit6179c02c91800d220de03006117afa5e6d60f0f6
tree8595d501b4d46bd5b98a1fb1f1df4e367ee02f7e
parent85820fceb83569df62fa5e6b9b0f2f76b7c6a3cf
Replace lambda for 'dict' in with dict itself

lambda **kw: kw is not equivalent to the dict constructor. It is much less useful.
In particular it doesn't accept a sequence of pairs.
Why not put dict itself into the DEFAULT_NAMESPACE?
Principle of least surprise, etc.
jinja2/defaults.py