[issue24242] property performance regression

2015-05-19 Thread Hannes Ovrén
Hannes Ovrén added the comment: Yes, changing to class A(object) does indeed cause the same magnitude of performance drop in Python 2.7 as well. Thanks! -- ___ Python tracker <http://bugs.python.org/issue24

[issue24242] property performance regression

2015-05-19 Thread Hannes Ovrén
New submission from Hannes Ovrén: There seems to be a significant regression in performance when using @property in Python 2.x compared to 3.x. Test code: class A: def __init__(self, x, y): self.x = x self.y = y @property def y(self): return self._y