@@ -23,3 +23,7 @@ profile.sh
test
tmp.rar
src/httplib.h
+pocketpy.exe
+main.obj
+pocketpy.exp
+pocketpy.lib
@@ -19,4 +19,21 @@ class A:
return self._x
a = A(1)
-assert a.x == 1
+assert a.x == 1
+
+class B:
+ def __init__(self):
+ self._x = 1
+ def _x_setter(self, v):
+ self._x = v
+B.x = property(
+ lambda self: self._x,
+ B._x_setter
+ )
+b = B()
+assert b.x == 1
+b.x = 2
+assert b.x == 2