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

Documented Context.get() method.

parent 0ed20d5c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -415,6 +415,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