MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / MyObject

Class MyObject

tests/cloudpickle_test.py:1603–1618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1601 # Note that the @property decorator only has an effect on new-style
1602 # classes.
1603 class MyObject:
1604 _read_only_value = 1
1605 _read_write_value = 1
1606
1607 @property
1608 def read_only_value(self):
1609 "A read-only attribute"
1610 return self._read_only_value
1611
1612 @property
1613 def read_write_value(self):
1614 return self._read_write_value
1615
1616 @read_write_value.setter
1617 def read_write_value(self, value):
1618 self._read_write_value = value
1619
1620 my_object = MyObject()
1621

Callers 1

test_propertyMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_propertyMethod · 0.68