Am 21.01.2013 09:15, schrieb Aaron Meurer:
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).
Also, we can use raises() in doctests.
Current "workaround" is to disable these.
See utilities/pytest.py for an example.
Also, we can remove the __future__ import for with statements.
> 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
They might be extremely useful or entirely
I'd love to see how they work out in practice.
They
Not sure how their Python variety works out in practice, but in general,
ABCs are extremely useful to nail down what's essential and what's
accidental in a class interface.
- New-style string formatting (like "The number is {x}".format(x=1))
Useful for translating error messages, if/when that becomes relevant.
Regards,
Jo
P.S. The promised work on C and S *will* be done, it's just that some
other issues are eating away at my free time.
--
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.