Python 3.4.0 enters beta testing, bringing a large number of new modules

Source: Internet
Author: User

The statistical module, asynchronous I/O, memory allocation tracking, and better hash algorithms are all available, but these updates make it quite difficult to adapt.

Python version 3 has just released its latest beta version, namely 3.4.0.

As the alpha 1 version first announced in August 2013, Python 3.4 promises a large number of later versions, most of which will appear in the form of new modules, to add more cores to the language. Including:

Pathlib: an object-oriented library used to access the local file system. Currently, several third-party modules have provided similar functions, and attempts to add this function to the Python Library have been "REJECTED ". Now the situation has finally changed. As a new mechanism derived from existing third-party modules, pathlib officially adds this function to Python. It is designed to identify the cause of the error through modules that have been rejected or failed to take effect.

Enum: a standard Enumeration type for Python. Enumeration allows developers to select a group of names and bind them with constant values, such as the day of the week or the given function status. Similarly, Python has previously been able to achieve this type of effect, such as flufl. enum), but these methods are not in the official standard.

Statistics: Python has been increasingly used by mathematicians and data scientists for data processing tasks. The appearance of this Standard status module seems too late.

Asyncio: as the name suggests, this is a module used to process asynchronous I/O. Some of the ideas refer to the existing Twisted and yield from modules.

In addition, the standard model of the coming module can directly provide metadata to Python without importing it in advance. A better hashing algorithm can avoid hash conflict attacks against Python programs. There are also a lot of other updates.

Unfortunately, the changes brought about by version 3.4 still fail to mitigate the biggest problem most users encounter when dealing with Python: The Language still has only two major forks, namely 2. x and 3. version x. Developers who use 2.x cannot upgrade to 3.x smoothly, which is also the most complained and criticized. It is true that many mainstream Python frameworks such as Django can already be associated with 3. compatible with Version x, but for Python 2. for users who have invested a lot in x, the complete transition is still a difficult and slow process.

The 3.4 main version is expected to be officially launched in February 23 next year, and we will welcome another beta version and two candidate versions.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.