Skip to content

Commit

Permalink
It's now possible to create weak references to template contexts.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
mitsuhiko committed Sep 18, 2008
1 parent aa1d17d commit dcc217c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -32,6 +32,8 @@ Version 2.1

- implemented a bytecode cache system. (:ref:`bytecode-cache`)

- the template context is now weakref-able

Version 2.0
-----------
(codename jinjavitus, released on July 17th 2008)
Expand Down
2 changes: 1 addition & 1 deletion jinja2/runtime.py
Expand Up @@ -61,7 +61,7 @@ class Context(object):
:class:`Undefined` object for missing variables.
"""
__slots__ = ('parent', 'vars', 'environment', 'exported_vars', 'name',
'blocks')
'blocks', '__weakref__')

def __init__(self, environment, parent, name, blocks):
self.parent = parent
Expand Down

0 comments on commit dcc217c

Please sign in to comment.