Python 3.10 中值得尝试的新特性… 原文: PyCoder’s Weekly - Issue #493 211006 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 211006 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 3.10: 炫酷特性值得尝试 REAL PYTHON Explore some of the coolest and most useful features in Python 3.10. You’ll appreciate more user-friendly error messages, learn about how you can handle complicated data structures with structural pattern matching, and explore new enhancements to Python’s type system. (是也乎: 改进了 error message, 加强了模式匹配, 拓展了 pattern, 比如: def greet(name): match name: case “Guido”: print(“Hi, Guido!”) case : print(“Howdy, stranger!”) 嗯哼, Elixir 们的语法; def fizzbuzz(number): mod_3 = number % 3 mod_5 = number % 5 match (mod_3, mod_5): case (0, 0): return “fizzbuzz” case (0, ): return “fizz” case (, 0): return “buzz” case: return str(number) ) Python 3.10: 官方下载链接以及变更说明 PYTHON.ORG Data Elixir: 数据科学新闻组 DATA ELIXIR sponsor Data Elixir is an email newsletter that keeps you on top of the tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web → (是也乎: 串行了… 继 go+ 立志取代 R/Python 作为数据科学主力语言后, Elixir 也开始进入这一领域… ) Python 3.10 发布 Party Stream YOUTUBE.COM video A recording of the Python 3.10 Release Stream with Pablo Galindo, CPython Core Developer and Python 3.10 Release Manager, and Leon Sandøy. Python 3.10 释放值得现在使用嘛? ITAMAR TURNER-TRAURING opinion Python 3.11 将有 “零成本” Exception Handling PYTHON.ORG With “Zero-cost” exceptions the cost of try statements is almost eliminated when no exception is raised. Coverage 6.0 已发布 NED BATCHELDER Django 3.2.8 已发布 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions
...