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

Method clear

Tools/clinic/libclinic/codegen.py:257–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

255 return f"<clinic.Destination {self.name!r} {type_repr}>"
256
257 def clear(self) -> None:
258 if self.type != 'buffer':
259 fail(f"Can't clear destination {self.name!r}: it's not of type 'buffer'")
260 self.buffers.clear()
261
262 def dump(self) -> str:
263 return self.buffers.dump()

Callers 3

clearMethod · 0.45
directive_destinationMethod · 0.45
parse_parameterMethod · 0.45

Calls 1

failFunction · 0.90

Tested by

no test coverage detected