renumbering chapters >= 19

This commit is contained in:
Luciano Ramalho committed 2021-09-10 12:34:39 -03:00
1 parent cbd13885fc
commit 4ae4096c4c
154 files changed
+7 -1134

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
class Foo:
@property
def bar(self):
return self._bar
@bar.setter
def bar(self, value):
self._bar = value
def __setattr__(self, name, value):
print(f'setting {name!r} to {value!r}')
super().__setattr__(name, value)
o = Foo()
o.bar = 8
print(o.bar)
print(o._bar)