掃二維碼與項目經(jīng)理溝通
我們在微信上24小時期待你的聲音
解答本文疑問/技術(shù)咨詢/運營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流
Python 3.4.0 發(fā)布,此版本包括一系列 3.x 系列的改進,數(shù)百個小的改進和 bug 修復(fù)。

創(chuàng)新互聯(lián)是一家集網(wǎng)站建設(shè),吳川企業(yè)網(wǎng)站建設(shè),吳川品牌網(wǎng)站建設(shè),網(wǎng)站定制,吳川網(wǎng)站建設(shè)報價,網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,吳川網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時我們時刻保持專業(yè)、時尚、前沿,時刻以成就客戶成長自我,堅持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實用型網(wǎng)站。
值得注意的更新內(nèi)容如下:
新語法特性:
Python 3.4 并未添加任何新的語法特性
其他新特性:
pip should always be available (PEP 453).
Newly created file descriptors are non-inheritable(PEP 446).
command line option for isolated mode(issue 16499).
improvements in the handling of codecsthat are not text encodings (multiple issues).
A ModuleSpec Type for the Import System (PEP 451). (Affects importer authors.)
The marshal format has been made more compact and efficient (issue 16475).
新的庫模塊:
asyncio: New provisional API for asynchronous IO (PEP 3156).
ensurepip: Bootstrapping the pip installer(PEP 453).
enum: Support for enumeration types(PEP 435).
pathlib: Object-oriented filesystem paths(PEP 428).
selectors: High-level and efficient I/O multiplexing, built upon the select module primitives (part of PEP 3156).
statistics: A basic numerically stable statistics library (PEP 450).
tracemalloc: Trace Python memory allocations (PEP 454).
庫模塊中重大的改進:
Single-dispatch generic functions infunctools (PEP 443).
New pickle protocol 4 (PEP 3154).
multiprocessing now has an option to avoid using os.fork on Unix (issue 8713).
email has a new submodule, contentmanager, and a new Message subclass (EmailMessage) that simplify MIME handling (issue 18891).
The inspect and pydoc modules are now capable of correct introspection of a much wider variety of callable objects, which improves the output of the Python help() system.
The ipaddress module API has been declared stable
安全改進:
Secure and interchangeable hash algorithm(PEP 456).
Make newly created file descriptors non-inheritable(PEP 446) to avoid leaking file descriptors to child processes.
New command line option for isolated mode, (issue 16499).
multiprocessing now has an option to avoid using os.fork on Unix. spawn and forkserver are more secure because they avoid sharing data with child processes.
multiprocessing child processes on Windows no longer inherit all of the parent’s inheritable handles, only the necessary ones.
A new hashlib.pbkdf2_hmac() function provides the PKCS#5 password-based key derivation function 2.
TLSv1.1 and TLSv1.2 support for ssl.
Retrieving certificates from the Windows system cert store support for ssl.
Server-side SNI (Server Name Indication) support for ssl.
The ssl.SSLContext class has a lot of improvements.
All modules in the standard library that support SSL now support server certificate verification, including hostname matching (ssl.match_hostname()) and CRLs (Certificate Revocation lists, seessl.SSLContext.load_verify_locations()).
CPython 實現(xiàn)改進:
Safe object finalization (PEP 442).
Leveraging PEP 442, in most cases module globals are no longer set to None during finalization (issue 18214).
Configurable memory allocators (PEP 445).
Argument Clinic (PEP 436).
其他的還包括許多 CPython 的優(yōu)化,用法和潛在移植問題,更多內(nèi)容請看發(fā)行說明,新特性介紹或者是更新日志,可以在這里下載最新版本。
下載地址:http://legacy.python.org/ftp//python/

我們在微信上24小時期待你的聲音
解答本文疑問/技術(shù)咨詢/運營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流