Ich spiele also mit Dekorateuren in Python 2.6 und habe Probleme, sie zum Laufen zu bringen. Hier ist meine Klassendatei: class testDec: @property def x(self): print 'called getter' return self._x @x.setter def x(self, value): print 'called setter' self._x = value Ich dachte, dies würde bedeuten, xwie eine Eigenschaft zu behandeln …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.