MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/tempfile.py:905–913  ·  view source on GitHub ↗
(self, suffix=None, prefix=None, dir=None,
                 ignore_cleanup_errors=False, *, delete=True)

Source from the content-addressed store, hash-verified

903 """
904
905 def __init__(self, suffix=None, prefix=None, dir=None,
906 ignore_cleanup_errors=False, *, delete=True):
907 self.name = mkdtemp(suffix, prefix, dir)
908 self._ignore_cleanup_errors = ignore_cleanup_errors
909 self._delete = delete
910 self._finalizer = _weakref.finalize(
911 self, self._cleanup, self.name,
912 warn_message="Implicitly cleaning up {!r}".format(self),
913 ignore_errors=self._ignore_cleanup_errors, delete=self._delete)
914
915 @classmethod
916 def _rmtree(cls, name, ignore_errors=False, repeated=False):

Callers

nothing calls this directly

Calls 3

mkdtempFunction · 0.85
finalizeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected