Python 3.3 有什麼新功能¶
本文介紹了 Python 3.3 與 3.2 相比多了哪些新功能。Python 3.1 已於 2012 年 9 月 29 日發布。完整詳情請見 changelog。
也參考
PEP 398 - Python 3.3 發佈時程
發布重點摘要¶
新增語法特性:
New
yield fromexpression for generator delegation.str物件再次接受u'unicode'語法。
新的函式庫模組:
faulthandler(helps debugging low-level crashes)ipaddress(high-level objects representing IP addresses and masks)lzma(compress data using the XZ / LZMA algorithm)unittest.mock(replace parts of your system under test with mock objects)