PyCon US 2023 开始召唤议题

原文: PyCoder's Weekly - Issue #549


  • 221102 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
  • 221102 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

In this tutorial you’ll learn about the best ways to get the first match from a Python list or iterable. You’ll look into two different strategies, for loops and generators, and compare their performance. Then you’ll end up by creating a reusable function for all your first matching needs.


First )

Pillow is great for doing image resizing, adding borders or composing. This makes it a natural fit for creating tools for memes and infographics. This step-by-step article shows you what Pillow code you need to write to turn any image into a meme.





Python 3.11 has been released, when should you switch to using it? This posting covers the complications you can run into when moving to the latest release of any Python and how to know when it is best for you to upgrade.


很明显 Py 3.12.1 发布时



PyCon22中国 刚刚开始主题召唤...





先有吐糟说常用库不支持了... 然后: TOML as first class citizen,...

看来老爹回聘入 M$ 对 TOML 的江湖地位有极其重要的影响?



和 Python 1.3/2.7 相比呢?



Articles, Tutorials and Talks

Caching can make a big difference in the performance of your application. This blog post describes how to apply caching to a Django project and what the benefits are. It is part 4 in a series with entries on Django performance improvement for the database, your code, and your front-end.

In this video course, you’ll explore what Python 3.11 brings to the table. You’ll learn how Python 3.11 is the fastest and most user-friendly version of CPython yet, and learn about improvements to the typing system and to the asynchronous features of Python.






Python has no syntax to add type hints to lambdas, but that doesn’t mean you can’t use them in type-checked code. This post looks at how mypy can infer the types for lambdas, based on where they’re used.




The Twelve-Factor App methodology is a methodology for building software-as-a-service applications by Adam Wiggins. This article covers how it has evolved and what you can learn from it today.



SaaS 没这么简单,只能一步步进化过来...

The Twelve-Factor App (简体中文) 嗯哼? 居然已经翻译好了


Get started with Logging in Python or deploy advanced, flexible loggers without the boiler-plate code. Learn all about log2d, a third-party wrapper for the Python logging library.


S3 logging ?

log_success = Log("success", to_file=True)
log_success("log2d for the win!")
Log.success.critical("Alert! Alert!")

(Creates and updates ./success.log)

WoW 这真的就是一直想要的 logging.


This posting contains a recap of PyCon US 2022 along with links to their YouTube channel containing many of the talks from the conference.


BLOGSPOT.COM -> 当年第一个国际 blog 平台, 没想到这么多年过去了居然和 googlegroups 一样, 还没被 google 单方删除.


Starlette is a relatively new entrant to the world of Python web frameworks. This blog post talks about how you can set up (and test) a WebSocket backend using Starlette.


눈_눈? 好象是那个当年输给 FastAPI 的 SCGI 框架?


The article discusses whether or not to use custom exceptions in Python development. It shows how to create custom exceptions and when they can be useful.


当前是 Yes & NOT;

如果在特殊场景中,使用自制拓展加强的微型DSL可以提高生产效能,当然值得上; 不过一但上了,对应程序猿提桶跑路可就惨了...



Interesting Projects, Tools and Libraries, Projects & Code


和 Python 的关系, 如同 Scheme 和 Common Lisp...

所以,是对 Py3 以来越来越复杂的形式,叕开始了逆变?

不过,形式上, 的确没有哪个语言更加象 LISP 了.



from inline_sql import sql, sql_val

assert sql_val^ "SELECT 1 + 1" == 2

x = 5
assert sql_val^ "SELECT $x * 2" == 10

df = sql^ "SELECT * FROM (VALUES (1, 10), (2, 20)) df (x, y)"
assert sql_val^ "SELECT SUM(x) + SUM(y) FROM df" == 33

嗯哼? DBA 的 Python 之旅?






📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心


当年好看薄创始人移民过去, 应该也会参加...



❤️ Happy Pythonic ;-(大妈私人无责任播报)




开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...


[皱眉]每周新闻资讯 怎么能错过 
    what f**k 还能这样玩? 还有这东西?

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.

好文笔,感叹号年度配额: 1/3


(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)



关于 ~ DebugUself with DAMA ;-)
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:

关注公众号, 持续获得相关各种嗯哼:


**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 扫描预约入群, 学员每满 42 人即启动新一期训练营 ;-)
  • 101camp22.7
  • + 任何问题, 随时邮件提问可也: