Commit eaf86858 authored by Preston Timmons's avatar Preston Timmons Committed by Tim Graham
Browse files

[1.7.x] Documented Context.get() method.

Backport of 4d941409 from master
parent 36fb3b39
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -322,6 +322,11 @@ dictionary syntax::
    >>> c['newvariable']
    '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.push()
.. exception:: ContextPopException