![]() ![]() The recommended starting point is the Porting Python 2 Code to Python 3 HOWTO guide.Ĭhanges to the Handling of Deprecation Warnings ¶įor Python 2.7, a policy decision was made to silence warnings only of On a suitable approach and manage some of the technical details involved. Python 3, there are a variety of tools and guides available to help decide New Features Added to Python 2.7 Maintenance Releases section below.įor projects wishing to migrate from Python 2 to Python 3, or for libraryĪnd framework developers wishing to support users on both Python 2 and Maintenance releases where they were added, will be noted in the Proposal process may be used to make the case for adding new featuresĭirectly to the Python 2 standard library. Publishing new or updated packages on PyPI, the Python Enhancement In exceptional cases that cannot be handled adequately by Necessarily work in all cases, especially those related to network Of new packages on the Python Package Index, this approach doesn’t While the preferred approach to enhancing Python 2 is now the publication Installing software from the Python Package Index. The Python Packaging User Guide provides guidance on downloading and Of new modules and features from the Python 3 standard library that areĬompatible with Python 2, as well as various tools and libraries that can Party packages for various tasks, the available packages include backports Python Package Index (either directly or via a redistributor) becomes Release, compared to the more typical support period of 18–24 months).Īs the Python 2.7 standard library ages, making effective use of the Remain supported by the core development team (receiving security updatesĪnd other bug fixes) until at least 2020 (10 years after its initial Some key consequences of the long-term significance of 2.7 are:Īs noted above, the 2.7 release has a much longer period of maintenance The full expected lifecycle of the Python 2.7 Stable and supported base platform for production systems that have not yetīeen ported to Python 3. This means that Python 2.7 will remain in place for a long time, providing a Those associated with Unicode handling) may require careful consideration,Īnd preferably robust automated regression test suites, to migrate ![]() However, while there is a large common subset between Python 2.7 and Pythonģ, and many of the changes involved in migrating to that common subset, orĭirectly to Python 3, can be safely automated, some other changes (notably Releases for the language or standard library. Versions of supported operated systems, there will be no new full feature Receive bug fixes, and to be updated to build correctly on new hardware and This means that while Python 2 continues to Maintainers have shifted the focus of their new feature development efforts Python 2.7 is the last major release in the 2.x series, as the Python Whenever possible, “What’s New in Python” links to the The design and implementation, refer to the PEP for a particular newįeature or the issue on in which a change wasĭiscussed. If you want to understand the rationale for Forįull details, you should refer to the documentation for Python 2.7 at The new features, but instead provides a convenient overview. This article doesn’t attempt to provide a complete specification of To Python 3, several new features from the Python 3.x series have been On making it a good release for the long term. Python 2.7 is planned to be the last of the 2.x releases, so we worked Greatly enhanced unittest module, the argparse moduleįor parsing command-line options, convenient OrderedDictĪnd Counter classes in the collections module, There are some useful additions to the standard library, such as a Numeric handling has been improved in many ways, for bothįloating-point numbers and for the Decimal class. This article explains the new features in Python 2.7.
0 Comments
Leave a Reply. |