MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / __init__

Method __init__

scripts/spec_tools/data_structures.py:17–21  ·  view source on GitHub ↗
(self, d=None)

Source from the content-addressed store, hash-verified

15 the .add method."""
16
17 def __init__(self, d=None):
18 self.d = {}
19 if d:
20 for k, v in d.items():
21 self.add(k, v)
22
23 def __getitem__(self, k):
24 return self.d[k]

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected