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?
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.