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

PyCoder 561

这些天你最喜欢的技术播客是什么? 原文: PyCoder’s Weekly - Issue #561 230125 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230125 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 如何在 Python 中获取和使用当前时间 REAL PYTHON In this tutorial, you’ll be getting the current time in Python. You’ll get your hands on a datetime object that represents the current time. You’ll see how to format it according to international standards, and you’ll even check out how computers represent time. (是也乎: 这可是个古老又实用的问题 ) Property-Based Testing With Hypothesis and Pytest RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão This tutorial is a gentle guide to property-based testing. Property-based testing is a testing philosophy; a way of approaching testing that will bring you many benefits that other types of testing don’t give you. 使用持续分析提升 Python 性能 MARTIN HEINZ Learn how to use Grafana Phlare and continuous profiling to discover bottlenecks in you code and boost the performance of your Python applications CircleCI 安全事件:轮换你的密钥 TECHCRUNCH.COM CircleCI says hackers stole encryption keys and customers’ secrets. 探讨/吐糟 Discussions ...

2023-01-25 · 4 min · 1759 words · ZoomQuiet

PyCoder 560

PEP 703:将GIL变成一个开关选项 原文: PyCoder’s Weekly - Issue #560 230118 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 230118 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PEP 703: 在 CPython 中使 GIL 可选 PYTHON.ORG This PEP proposes changes to the CPython build process that would allow you to build a GIL-less interpreter. This kind of interpreter would not be ABI compatible with the GIL-based one, and the programmer would become responsible for some locking situations in C-extensions. If implemented, this would lead the way to being able to operate without the GIL in cases where backward compatibility issues are not important. (是也乎: 嗯哼? 就象 Rust 中的 unsafe ? ) Python 中的原型污染 ABDULRAHEEM KHALED Prototype pollution is a particular attack in JavaScript where the base Prototype object is modified having wide ranging effects. Unfortunately, similar things can be accomplished in Python by messing with class.base. Read on for details. (是也乎: Py 内部黑魔法, 如果不是撞上罕见问题一定要用这种解决方案, 一般没事别折腾… ) 从 2022 年最流行的 Python 教程和课程中学习 REAL PYTHON Revisit some of your favorite Real Python tutorials and video courses from 2022. It’s been a busy year, with new materials on topics ranging from the basics to web development, machine learning, effective coding environments, and more. (是也乎: 去年构建的最受欢迎的一系列结构化教程 ) Python 3.12.0 Alpha 4 发布 CPYTHON DEV BLOG 探讨/吐糟 Discussions ...

2023-01-18 · 4 min · 1988 words · ZoomQuiet