2 ms·
Very nice and fun presentation. Another feature not in this talk is function annotations (http://legacy.python.org/dev/peps/pep-3107/ http://legacy.python.org/
by ak217 12y ago
Very nice and fun presentation.
Another feature not in this talk is function annotations (http://legacy.python.org/dev/peps/pep-3107/ http://legacy.python.org/dev/peps/pep-3107/) and things they enable like optional runtime type checking (https://github.com/kislyuk/ensure#enforcing-function-annotations https://github.com/kislyuk/ensure#enforcing-function-annotat...).
Also, as a library developer, I wanted to highlight some facts from experience with Python 2/3 development:
- Travis CI is an invaluable resource for running your test suite on a number of Python versions at once. It has deep integration with GitHub, and together they make the development flow a lot less cumbersome.
- Writing to a subset of Python that is compatible with both 2.7 and 3.3+ is not terribly hard. Lots of resources exist out there, including Armin's porting guide, six, python-future, and eight (https://github.com/kislyuk/eight https://github.com/kislyuk/eight).
- Contrary to some opinions out there, Python 3 actually makes working with Unicode a lot less perilous than Python 2, mostly by having a sane encoding default (UTF-8 instead of Python 2's ascii) and not doing automatic bytes/unicode coercion.
- PyPy is awesome and just released their first non-beta Python 3 version. Please donate!