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

Python 中的字典调度模式

Python 中的字典调度模式 Title: Python 中的字典调度模式 Slug: 230209-dict-dispatch-pattern-in-python Date: 2023-02-09 18:42 Summary: Pythonic/ 字典的神奇功能 Tags: Python,translate,Pythonic Author: ZoomQuiet Status: published [TOC] 原文: Dictionary Dispatch Pattern in Python | Martin Heinz | Personal Website & Blog 是否曾经写过一堆 if/else 或是一个巨大的 match/case , 其中所有语句只是为了匹配一值, 想知道如何将这种事儿简洁又可读嘛? ...

2023-02-09 · 6 min · 2510 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