pythonista-weekly : Pyw 524

欢迎阅读《pythonista周刊》第524期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-524 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Cheat sheet: 9 Python security best practices Most Python frameworks like Django have debugging switched on by default. Set DEBUG = False in production to prevent information leaks, plus learn 8 more tips in the Python security cheat sheet. ...

2021-11-06 · 3 min · 1391 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

pythonista-weekly : Pyw 523

欢迎阅读《pythonista周刊》第523期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-523 翻译:Dustyposa 新闻 PyCon US 2022 Call for Proposals is open! PyCon US 2022 的提案征集已经正式开始,包括讲座、教程、海报和 Charlas。我们需要各种主题的初级、中级和高级提案。 ...

2021-10-29 · 4 min · 1728 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