Re: Python old-style vs new-style classes

2008-10-18 Thread Esteve Fernandez
On Friday 17 October 2008 19:50:14 David Reiss wrote: > This is the measurement I was referencing: > http://publists.facebook.com/pipermail/thrift/2007-August/73.html I ran the script in both Python 2.5.2 and 2.6 and this is what I got: Python 2.6: oldstyle: 2.966 s n

Re: Python old-style vs new-style classes

2008-10-17 Thread David Reiss
This is the measurement I was referencing: http://publists.facebook.com/pipermail/thrift/2007-August/73.html Alexander Shigin wrote: > В Птн, 17/10/2008 в 18:29 +0200, Esteve Fernandez пишет: >> Hi all. Is there a reason why Thrift Python classes are not new style by >> default? I want to cont

Re: Python old-style vs new-style classes

2008-10-17 Thread Alexander Shigin
В Птн, 17/10/2008 в 18:29 +0200, Esteve Fernandez пишет: > Hi all. Is there a reason why Thrift Python classes are not new style by > default? I want to contribute a patch which adds a __slots__ variable to all > autogenerated classes, but it would break old style classes. David Reiss wrote in d

Python old-style vs new-style classes

2008-10-17 Thread Esteve Fernandez
Hi all. Is there a reason why Thrift Python classes are not new style by default? I want to contribute a patch which adds a __slots__ variable to all autogenerated classes, but it would break old style classes. New style classes were introduced in Python 2.2 and I think Thrift only supports 2.4

Python old-style vs new-style classes

2008-10-17 Thread Esteve Fernandez
Hi all. Is there a reason why Thrift Python classes are not new style by default? I want to contribute a patch which adds a __slots__ variable to all autogenerated classes, but it would break old style classes. New style classes were introduced in Python 2.2 and I think Thrift only supports 2.4