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 ...

2023-03-08 · 5 min · 2319 words · ZoomQuiet

PyCoder 566

MooS ~ 模型即服务?! 原文: PyCoder’s Weekly - Issue #566 230301 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230301 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 用 NumPy 和线性代数编写更快的 Python 代码 REAL PYTHON PODCAST Are you still using loops and lists to process your data in Python? Have you heard of a Python library with optimized data structures and built-in operations that can speed up your data science code? This week on the show, Jodie Burchell, developer advocate for data science at JetBrains, returns to share secrets for harnessing linear algebra and NumPy for your projects. (是也乎: 简单的说使用数学工具,而不是编程工具. ) Python 的 Multiprocessing 性能问题 ITAMAR TURNER-TRAURING While multiprocessing allows Python to scale to multiple CPUs, it has some performance overhead compared to threading. This article details why processes have performance issues that threads don’t, ways to work around it, and a sample bad solution. (是也乎: 没事儿, 用 Rust 重写一遍就好… ) 在 Python 中将 XML 转换为 YAML ADITYA RAJ XML and YAML are two of the most popular text based data formats. This article teaches you how to use third-party Python libraries to convert from one to the other. 攻击试图交付 Rust 可执行文件的 PyPI PHYLUM.IO Django 4.2 Beta 1 发布 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions None … ...

2023-03-01 · 4 min · 1817 words · ZoomQuiet

PyCoder 565

为什么类型提示很烂… 原文: PyCoder’s Weekly - Issue #565 230222 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230222 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 如何刷新 Python 打印函数的输出 REAL PYTHON In this tutorial, you’ll learn how to flush the output of Python’s print function. You’ll explore output stream buffering in Python using code examples and learn that output streams are block-buffered by default, and that print() with its default arguments executes line-buffered when interactive. (是也乎: 制作进度条的关键技巧… ) 潜伏在异步代码中的 Heisenbug WILL MCGUGAN When using the create_task() function in asyncio it is very important to maintain a reference to the created tasks. Although this requirement is documented, it is easy to forget and can have some very hard to understand consequences. SQLAlchemy 2.0 有什么新功能? MIGUEL GRINBERG SQLAlchemy 2.0 was launched in January. This article reviews the latest changes, whether it is worth the upgrade, and how to go about it. (是也乎: 书都准备好了… ) PyCon US 2023 (犹他州盐湖城)时间表可用 PYCON.BLOGSPOT.COM Django Security 已发布: 4.1.7, 4.0.10, and 3.2.18 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2023-02-22 · 4 min · 1792 words · ZoomQuiet

PyCoder 564

Python 中的单体仓库 原文: PyCoder’s Weekly - Issue #564 230215 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230215 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 Python 中的单体仓库 KENNEDY & VUJIC PODCAST A monorepo is a source control pattern in some organizations where a single code repository is shared for many or all projects. This interview with David Vujic discusses monorepos and the set of Python tools that can help you succeed with this pattern. (是也乎: 也就是巨大石仓库,Google 引发的潮流… 其实吧,如果没有合理的配套商业模型以及基础设施和对应专业运维团队, 这么搞….囧的 ) 用 Python 和 SpiffWorkflow 的业务流程模型 REAL PYTHON PODCAST Can you describe your business processes with flowcharts? What if you could define the steps in a standard notation and implement the workflows in pure Python? This week on the show, Dan Funk from Sartography is here to discuss SpiffWorkflow. (是也乎: 支持多种工作流描述语言的引擎… ) 函数式 Python,第二部分: Dial M for Monoid CHRISTOPHER HARRISON This article is about “commandeering techniques from richly typed, functional languages into Python for fun and profit.” The focus is on Typeclasses and continuation-passing style. SQLAlchemy 2.0 发布 SQLALCHEMY.ORG (是也乎: 淦…2.0 了 ) DjangoCon Europe 2023 (Edinburgh) 征集参与 PRETALX.COM Python 3.11.2, Python 3.10.10 and 3.12.0 Alpha 5 可用 CPYTHON DEV BLOG Mypy 1.0 发布 MYPY-LANG.BLOGSPOT.COM (是也乎: 嗯哼? 以为永远不会有 1.0 了呢… ) 探讨/吐糟 Discussions ...

2023-02-15 · 4 min · 1855 words · ZoomQuiet