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

Method directive_destination

Tools/clinic/libclinic/dsl_parser.py:350–362  ·  view source on GitHub ↗
(
        self,
        name: str,
        command: str,
        *args: str
    )

Source from the content-addressed store, hash-verified

348 self.clinic.__dict__[name] = value
349
350 def directive_destination(
351 self,
352 name: str,
353 command: str,
354 *args: str
355 ) -> None:
356 match command:
357 case "new":
358 self.clinic.add_destination(name, *args)
359 case "clear":
360 self.clinic.get_destination(name).clear()
361 case _:
362 fail(f"unknown destination command {command!r}")
363
364
365 def directive_output(

Callers

nothing calls this directly

Calls 4

failFunction · 0.90
add_destinationMethod · 0.80
get_destinationMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected