MCPcopy Index your code
hub / github.com/bpython/bpython / get_object

Method get_object

bpython/repl.py:593–598  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

591 return "".join(string)
592
593 def get_object(self, name: str) -> Any:
594 attributes = name.split(".")
595 obj = eval(attributes.pop(0), cast(dict[str, Any], self.interp.locals))
596 while attributes:
597 obj = inspection.getattr_safe(obj, attributes.pop(0))
598 return obj
599
600 @classmethod
601 def _funcname_and_argnum(

Callers 2

get_argsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected