是什么令 Py3.11 加速这么猛? ~ 用真心
原文: PyCoder's Weekly - Issue #550
- 221109 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
- 221109 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
- Python 3.11 究竟从哪儿获得了加速?
- BESHR KAYALI
This deep dive into Python 3.11’s speed-up walks you through nine different optimizations that contribute to the 25% performance improvement in CPython.
- Python 基础: 作用域
- REAL PYTHON COURSE
In this video course, you’ll learn what scope is and why it’s important to coding functions and loops in Python. You’ll also get to know the LEGB rule.
(是也乎:
好象有个什么口决来判定的...--> LEGB rule
)
- Python 中的 Google API 入门
- MARTIN HEINZ
- • Shared by Martin Heinz
A crash course in using Python and Google APIs to automate all the things you do with Gmail, Google Drive, Calendar, or any other Google API
(是也乎:
什么是 Google ?
)
-
- PRETALX.COM
-
- DJANGO SOFTWARE FOUNDATION
-
- PYTORCH.ORG
-
- PYCHAIN.ORG
探讨/吐糟
Discussions
-
- PYTHON.ORG
-
- GOOGLE.COM
(是也乎:
等等,难道期望包含语法错误的代码不停止?
)
文章/教程/嗯哼
Articles, Tutorials and Talks
- 更多可疑的 PyPI 包
- PHYLUM.IO
Researchers at Phylum have come across over a dozen new malicious uploads to PyPI. Many of them are copy-pasted versions of legitimate packages that have been renamed and had malicious code inserted. This detailed article shows some of the tactics used by the black-hats.
(是也乎:
其实吧,嘦 PyPI 包历史超过5年以上的, 才可以放心安装就好...
)
- 用 Strawberry 向 Starlette 添加 GraphQL API
- GENIEPY.COM
- • Shared by Siddhant Goel
GraphQL has become the de facto standard for servers to offer APIs to clients, due to the flexibility it offers. This article talks about how you can build a GraphQL API in a Starlette application using Strawberry, a new GraphQL library inspired by dataclasses.
LB is a core team member of the open source project Wagtail, and as such has a lot of experience dealing with community contributions. This article talks about how to be a good contributor whether for your next OSS PR or within your own organization.
(是也乎:
到现在见到 Delicious , 第一反应还是 De.licio.us 社区效其实就反应在这些细节的共识深度上, 也就是说, 社区参与者多少时间才能达到 90% 以上关键协作行为一致
)
- Web 自动化: 不要使用 Selenium 上 Playwright
- SHANTNU TIWARI
Playwright is an open source alternative to Selenium created by Microsoft. It includes click-and-record functionality that directly generates a Python script. Read on for why Shantnu recommends it.
(是也乎:
天下苦硒久矣... 等等, microsoft 的作品? 好吧, 没事儿了.
)
- 应该更新到最新的 Python 修正版本吗?
- REAL PYTHON
What’s the significance of the third digit in a Python version number? In this tutorial, you’ll learn more about Python bugfix versions and whether you need to care about them.
(是也乎:
很明显,生产中别这么来, 日常学习/探索中, 值得提前体验各种最新近嗯哼
)
- “无效语法”的含义
- TREY HUNNER
Python’s “invalid syntax” error message comes up often, especially when you’re first learning Python. What usually causes this error and how can you fix it?
- 在 Mac 上将 Python 3 变为默认配置的正确和错误方法
- BROBERG & ZADKA
“There are several ways to get started with Python 3 on macOS, but one way is better than the others.” Learn the approaches and which you should choose.
(是也乎:
简单的说, 别折腾, 那么多虚拟环境的办法了, 别搞乱系统运行时.
毕竟原先就已经够乱了
)
- Python Web 应用程序的缓存技巧
- CHARLES LEIFER
This brief article shows you how to use context managers to provide caching tools information on how long items should stay in memory.
(是也乎:
其实吧,服务端足够强, 可以不折腾这种东西的
)
- Pandas 中的方法链: 糟糕的形式还是成功的秘诀?
- DAVID AMOS
- • Shared by David Amos
Python trainer Matt Harrison has been creating a bit of a stir. Some of his pandas examples have elicited criticism from different folks in the Twitterverse. Dave Amos interviews Matt to discuss the pros and cons of his approach.
(是也乎:
用的多了,才能发现这其中的苦...
)
好物/妙品/...
Interesting Projects, Tools and Libraries, Projects & Code
- 可视化 CPython 3.11 的专业化、自适应解释器
- GITHUB.COM/BRANDTBUCHER
(是也乎:
其实吧,这种实时提示的工具, 本质上都是在抢占工程师的实时注意力, 就象 Word 总是将角色意识进行强行扭曲, 对进入 Flow 状态是毒.
)
- 用于在项目之间共享代码的 Poetry 插件
- GITHUB.COM/DAVIDVUJIC
- • Shared by David Vujic
(是也乎:
非常象当年 DreamWave 中定义公共组件,然后在多个网页中复用的过程了, 通过 poetry 对依赖树的管理, 进行拟定模块的跨项目复制...
)
-
python-fido2: 通过 USB 与 FIDO 设备通信
- YUBICO.COM
-
PyWeb3D: 用 Python 语法探索 three.js
- GITHUB.COM/BRUNO-ODINUKWEZE
-
File-Injector: 使用 Steganography 将任何文件存储在图像中
- GITHUB.COM/CARLOSPUENTEG
(是也乎:
撞上微信这种自动压缩的环境不就囧了?
)
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
-
- November 9, 2022
-
- November 9, 2022
-
Weekly Real Python Office Hours Q&A (Virtual)
- November 9, 2022
-
- November 12 to November 14, 2022
-
- November 15 to November 16, 2022
(是也乎:
还以为是 PyChina2022 ...
)
DAMA
❤️ Happy Pythonic ;-(
大妈私人无责任播报
)
- Zoom.Quiet’s Chaos42 | Substack
- 古早:新闻组式写作
- 欢迎订阅
PS:
PPS:
不觉中蟒周刊快译已经到了第11个年头
开始有小伙伴加入承担 pythonisa
周刊的翻译,
从来没提醒过, 可就这么默默坚持下来了...
问为什么:
[皱眉]每周新闻资讯 怎么能错过
看看有什么新东西
当有新的发现时:
what f**k 还能这样玩? 还有这东西?
每周开彩蛋[吃瓜]
无法同意更多
...
很多社区贡献看起来辛苦,
其实受益最多的,
就是主动承担者也.
好文笔,感叹号年度配额: 1/3
投稿/反馈邮箱:
askdama@googlegroups.com
(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)
ZoomQuiet/大妈
就是四处 是也乎,( ̄▽ ̄)
的那个大妈:
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
PyChina (订阅号: PyChinaOrg)
本地社区:
GDG珠海 (订阅号: GDG-ZhuHai)
TFUG珠海 (订阅号: ZH_TFUG)
Comments