PyCoder 505

PyO3 ~ 被 Py 氧化的 Rust 原文: PyCoder’s Weekly - Issue #505 211229 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211229 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python Zip 导入: 快速分发模块和包 REAL PYTHON In this step-by-step tutorial, you’ll learn what Zip imports are and how to use them in Python. You’ll learn to create your own importable ZIP files and make them available for use. Finally, you’ll learn how to use the zipimport module to dynamically import code from ZIP files. (是也乎: 传统手工艺, 发布应用发行版 ) 用 Python 编写高速异步 HTTP 请求 JONLUCA DECARO Different formats and code snippets to make a large amount of network requests locally, with controls for rate limiting and error handling. Shortcut Provides Speedy Task Management, Reporting, and Collaboration for Software Teams Shortcut is project management built for developers. Whether you’re a startup that iterates quickly by providing every engineer with a free pallet of Red Bull, or a large org that has strict ship dates to hit, give us a try for free → SHORTCUTSPONSOR (是也乎: aiohttp 的硬广 ) 应该使用版本上限约束吗? HENRY SCHREINER • Shared by Henry Schreiner package>=7 vs package>=7,<8: Should you be adding upper bounds to dependency version constraints in Python packages? PEP 669: CPython 的低影响监控 PYTHON.ORG sing a profiler or debugger in CPython can have a severe impact on performance. Slowdowns by an order of magnitude are common. This PEP proposes an API for monitoring of Python programs running on CPython that will enable monitoring at low cost. 探讨/吐糟 Discussions ...

2021-12-29 · 4 min · 1780 words · ZoomQuiet

PyCoder 504

有 GC 的 LISP/436 字节 原文: PyCoder’s Weekly - Issue #504 211222 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211222 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 引发和处理 Python 异常 REAL PYTHON COURSE In this course, you’ll learn what an exception is and how it differs from a syntax error. You’ll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords. (是也乎: ) 带有 GC 的 LISP,436 字节 JUSTINE TUNNEY This one isn’t about Python specifically, but worth a read because it’s so mindblowingly cool: A LISP interpreter that’s tiny enough to fit in a 512-byte master boot record. (是也乎: 淦…是的, 这世界总是会被 LISP 重写一下.. ) 用 Poetry 嗯哼依赖管理 REAL PYTHON Learn how Poetry will help you start new projects, maintain existing ones, and master dependency management. (是也乎: 叕一则硬广… ) 2022 年 Python 指导委员会选举结果 PYTHON.ORG 探讨/吐糟 Discussions ...

2021-12-22 · 4 min · 1768 words · ZoomQuiet

PyCoder 503

RIP:effbot/Fredrik Lundh 原文: PyCoder’s Weekly - Issue #503 211215 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211215 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 特性小回顾 BRETT CANNON “To help those who wish for the ‘good old days’ of some older Python version, I thought I would write down a bunch of the major language features that were added in Python in reverse chronological order. Start from top and work your way down until you come across a feature you aren’t willing to give up. The Python version which has that feature is the version you would be okay going back to.” (是也乎: 这几年 Python 中追加的特性是过去30年追加的总合还要多吧? ) 在 Heroku 上托管您的 Django 项目 REAL PYTHON COURSE In this course, you’ll learn how to host your Django project in the cloud for free and with little hassle. You’ll use Heroku, which takes the burden of infrastructure management off your shoulders. (是也乎: Heroku 真良心, 俺5年前部署的应用, 一直免费低频使用中, 除了唤醒时, 要等一下, 其它时刻都正常, 要知道是 Py 2.7.10 的脚本… 只是, 本身是闭源的, 规模运行时效能真比不上其它公有云, 作为 练习平台足够了 ) PyPI 用户反馈总结 PYTHON SOFTWARE FOUNDATION “The PSF conducted a series of three surveys to identify key user requirements that have not been addressed so far. We used this round of surveys to engage with the PyPI community and understand ways to support community needs better. This post summarizes the feedback we have received and key decisions we have made based on the feedback.” (是也乎: 注意: 使用 blogspot 发布. ) Python 核心开发者 Fredrik “effbot” Lundh 去世 GUIDO VAN ROSSUM “Fredrik was an early Python contributor (e.g. Elementtree and the re module) and his enthusiasm for the language and community were inspiring for all who encountered him or his work. He spent countless hours on comp.lang.python answering questions from newbies and advanced users alike.” (是也乎: 呜呼: PIL 创始人走了, 这算是白发人送黑发人嘛? Guido 老爹专门邮件悼念. R.I.P ) pytest-7.0.0rc1 预发行版 已推出 PYTEST.ORG Python in Visual Studio Code – December 2021 Release SAVANNAH OSTROWSKI (是也乎: 是的, 对 Python 2.7 有专门支持 ) 探讨/吐糟 Discussions ...

2021-12-15 · 6 min · 2541 words · ZoomQuiet

PyCoder 502

CPython 3.10.1 发布 原文: PyCoder’s Weekly - Issue #502 211208 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211208 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Advent of Code: 用 Python 解决你的难题 REAL PYTHON Advent of Code is an online advent calendar that shares new programming puzzles each day from December 1st to the 25th. In this tutorial, you’ll learn why solving programming puzzles can be beneficial and how you can get started with Advent of Code using Python. (是也乎: ) 各种语言的错误信息风格指南 CARL FRIEDRICH BOLZ-TEREICK “PyPy has been trying to produce good SyntaxErrors and other errors for a long time. CPython has also made an enormous push to improve its SyntaxErrors in the last few releases. These improvements are great, but the process feels somewhat arbitrary sometimes. To see what other languages are doing, I asked people on Twitter whether they know of error message style guides for other programming languages.” (是也乎: PyPy 比 CPython 更加关注这事儿 ) Python 中的二进制/字节和位运算符 REAL PYTHON COURSE In this course, you’ll learn how to use Python’s bitwise operators to manipulate individual bits of data at the most granular level. With the help of hands-on examples, you’ll see how you can apply bitmasks and overload bitwise operators to control binary data in your code. (是也乎: ) Django 4.0 发行说明 DJANGO SOFTWARE FOUNDATION New built-in RedisCache backend, forms are now rendered using the template engine to enhance customization, Python standard library’s zoneinfo is now the default timezone implementation. (是也乎: zoneinfo ? 不是 UTC ? ) A Message From the PSF’s Outgoing Executive Director PYTHON SOFTWARE FOUNDATION CPython 3.10.1 发布 CPYTHON DEV BLOG (是也乎: 从 2.X 到 3.X 用了10年, 看起来, 从 3.X 到 4.X 用不了5年… ) 探讨/吐糟 Discussions ...

2021-12-08 · 5 min · 2129 words · ZoomQuiet