[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 __

[issue24242] property performance regression

2015-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: The test script has a bug. The class needs to inherit from object in Python 2.7 -- nosy: +rhettinger resolution: -> not a bug status: open -> closed ___ Python tracker ___

[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 @y.s