Kaydet (Commit) 077af421 authored tarafından Baptiste Mispelon's avatar Baptiste Mispelon

Fixed #21515 -- Corrected example of template.Context in documentation.

Thanks to trac user oubiga for the report.
üst a5b94d9d
...@@ -306,10 +306,12 @@ If you ``pop()`` too much, it'll raise ...@@ -306,10 +306,12 @@ If you ``pop()`` too much, it'll raise
>>> c = Context() >>> c = Context()
>>> c['foo'] = 'first level' >>> c['foo'] = 'first level'
>>> c.push() >>> c.push()
{}
>>> c['foo'] = 'second level' >>> c['foo'] = 'second level'
>>> c['foo'] >>> c['foo']
'second level' 'second level'
>>> c.pop() >>> c.pop()
{'foo': 'second level'}
>>> c['foo'] >>> c['foo']
'first level' 'first level'
>>> c['foo'] = 'overwritten' >>> c['foo'] = 'overwritten'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment