Skip to content
Myr

It's now possible to create weak references to template contexts.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent aa1d17d · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:jinja2/runtime.py+1 added-1 removed
59 unmodified lines
60 method that doesn't fail with a `KeyError` but returns an61 :class:`Undefined` object for missing variables.62 """63 __slots__ = ('parent', 'vars', 'environment', 'exported_vars', 'name',64 'blocks')64 'blocks', '__weakref__')6566 def __init__(self, environment, parent, name, blocks):67 self.parent = parent68 self.vars = vars = {}
393 unmodified lines
modified:CHANGES+2 added
30 unmodified lines
31- fixed a bug with empty statements in macros.3233- implemented a bytecode cache system. (:ref:`bytecode-cache`)3435- the template context is now weakref-able3637Version 2.038-----------39(codename jinjavitus, released on July 17th 2008)40
32 unmodified lines