On 2/18/11 11:14 AM, Ed Leafe wrote: > On Feb 18, 2011, at 10:32 AM, Paul McNett wrote: > >>> Corrected syntax to work in Python 2.4 >> Speaking of this, are there overriding reasons to keep supporting 2.4.x? > > Maybe we should take a survey as to what people are using. For > Xenserver plugins, I have to code to 2.4, since they use a CentOS version > that still uses Python 2.4, and will for some time. > > I'd love to move to at least 2.6, but if there isn't any compelling > benefit, I prefer to support as many versions as possible. The addition of > decorators and Decimal made the jump from 2.3 to 2.4 huge; the addition of a > ternary if statement is relatively minor. You now have With statements and the string format() method. Decorators are extended to classes. hasattr() also doesn't catch all exceptions in 2.5+. In the iterators next function you can provide a default value when will be returned if the iterator is exhausted versus raising a StopIteration exception. Properties can be declared with decorators.
Those are all of the changes I use frequently. On another note, how much did unicode support improve between 2.4 and 2.6? Regards, Nate _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
