PyCon US 2023 开始召唤议题

原文: PyCoder's Weekly - Issue #549

pycoder

  • 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.

(是也乎:

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中国 刚刚开始主题召唤...

)


探讨/吐糟

Discussions

(是也乎:

先有吐糟说常用库不支持了... 然后: 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.

(是也乎:

New

网课的鮗不修养=>跟热点

毕竟学习冲动不是那么简单可以撞上的

)

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.

(是也乎:

Factor

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 之旅?

)

(是也乎:

reals

这个工程量其实不小...

)


📆🐍 活动/大会

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

(是也乎:

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

)


DAMA

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


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


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


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


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->