MCPcopy Create free account
hub / github.com/apache/madlib / construct_python_object

Method construct_python_object

src/madpack/yaml/constructor.py:565–572  ·  view source on GitHub ↗
(self, suffix, node)

Source from the content-addressed store, hash-verified

563 setattr(object, key, value)
564
565 def construct_python_object(self, suffix, node):
566 # Format:
567 # !!python/object:module.name { ... state ... }
568 instance = self.make_python_instance(suffix, node, newobj=True)
569 yield instance
570 deep = hasattr(instance, '__setstate__')
571 state = self.construct_mapping(node, deep=deep)
572 self.set_python_instance_state(instance, state)
573
574 def construct_python_object_apply(self, suffix, node, newobj=False):
575 # Format:

Callers

nothing calls this directly

Calls 3

make_python_instanceMethod · 0.95
construct_mappingMethod · 0.45

Tested by

no test coverage detected