Documented Context.get() method.
This commit is contained in:
parent
0ed20d5cc4
commit
4d9414098b
|
@ -415,6 +415,11 @@ dictionary syntax::
|
||||||
>>> c['newvariable']
|
>>> c['newvariable']
|
||||||
'hello'
|
'hello'
|
||||||
|
|
||||||
|
.. method:: Context.get(key, otherwise=None)
|
||||||
|
|
||||||
|
Returns the value for ``key`` if ``key`` is in the context, else returns
|
||||||
|
``otherwise``.
|
||||||
|
|
||||||
.. method:: Context.pop()
|
.. method:: Context.pop()
|
||||||
.. method:: Context.push()
|
.. method:: Context.push()
|
||||||
.. exception:: ContextPopException
|
.. exception:: ContextPopException
|
||||||
|
|
Loading…
Reference in New Issue