Python版本历史
2023-09-17 22:13:41
Python Software Foundation(PSF)曾经支持两个主要版本,Python 2.x和Python 3.x。
PSF 支持 Python 2,因为大量现有代码无法转发到 Python 3。因此,他们在 2020 年 1 月之前一直支持 Python 2,但现在他们已经停止支持它。
Python 3.0 于 2008 年 12 月 3 日发布。它旨在纠正早期版本中的某些缺陷。此版本与以前的版本不完全向后兼容。但是,它的许多主要功能已经向后移植到Python 2.6.x和2.7.x版本系列。Python 3 的版本包括一些实用程序,用于促进将 Python 2 代码自动转换为 Python 3。
下表列出了 Python 的所有重要版本:
Version | Release Date | Important Features |
Python 0.9.0 | February 1991 | - Classes with inheritance exception handling
- Functions
- Modules
|
Python 1.0 | January 1994 | - Functional programming tools (lambda, map, filter and reduce).
- Support for complex numbers.
- Functions with keyword arguments
|
Python 2.0 | October 2000 | - List comprehension.
- Cycle-detecting garbage collector.
- Support for Unicode. Unification of data types and classes
|
Python 2.7.0 - EOL - Jan 2020 | July 2010 |
Python 3 | December 2008 | - Backward incompatible.
- print keyword changed to print() function
- raw_input() function depreciated
- Unified str/Unicode types.
- Utilities for automatic conversion of Pytthon 2.x code
|
Python 3.6 | December 2016 |
Python 3.6.5 | March 2018 |
Python 3.7.0 | May 2018 | - New C API for thread-local storage
- Built-in breakpoint()
- Data classes
- Context variables
- More..
|
Python 3.8 | October 2019 | - Assignment Expression
- Positional-only parameters
- Parallel filesystem cache for compiled bytecode files
- More..
|
Python 3.9 - Current Version | October 2020 | - Dictionary Merge & Update Operators
- New removeprefix() and removesuffix() string methods
- Builtin Generic Types
- More..
|