UPDATED 14:41 EDT / MARCH 19 2014

Python 3.4.0 release introduces PEP 450 integration and new modules

python-logoAfter around 18 months of development, Python 3.4 has been released. There were no new language changes for this release, but there were many new features in the standard library and CPython implementation. Python 3.4 may not incorporate any new syntax features but it does have other new features, new library modules, improved library modules, and other enhancements.

Among the highlights of the new version include the Pip-support and new modules for Statistics and asynchronous input-output operations. Pip is a package manager for Python modules and now by default comes with Python. With Pip-support and “pip install”, Python can be extended to useful modules. To this end, the programming language have a module called “ensurepip” integrated into the standard library, which ensures the presence of Pip. The bootstrap process does not require network access, but relies on a built-in standard Pip library version.

The module “statistics.py” provides developers a new library suite of mathematical statistics functions. Whether it comes to averages, medians, variances or standard deviations, Python 3.4 brings all these in the new algorithm module. Also interesting is the use of SIP hash as the default hash algorithm for strings and bytes. The current hash algorithm of CPython is not immune against DoS attacks. The new algorithm promises a secure random number generation for hashes.

The most recent version of Python also presents the implementation of semantic objects and the finalization of a tracemalloc module for tracking the allocated memory, which detect areas of memory that is allocated to objects. The change in the file descriptors is re-designed to prevent default inheritance in sub-processes. Before proceeding with the installation developers will need to keep in mind that the binaries for AMD64 will be compatible with processors that implement the Intel 64 architecture.

Some of the new features that are directly visible to the user are: the tool pip is no longer with Python. It is worth noting that the version 3.3 the same happens with venv; There is object-management of pathways through the file system of the new pathlib module; ability to create counters through the enum; a new module for simple statistical instruments; new debugging tool, which we can now see that binds memory for objects in Python through the tracemalloc; new protocol version Pickle and new module asyncio for asynchronous input/output.

Python is widely used by developers worldwide due to its features like dynamic typing, automatic memory management, full introspection, exception handling, support for multi-threaded computing and comfortable high-level data structures. Python supports structured, object-oriented, functional, imperative, and an aspect-oriented paradigm. Code in Python is organized in classes and functions that can be combined into modules (which in turn can be combined in packages).

You can check in more detail what’s new in Python 3.4 on this page and download from this page.


Since you’re here …

… We’d like to tell you about our mission and how you can help us fulfill it. SiliconANGLE Media Inc.’s business model is based on the intrinsic value of the content, not advertising. Unlike many online publications, we don’t have a paywall or run banner advertising, because we want to keep our journalism open, without influence or the need to chase traffic.The journalism, reporting and commentary on SiliconANGLE — along with live, unscripted video from our Silicon Valley studio and globe-trotting video teams at theCUBE — take a lot of hard work, time and money. Keeping the quality high requires the support of sponsors who are aligned with our vision of ad-free journalism content.

If you like the reporting, video interviews and other ad-free content here, please take a moment to check out a sample of the video content supported by our sponsors, tweet your support, and keep coming back to SiliconANGLE.