Python 3.11 超COOL特性

原文: PyCoder's Weekly - Issue #548

pycoder

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

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

)

In data import processes it’s often useful to have a “dry run” mode that runs through the process but doesn’t actually save the data. This can allow you to check for validity and gather statistics, such as how many records already exist in the database. This post looks at how to implement a dry run mode in Django using database transactions.

(是也乎:

Dry Run Mode

作者是位多产程序猿, 专门为网站选择了颜色Colophon 非常 OREILLY ;-)

)

Does your company have a plan for growing an internal Python community? What are the attributes to look for when bringing someone into your department? This week on the show, Pablo Galindo Salgado returns to talk about building community through the Python Guild at Bloomberg and managing the release of Python 3.11.

(是也乎:

3.11

)

This guide is part of a multi-language document describing how to write security conscious code. Check out the recommendations for Python from the Fedora Project.

(是也乎:

嗯哼? Pythonic 流派不是应该不折腾这种风格的?

)


探讨/吐糟

Discussions

(是也乎:

老梗了...

原先说一样的, 但是, 其它语言都玩儿出花了... Python 也就开始了...

)

(是也乎:

还是得看对应产品... 隔壁不刚刚报道了? 一个公司一个人, 每年收入一个亿...

)

Hired has 1000s of companies, from startups to Fortune 500s, who are hiring developers, data scientists, mobile engineers, and more. Create a profile with your skills and preferences for hiring managers to reach you directly. Sign up today!

(是也乎:

这则赞助广告对比上则吐糟, 简直了...

)


文章/教程/嗯哼

Articles, Tutorials and Talks

In this step-by-step tutorial, you’ll build a universal game engine in Python with tic-tac-toe rules and two computer players, including an unbeatable AI player using the minimax algorithm. You’ll also create a text-based graphical front end for your library and explore two alternative front ends.

(是也乎:

原来这叫 Tic-Tac-Toe

)

If you’re coming from other programming languages, your approach to loops may not be idiomatic. This article covers five techniques to write more Pythonic loops, including examples for range(), zip(), reversed(), enumerate(), and sorted().

(是也乎:

还是名称问题哪...

5个经典近代函式, 经常视而不见...

)

Setting up Matplotlib coordinates and X and Y axes can be tricky. This article walks you through plotting both linear and nonlinear functions, allowing you to create graphs in Python the way you might in a graphing calculator.

In this video course, you’ll learn the math that you’ll need for your Python programming journey. This includes integers and floating-point numbers, arithmetic operators, and string formatting for numbers.

(是也乎:

Numbers

)

Using python -m you can do all sorts of things from the command line, including: starting a webserver, opening a browser, parsing JSON, compressing files and much more.

(是也乎:

越来越多 CLI 工具可以用 Python 统一替代 甚至于, 这些技巧, 早已融合到 Python 开发终端中了... 问题在...资源撑得住这么玩嘛?

)

Linting checks your code for errors before you run it. This hands-on article explores how to perform quick linting checks in Python using Pylint.

(是也乎:

作为动态语言, 可能代码规范带来的收益, 并没比起好一系列变量名来的多...

)

With clever use of some of the Unicode border characters you can build a better box around your text without any color bleeding.

(是也乎:

为什么画盒子这么重要? 毕竟这是一切的基础...

Textualize/textual: Textual is a TUI (Text User Interface) framework for Python inspired by modern web development. 软广...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

AI 为什么要可解释?

)

(是也乎:

海量阅读优秀项目的代码, 也是种关键自学好习惯...

)


📆🐍 活动/大会

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



自怼圈/年度番新

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

订阅 substack 体验古早写作:


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


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

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