Hi, On 21 January 2013 09:15, Aaron Meurer <[email protected]> wrote:
> I was looking at what benefits we would get from dropping Python 2.5 > support (other than the obvious no longer having to test on it). If > we dropped support, we would be able to use any feature that was > introduced in Python 2.6. Here's a page that lists all of them: > http://docs.python.org/2/whatsnew/2.6.html. > > I don't see anything particularly compelling. There are some syntax > changes that are annoying to work around (such as f(*args, > keyword_argument=True, **kwargs), "except Exception as e", or binary > literals). Most of the stuff seems mainly useful to people who want > to use the same code base for Python 2 and Python 3. I did notice the > following features: > > - Abstract base classes > > - New-style string formatting (like "The number is {x}".format(x=1)) > > - Class decorators > > - Standard library fractions module (meaning we can use this directly > in the polys again, assuming it isn't slower) > > Can anyone think of good uses we might make of these or other Python > 2.6+ only features in SymPy? > A little late in the discussion, but yes please, lets drop 2.5 as soon as possible. I have a few serious applications for class decorators (e.g. automatic pollution of __all__ without repeating yourself). Also those syntax changes changes will help reducing confusion and dirty workarounds. We don't have to use `fractions` because we have our own PythonRational and `fractions` is pure Python with ABCs, so there will be no gain (in terms of speed). I could take advantage of OrderedDict, but that's 2.7. > > Aaron Meurer > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > Mateusz -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
