MCPcopy Index your code
hub / github.com/RustPython/RustPython / get

Method get

Lib/doctest.py:2814–2822  ·  view source on GitHub ↗

get() -> return TestClass's associated value. >>> x = _TestClass(-42) >>> print(x.get()) -42

(self)

Source from the content-addressed store, hash-verified

2812 return self
2813
2814 def get(self):
2815 """get() -> return TestClass's associated value.
2816
2817 >>> x = _TestClass(-42)
2818 >>> print(x.get())
2819 -42
2820 """
2821
2822 return self.val
2823
2824__test__ = {"_TestClass": _TestClass,
2825 "string": r"""

Callers 4

_extract_future_flagsFunction · 0.45
__record_outcomeMethod · 0.45
testmodFunction · 0.45
DocFileSuiteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected