PyCoder 567
为毛 Python 还在增长? 原文: PyCoder’s Weekly - Issue #567 230308 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230308 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 PEP 709: 内联理解 PYTHON.ORG Python Enhancement Proposal 709 covers a change to how comprehensions are handled. Currently they are compiled as nested functions. Benchmarking shows that treating list, dict, and set comprehensions as in-line code can result in a 2x speedup on the comprehension. Python 中的迭代器和可迭代对象: 运行高效的迭代 REAL PYTHON In this tutorial, you’ll learn what iterators and iterables are in Python. You’ll learn how they differ and when to use them in your code. You’ll also learn how to create your own iterators and iterables to make data processing more efficient. (是也乎: 嗯哼, 怎么说呢? 同样是迭代处理,对比一下 Rust 最常见的: 这种链式闭包联级处理, 也是 Elixir/Haskell/LISP/…函数式语言常见的形式, 这在 Python 中还很难日用起来… ) Pandas 2.0 和 Arrow Revolution(上) MARC GARCIA This article details the changes in the Pandas 2.0 release, with emphasis on the underlying adoption of Apache Arrow. 探讨/吐糟 Discussions ...