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

PyCoder 563

2023 年 Python 三大趋势 原文: PyCoder’s Weekly - Issue #563 230208 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230208 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 用 Python 和 Rich 构建 Wordle 游戏 REAL PYTHON In this step-by-step project, you’ll build your own Wordle clone with Python. Your game will run in the terminal, and you’ll use Rich to ensure your word-guessing app looks good. Learn how to build a command-line application from scratch and then challenge your friends to a wordly competition! (是也乎: Rich 这个项目名起的太好了… ) 将 Python WASI 支持添加到 Wasm 语言运行时 ASEN ALEXANDROV “This article provides an overview of how Python works in WebAssembly environments and provides a step by step guide on how to use it.” See also the associated Hacker News Conversation. 2023 年 Python 的三大趋势 JERRY CODES An opinion piece on three trends likely to attract attention in the Python world in 2023: Python/Rust co-projects, web apps, and more typing. Read on for examples in each category. (是也乎: 2023.py + 为 rust 服务 + Web apps + 加强安全 对了 CharGPT 也有自己的猜想… 好象现在写文章不带上 ChatGPT 就不完整一样… ) ...

2023-02-08 · 4 min · 1791 words · ZoomQuiet

PyCoder 562

箴言之禅 原文: PyCoder’s Weekly - Issue #562 230201 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230201 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 用 Apache Airflow 编排大型和小型项目 REAL PYTHON PODCAST Have you worked on a project that needed an orchestration tool? How do you define the workflow of an entire data pipeline or a messaging system with Python? This week on the show, Calvin Hendryx-Parker is back to talk about using Apache Airflow and orchestrating Python projects. (是也乎: 什么是编排? 为什么数据/消息的流通会变来变去? ) (是也乎: ) 为什么我喜欢 Nox HYNEK SCHLAWACK Both nox and tox are multi-environment testing tools. This opinion piece by Hynek compares and contrasts them and explains why increasingly he is using nox. (是也乎: 下一代更好的多系统测试工具应该叫 mox ) 模拟断开的数据库连接以在 Django 中进行测试 NEIL KAKKAR This article covers three different options for effectively testing Django database access and failure recovery when the database connection is not there. Bleach 6.0.0 发布和弃用 BLUESOCK.ORG Bleach is an HTML sanitizing library. 6.0 has been released, along with the announcement that the package is being deprecated. The library is dependent on html5lib which is no longer maintained, the maintainers of Bleach are giving notice that their package will stop being updated after a year. (是也乎: 代码好歹有 语法树, HTML 这东西怎么净化? 人家设计的就是可以乱来的 ) PEP 704: 默认需要虚拟环境 PYTHON.ORG (是也乎: 好象 Guido 退休后, PEP 增长加速了… ) 探讨/吐糟 Discussions ...

2023-02-01 · 5 min · 2016 words · ZoomQuiet