PyCoder 499

OLPC 编程教育方面的遗产 原文: PyCoder’s Weekly - Issue #499 211117 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211117 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PSF 正寻求下一位执行董事 PYTHON SOFTWARE FOUNDATION After announcing earlier this summer that Ewa Jodlowska is leaving after ten years of service, the PSF has begun its search for the organization’s next Executive Director. Interested? You can apply here. 选择编程语言总是会被过早优化 BRETT CANNON opinion “Have you ever been told that Python couldn’t be used for a project because it wouldn’t be fast enough? I have, and I find it a bit frustrating as big banks, YouTube, Instagram, and plenty of other places that are performance-sensitive still manage to select Python and be happy.” (是也乎: 在没深入理解前, 被市井传说忽悠是必然; 当年从 PHP 转入 Python 也纯粹因为 Plone, 进来才发现, Python 的世界远大于 CMS ) Python 开发者的高级 VSCode REAL PYTHON In this tutorial, you’ll learn how you can configure, extend, and optimize Visual Studio Code for a more effective and productive Python development environment. By digging into this customizable code editor and IDE, you’ll put yourself on track to be a VS Code power user. (是也乎: 嗯哼, 现在只想关闭自动提醒… ) 用 Gunicorn/Nginx 和 HTTPS 安全部署 Django 应用 REAL PYTHON Ready to take your Django app beyond development? Learn how to securely deploy your Django web app in production over HTTPS with Gunicorn and Nginx. Along the way, you’ll explore how HTTP headers can fortify your app’s security. (是也乎: 其实, 一直以来关键问题都是 SSL 证书的生成和管理. ) Python 列表数据结构如何真正有效 ANTON ZHIYANOV • Shared by Anton Zhiyanov This article explores the nuts and bolts of Python list operations, their time complexity, and underlying data structures. (是也乎: 经典老书: 源代码鉴赏 可刷 ) Django Bugfix 发布: 3.2.9 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions NIL ...

2021-11-17 · 4 min · 1792 words · ZoomQuiet

PyCoder 498

和 Guido 一起讨论加速 Python 原文: PyCoder’s Weekly - Issue #498 211111 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211111 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 银行 Python 的口述历史 CAL PATERSON Interesting read about the strange world of Python, as used by big investment banks: “Bank Python implementations are effectively proprietary forks of the entire Python ecosystem which are in use at many (but not all) of the biggest investment banks.” CPython Developer 每周报告, November 1–7 ŁUKASZ LANGA “Python 3.9.8 got released this week! At this point in the 3.9 lifecycle this should be a relatively uneventful release. Instead, it took us a few days of work to get it out of the door. I still managed to squeeze in 51 closed PRs and even organized a meeting between the core developers and Daan Leijen, the author of mimalloc.” 用 Python 和 typer 构建 CLI-TODO 应用程序 REAL PYTHON Follow along this step-by-step project to create a to-do application for your command line using Python and Typer. While you build this app, you’ll learn the basics of Typer, a modern and versatile library for building command-line interfaces (CLI). (是也乎: Typer ~ CLI 版 FastAPI, 值得享用. ) Python 软件基金会: 2021 年度筹款结束 PYTHON SOFTWARE FOUNDATION “The PSF launched its end-of-the-year fundraiser. There are two ways to donate: 1. donate directly to the PSF or 2. purchase a discounted PyCharm license, with all proceeds going to the PSF. Contributing to the PSF financially helps sustain programs that support the larger Python community.” Python 3.9.8 and 3.11.0a2 可用ed CPYTHON DEV BLOG 探讨/吐糟 Discussions ...

2021-11-11 · 4 min · 2001 words · ZoomQuiet

PyCoder 497

zipapp 值得认真用卟? 原文: PyCoder’s Weekly - Issue #497 211103 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211103 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 并发可行性解决方案 JONATHAN CORBET “The end result thus appears to be a GIL-removal effort that has a rather better-than-average chance of making it into the CPython interpreter. That would be cause for a lot of rejoicing among Python developers. That said, a change this fundamental is unlikely to be rushed into the CPython mainline; it will take a lot of testing to convince the community that it is ready for production use.” (是也乎: COOL, 不过, 等等, 为什么一定要可视化? ) Django 模板: 对 Tags and Filters 实施习惯 REAL PYTHON Django templates have many built-in tags and filters to render content, but they may not meet all your needs. This tutorial covers how to write Django custom template tags and filters, including simple tags, inclusion tags, block tags, and different types of filters. (是也乎: ) Python’s zipapp 模块: 构建可执行的ZIP应用程序 REAL PYTHON In this step-by-step tutorial, you’ll learn what Python Zip applications are and how to create them quickly using the zipapp module from the standard library. You’ll also learn some alternative tools you can use to build this kind of application manually. (是也乎: 万千 VB 程序猿 最爱的 Python 模块了 ) Infix 运算符 (Python 配方) ACTIVESTATE.COM Python has the in operator and it would be nice to have additional infix operator like this. This recipe shows how (almost) arbitrary infix operators can be defined in vanilla Python: x |op| y or x «op» y (是也乎: ACTIVESTATE 公司免费公开运营几十年的 Recipe 应该是最早最成功的贴吧以及QA 社区了 ) PSF 社区服务奖项提名 PYTHON.ORG Do you know of a deserving individual who should be considered for a PSF Community Service Award? The PSF is accepting nominations for the Q4 2021 Community Service Award. 探讨/吐糟 Discussions ...

2021-11-03 · 4 min · 1768 words · ZoomQuiet

PyCoder 496

Django 4.0 Beta 1 发布 原文: PyCoder’s Weekly - Issue #496 211027 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211027 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 惯用型 REAL PYTHON course What are the programming idioms unique to Python? This course is a short overview for people coming from other languages and an introduction for beginners to the idiomatic practices within Python. You’ll cover truth values, looping, DRY principles, and the Zen of Python. (是也乎: 虽说, Python 是多范式语言, 用什么习惯来撰写 Python 代码都可以, 不过, 最好还是用 Pythonic 形式来. ) 从 Python GIL 删除 Python Core 和 Sam 粗略的注意事项 ŁUKASZ LANGA “During the annual Python core development sprint we held a meeting with Sam Gross, the author of nogil, a fork of Python 3.9 that removes the GIL. This is a non-linear summary of the meeting.” Analyze Code-Level Application Performance Across Your Entire Environment With Datadog APM DATADOG sponsor Datadog’s distributed tracing and APM generates flame graphs from real requests, enabling you to visualize app performance and pinpoint hard-to-reproduce problems in your production code. Without switching tools, you can pivot to related logs and metrics for full context. Try Datadog APM free → PEP 660: 基于 PyProject.Toml 的版本可编辑安装 (Wheel Based) PYTHON.ORG “Now that PEP 517 provides a mechanism to create alternatives to setuptools, and decouple installation front ends from build backends, we need a new mechanism to install packages in editable mode.” (是也乎: .ini .py .ymal … 现在是 .toml 都是 SGML 的徒子徒孙… ) Django 4.0 Beta 1 发布 DJANGO SOFTWARE FOUNDATION Check out the work-in-progress development release notes for more details. (是也乎: 还好 Django 没学 Chrome, 否则, 今天至少是 v104 了 ) PyCon US 2022: 会议网站上线 PYCON.ORG PyCon US 2022 takes place in Salt Lake City, Utah from April 27, 2022 to May 5, 2022. Vicky Twomey-Lee 获得 2021Q3 PSF社区服务奖 PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-10-27 · 4 min · 1749 words · ZoomQuiet