After the official release of Python 2.7 RC2, the official version of Python 2.7 was finally available. This is also the Python Plan 2. the last important version of x, which contains many new features in Python 3.1. For more information, see the official Python documentation.
To better develop Python 3, many new features of Python 3.1 are included in this new version. Python 3.1 will also be the direction and focus of the development team in the future. Python 2.7 will be the version with the longest maintenance time in Python 2.x. During the transition to Python 3.x, Python 2.7 will also be retained. DeprecationWarning is ignored in Python 2.7, and DeprecationWarning is enabled by default in earlier versions.
The following are some important changes in Python 2.7:
◆ Python 2.7 has been greatly improved in data type processing, especially for float and decimal type.
◆ Python 2.7 supplemented the standard library, for example, enhanced the unittest module.
◆ Added an automatic number field in the str. format () method.
◆ Declarations are nested in some New syntaxes.
◆ Tile supports Tkinter
The release of Python 2.7 has already laid the groundwork for Python 3.1. According to the instructions in the official Python documentation, most of the functions in Python 2.6 will be included in Python 3.1, the following is a brief introduction to the main features of Python 3.1 that have been added to Python 2.7 ):
◆ The syntax {1, 2, 3} of the variable set is provided })
◆ Added the PyLong_AsLongAndOverflow () function.
◆ Added a memoryview object.
◆ Added the assert method.
Python 2.7:
Gzipped source tar ball (2.7): http://www.python.org/ftp/python/2.7/Python-2.7.tgz
Bzipped source tar ball (2.7): http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
Windows x86 MSI Installer (2.7): http://www.python.org/ftp/python/2.7/python-2.7.msi
Windows X86-64 MSI Installer (2.7rc2): http://www.python.org/ftp/python/2.7/python-2.7rc2.amd64.msi