21 年 Django 开发者调查结果
原文: PyCoder's Weekly - Issue #506
- 220105 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
- 220105 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
- Gem: 探索式字符串替代
- NED BATCHELDER
Here’s a Python gem: a small bit of Python that uses the power of the language and standard library well. It’s a function to list strings generated by a pattern with embedded alternatives. It takes an input string with brace-wrapped possibilities, and generates all the strings made from making choices among them: explode("{Alice,Bob} ate a {banana,donut}.")
(是也乎:
不是, 这项目名儿, 蹭 Ruby 的?
)
- 用 Django 构建社交网络 - 第 1 部分
- REAL PYTHON
In this four-part tutorial series, you’ll build a social network with Django to showcase in your portfolio. You’ll learn about relationships between Django models and how to use forms so that users can interact with your app. You’ll also make your site look good by using the Bulma CSS framework.
(是也乎:
这插图有点儿马虎了
)
- 通过构建自己的 Linter 来学习 Python ASTs
- TUSHAR SADHWANI
- • Shared by Tushar Sadhwani
A guide to Abstract Syntax Trees in Python. They form the basis of a lot of tools we take for granted, like linters, code formatters and syntax highlighting. With this article you’ll get to learn about ASTs by building your own linter from scratch.
(是也乎:
不是, ASTs 折腾明白了, 第一作品不应该是 DSL 嘛?
)
-
- SETH MICHAEL LARSON
-
- DJANGO SOFTWARE FOUNDATION
(是也乎:
还有很多反直觉结果...
)
探讨/吐糟
Discussions
- Python vs C % (模/余数)运算符行为
- TWITTER.COM/ID_AA_CARMACK
In Python the % operator returns a number with the same sign as the second argument. C doesn’t actually have a “modulo” operator but a “remainder” operator, according to the C spec. Read the Hacker News discussion after the tweet for a full explanation.
- Python 3.10 和 3.9 线程调度的差异
- STACK OVERFLOW
“Unintended consequence of Mark Shannon’s change that refactors fast opcode dispatching […]”
(是也乎:
这么多年过去了, 为什么 灵魂追问, 总是发生在 SO 场景中?
)
文章/教程/嗯哼
Articles, Tutorials and Talks
- 您的 Python 代码是否容易受到日志注入的影响?
- ARIE BOVENBERG
- • Shared by Arie Bovenberg
Following the news on log4j lately, you may wonder if Python’s logging library is safe. After all, there is a potential for injection attacks where string formatting meets user input. Thankfully, Python’s logging isn’t vulnerable to remote code execution. Nonetheless it is still important to be careful with untrusted data. This article describes some common pitfalls, and how logging f-strings could—in certain situations—leave you vulnerable to other types of attacks.
(是也乎:
没被 logging 折腾过的程序猿不是好CTO
)
- 2021 Real Python 文章总结
- REAL PYTHON
- PODCAST
It’s been a year of change at Real Python! The Real Python team has written, edited, curated, illustrated, and produced a mountain of Python articles this year. We also added many new members to the team, updated the site’s features, and created new styles of tutorials and projects.
(是也乎:
)
- Python 类型提示: 如何处理可选导入
- ADAM JOHNSON
This post is not about importing typing.Optional, but instead imports that are themselves optional. Libraries often have optional dependencies, and the code should work whether or not the import is there.
(是也乎:
非常 O'REILLY 了.
)
- 解读 Python 的 Tracebacks
- TREY HUNNER
When exceptions go unhandled, Python prints a traceback. Tracebacks are read from the bottom upward. The last line describes what happened and lines above describe where it happened.
(是也乎:
基操了, 当初还很认真的想理解每一行, 现在拉到最后看一眼就知道哪儿的问题了...
)
- 工具的三个问题
- MOSHE ZADKA
A discussion of three problems with Python: “packaging, fractured tooling, crufty standard library”
(是也乎:
其它语言有可能工具问题是太少, 在 Python 一向是可选择的的工具太多以致...没时间写代码了.
而基础问题又一直没解决好; 只能说历史遗留...
打包/破碎的工具/粗糙的标准库
)
-
- DENNIS YURICHEV
-
Unravelling elif/else From if Statements
- BRETT CANNON
-
Unravelling finally and else From try Statements
- BRETT CANNON
(是也乎:
系列 逻辑 控制理解系列
以及... Unravelling decorators
)
- 用 Borb 从古腾堡计划创建电子书
- JORIS SCHELLEKENS
- • Shared by Joris Schellekens
(是也乎:
之前只说是发票工具 , 现在果断可以构造图书
)
好物/妙品/...
Interesting Projects, Tools and Libraries, Projects & Code
- numbers-parser: 用于解析 Apple 数字电子表格的 Python 模块
- GITHUB.COM/MASACCIO
(是也乎:
嗯哼? Python 之光终于开始照耀 MAC iWork 了?
)
- NetworkX: Python 中的网络分析
- NETWORKX.ORG
(是也乎:
老牌工具 Graphviz 基础上的绘制脚本, 可以支撑极大数量节点网络的绘制.
)
- python-minifier: 将 Python 源代码转换为最紧凑的表示
- GITHUB.COM/DFLOOK
- • Shared by Python Bytes FM
(是也乎:
压缩 Python 代码排版
这样不好不好
)
- emacspy: 用 Python 而不是 ELisp 编程 Emacs
- GITHUB.COM/ZIELMICHA
(是也乎:
上古神器/永无止境
)
- fastwsgi: 适用于 Python 3 的超快速 WSGI 服务器
- GITHUB.COM/JAMESROBERTS
(是也乎:
包含大量 C 代码..
)
- django-browser-reload: 在开发中自动重新加载浏览器
- ADAM JOHNSON
(是也乎:
关键看浏览器了...
)
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
-
- January 6, 2022
-
⋅ Sydney Python User Group (SyPy)
- January 6, 2022
-
- January 6, 2022
-
- January 8 to January 9, 2022
-
⋅ DFW Pythoneers 2nd Saturday Teaching Meeting
- January 8, 2022
-
- January 10, 2022
DAMA
❤️ Happy Pythonic ;-(
大妈私人无责任播报
)
- Zoom.Quiet’s Chaos42 | Substack
- 古早:新闻组式写作
- 欢迎订阅
- 沈崴的个人空间 - ( ゜- ゜)つロ 乾杯~ Bilibili
- 哔哩哔哩
(是也乎:
老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:
)
PS:
PPS:
不觉中蟒周刊快译已经到了第10个年头
去年开始有小伙伴加入承担 pythonisa
周刊的翻译,
从来没提醒过, 可就这么默默坚持下来了...
问为什么:
[皱眉]每周新闻资讯 怎么能错过
看看有什么新东西
当有新的发现时:
what f**k 还能这样玩? 还有这东西?
每周开彩蛋[吃瓜]
无法同意更多
...
很多社区贡献看起来辛苦,
其实受益最多的,
就是主动承担者也.
好文笔,感叹号年度配额: 3/3
投稿/反馈邮箱:
askdama@googlegroups.com
(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)
ZoomQuiet/大妈
就是四处 是也乎,( ̄▽ ̄)
的那个大妈:
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
PyChina (订阅号: PyChinaOrg)
本地社区:
GDG珠海 (订阅号: GDG-ZhuHai)
TFUG珠海 (订阅号: ZH_TFUG)
Comments