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

Method get

Lib/doctest.py:2890–2898  ·  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

2888 return self
2889
2890 def get(self):
2891 """get() -> return TestClass's associated value.
2892
2893 >>> x = _TestClass(-42)
2894 >>> print(x.get())
2895 -42
2896 """
2897
2898 return self.val
2899
2900__test__ = {"_TestClass": _TestClass,
2901 "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