Best of PyCoder's 2022

原文: PyCoder's Weekly - Issue #557

pycoder

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

It is that time of year again, everybody is making lists. Hopefully you weren’t on the “naughty” one. 2022 has seen a lot of change in tech, from the release of Python 3.11 to the sudden serge in Mastodon use, the world of Python has been busy.

本周时事通讯汇集了 2022 年最受欢迎的文章和项目; 也许你错过了其中哪篇,现在你值得有更多时间深入阅读.

Here’s to you, dear reader. Thanks for continuing to be with us at PyCoder’s Weekly. I’m sure 2023 will be just as wild. Speaking of 2023, if you come across something cool next year, an article or a project you think deserves some notice, send it to us and it might end up in a future issue.

Happy Pythoning!

— The PyCoder’s Weekly Team
    Christopher Trudeau, Curator
    Dan Bader, Editor

Python 3.11 is out! In this article, 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.

(是也乎:

3.11

)

Learn about the lesser-known features of Python’s f-strings, including date formatting, variable debugging, nested f-strings, and conditional formatting.

(是也乎:

和当初看到文章感觉一样,再好也别贫杯...

)

It’s time to say goodbye to os.path, random, pytz, namedtuple and many more obsolete Python libraries. Start using the latest and greatest ones instead.

Learn how list and tuple are similar and how they are different, including storage and speed differences and how to choose between them.

How to write user-friendly Command Line Interface applications and an overview of several of the popular CLI libraries: argparse, Click, Typer, Docopt, and Fire.

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, 但是,思路是相似的...何况 CPython 原先就留有很多余地...

)

Ever use list() or enumerate()? Think of them as functions? They’re not, they’re classes. Sometimes we call classes functions in Python. Why? And what’s a “callable”?

Loading complete JSON files into Python can use too much memory, leading to slowness or crashes. The solution: process JSON data one chunk at a time.

(是也乎:

分而制之...

)

Double-underscore methods, also known as “dunder methods” or “magic methods” are an ugly way of bringing beauty to your code. Learn about constructors, repr, str, operator overloading, and getting your classes working with Python functions like len().

In this tutorial, you’ll learn about PyScript, a new framework that allows for running Python in the web browser with few or no code modifications and excellent performance. You’ll leverage browser APIs and JavaScript libraries to build rich, highly interactive web applications with Python.

(是也乎:

PyScript )

It’s not as difficult as you think to build an AI program that listens to speech and answers questions. You can make the magic happen in an afternoon by leveraging a few Python packages and APIs.

(是也乎:

小扎,很早就自己在家折腾出了一个类似的

)

Cleaner code is more focused, easier to read, easier to debug, and generally easier to maintain. This guide covers ten different patterns Python programmers should apply in their code.

Cython is a superset of of Python designed to give C-like performance. Ever wanted to learn the basics? This article shows you how to get started.

(是也乎:

问题在 Cython 和 CPython 世界没办法直接相通...

)


探讨/吐糟

Discussions

NIL


文章/教程/嗯哼

Articles, Tutorials and Talks

NIL


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

永远的经典热点...

)

(是也乎:

嗯哼?介绍过好象... 这是工业级成人 Scratch ?

)

(是也乎:

理由总是正义的:Why not?!

)

(是也乎:

在手机变成人体外挂的年代, 真正工作时,还是终端看的最多... )


📆🐍 活动/大会

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


DAMA

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


PS:

PPS:

不觉中蟒周刊快译已经到了第11个年头

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

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

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


好文笔,感叹号年度配额: 2/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
-->