diff --git a/.gitignore b/.gitignore index 94846968..4a68cd23 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,7 @@ profile.sh test tmp.rar src/httplib.h +pocketpy.exe +main.obj +pocketpy.exp +pocketpy.lib diff --git a/tests/44_decorator.py b/tests/44_decorator.py index ae3a81f3..a71c096d 100644 --- a/tests/44_decorator.py +++ b/tests/44_decorator.py @@ -19,4 +19,21 @@ class A: return self._x a = A(1) -assert a.x == 1 \ No newline at end of file +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 \ No newline at end of file