class_docstr: Object returned by the ``monkeypatch`` fixture keeping a record of setattr/item/env/syspath changes.
      
class_docstr_tok: ["Object","returned","by","the","``","monkeypatch","``","fixture","keeping","a","record","of","setattr\/item\/env\/syspath","changes","."]
docstr: Delete ``name`` from dict. Raise KeyError if it doesn't exist.
  
  If ``raising`` is set to False, no exception will be raised if the
  key is missing.
docstr_tok: ["Delete","``","name","``","from","dict",".","Raise","KeyError","if","it","does","n't","exist",".","If","``","raising","``","is","set","to","False",",","no","exception","will","be","raised","if","the","key","is","missing","."]
code: def delitem(self, dic, name, raising=True):
      """Delete ``name`` from dict. Raise KeyError if it doesn't exist.
  
      If ``raising`` is set to False, no exception will be raised if the
      key is missing.
      """
      if name not in dic:
          if raising:
              raise KeyError(name)
      else:
          self._setitem.append((dic, name, dic.get(name, notset)))
          del dic[name]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import re
  import sys
  import warnings
  from contextlib import contextmanager
  import six
  import pytest
  from _pytest.fixtures import fixture
  from _pytest.pathlib import Path
label_desc: Use image node_id 6 for calling the MonkeyPatch obj's underlying member method code with example usage: obj.delitem(dic, name, raising) without return types