From fe24cad538763fa086f514303979285bdbcd2051 Mon Sep 17 00:00:00 2001 From: gitshub Date: Wed, 2 Oct 2013 20:42:46 -0400 Subject: [PATCH] fix property documentation Original statement "self._a = a" gave message "a is unrecognized global variable". It should be "self._a = value". --- kivy/properties.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/properties.pyx b/kivy/properties.pyx index 2c6c9cfc6..2bcaece59 100644 --- a/kivy/properties.pyx +++ b/kivy/properties.pyx @@ -70,7 +70,7 @@ property, here is a possible implementation in Python:: def _set_a(self, value): if value < self.a_min or value > self.a_max: raise ValueError('a out of bounds') - self._a = a + self._a = value a = property(_get_a, _set_a) The disadvantage is you have to do that work yourself. And it becomes