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

Class Fubar

extra_tests/snippets/builtin_property.py:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class Fubar:
5 def __init__(self):
6 self.x = 100
7
8 @property
9 def foo(self):
10 value = self.x
11 self.x += 1
12 return value
13
14
15f = Fubar()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected