#NEWLINE# def del_context( self , key ) : #NEWLINE# #INDENT# "\n        Removes an element from the context dictionary.\n\n        Example\n        -------\n        >>> class FooView(ContextMixin):\n        ...     context = {\n        ...         'foo': 'bar',\n        ...     }\n        ...\n        >>> view = FooView()\n        >>> view.del_context('foo')\n        {}\n\n        Arguments\n        ---------\n        key : str\n            The context key name\n\n        Returns\n        -------\n        bool\n            Success or Failure\n\n        Returns\n        -------\n        dict\n            The new context\n        " #NEWLINE# context = self . get_context ( ) #NEWLINE# try : #NEWLINE# #INDENT# context . pop ( key , None ) #NEWLINE# self . _context = context #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return self