PyPI monthly: IPython, pytest, cryptography and NumPy
Hey folks, JP from Gemnasium here for our monthly PyPI digest!
So, what’s new and worth your time this month?
In case you missed it, 6.0+ is only compatible with Python 3.3 and up.
So, in this release, there’s a few things that were added…here’s the exhaustive list:
- Quotes in a filename are always escaped during tab-completion on non-Windows.
- Variables now shadow magics in autocompletion.
- Added the ability to add parameters to alias_magic.
- To suppress log state messages, you can now either use
%logstart -q, pass
--LoggingMagics.quiet=Trueon the command line, or set
c.LoggingMagics.quiet=Truein your configuration file.
- An additional flag
--TerminalInteractiveShell.term_title_formatis introduced to allow the user to control the format of the terminal title. It is specified as a python format string, and currently the only variable it will format is
%pinfo2will now show object docstrings if the source can’t be retrieved.
IPython.displayhas gained a
%configoptions can now be tab completed.
%configwith no arguments are now unique and sorted.
- Completion on keyword arguments does not duplicate = sign if already present.
%run -m <module>now
<module>passes extra arguments to
- completer now understand “snake case auto complete”: if
foo_bar_kittensis a valid completion, I can type
f_b<tab>will complete to it.
- tracebacks are better standardized and will compress
pytest-warnings plugin that captures and show warnings at the of the tests is now part of core as of pytest 3.1
There’s a couple new ini options (looking at you,
doctest_encoding), some changes to pytest.warns, pytest.raises and pytest.param. There were also a bunch more changes, that you can see in the changelog just here.
First, there’s a few breaking changes: — They dropped support for macOS 10.7 and 10.8 — Support was also dropped for PyPy prior to 5.3 — Final breaking change: Elliptic Curve signature verification no longer returns
True on success
They also deprecated Python 3.3 and will be released in the next release.
There were also a few additions and fixes, including an issue preventing compilation with LibreSSL 2.5.x.
If you use cryptography and want to upgrade, be sure to look at the changelog in full.
The big things for this release are:
- Operations like
a + b + cwill reuse temporaries on some platforms, resulting in less memory use and faster execution.
- Inplace operations check if inputs overlap outputs and create temporaries to avoid problems. New
__array_ufunc__attribute provides improved ability for classes to override default ufunc behavior.
np.blockfunction for creating blocked arrays.
There’s new functions, some deprecations, additions, bug fixes…it’s a pretty big release. Check the details here.
Want to blog here and be exposed to thousands of developers?
Would you like to blog on Gemnasium’s blog and be exposed to thousands of people? We’re looking for some guest bloggers. Send me a quick mail at email@example.com.
That’s all for this month, thanks for reading! :)