CPython 3.10.1 发布

原文: PyCoder's Weekly - Issue #502

pycoder

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

Advent of Code is an online advent calendar that shares new programming puzzles each day from December 1st to the 25th. In this tutorial, you’ll learn why solving programming puzzles can be beneficial and how you can get started with Advent of Code using Python.

(是也乎:

Puzzles

)

“PyPy has been trying to produce good SyntaxErrors and other errors for a long time. CPython has also made an enormous push to improve its SyntaxErrors in the last few releases. These improvements are great, but the process feels somewhat arbitrary sometimes. To see what other languages are doing, I asked people on Twitter whether they know of error message style guides for other programming languages.”

(是也乎:

PyPy 比 CPython 更加关注这事儿

)

In this course, you’ll learn how to use Python’s bitwise operators to manipulate individual bits of data at the most granular level. With the help of hands-on examples, you’ll see how you can apply bitmasks and overload bitwise operators to control binary data in your code.

(是也乎:

Bitwise

)

New built-in RedisCache backend, forms are now rendered using the template engine to enhance customization, Python standard library’s zoneinfo is now the default timezone implementation.

(是也乎:

zoneinfo ? 不是 UTC ?

)

(是也乎:

从 2.X 到 3.X 用了10年, 看起来, 从 3.X 到 4.X 用不了5年...

)


探讨/吐糟

Discussions

(是也乎:

简直就是 LISP/Elixir 的日常..

def swap_words(s, x, y):
    return y.join(part.replace(y, x) for part in s.split(x))

)

(是也乎:

可能就是到哪儿, 都想上 PyENV...

...You aren't gonna need it - Wikipedia

)

(是也乎:

mailman/MoinMoin/... YYdS

)


文章/教程/嗯哼

Articles, Tutorials and Talks

The pprint module, Python’s data pretty printer, is a useful part of the standard library. You can work with it for debugging data structures and increasing the readability of your output. In this tutorial, you’ll find that pprint is both straightforward to use and also highly customizable.

(是也乎:

虽然只是给程序猿看, 但是, 程序猿也是人, 值得越来越优美的对待...

Prettify

)

“The story of Jython begins one summer in Ashland, Oregon. I was juggling in a park behind a theater when I met Pavel Curtis, a scientist at Xerox PARC, who wanted to pass clubs. While we were juggling together he told me about a wonderful new programming language called Python. Writing code in Python felt like writing the sort of natural informal code that developers would use when they wanted to quickly share ideas. It was executable pseudo-code.”

(是也乎:

这不是悲伤故事, 只是无奈... 其实在 04年就尝试用 Jython 开发坦克大战游戏的;

果然还是硕士作品, 果然还是有 SUN 的身影...

)

There seem to be three kinds of Python developers: those unaware of type hints or have no opinion, ones that embrace them, and others who have an allergic reaction at the mention of them. Python is famously a dynamically typed language, but there are advantages to adding type hints to your code. This week on the show, it’s Luciano Ramalho discussing his recent talk titled, “Type hints, protocols, and good sense.”

(是也乎:

Ducks

鸭子/海象/... Python 吞食的动物越来越多...

)

“I was relaxing on a beach during my summer leave when I received a mail from a reader that asked me if it is technically possible to write a virus using Python. The short answer: YES. The longer answer: yes, BUT…”

(是也乎:

不是, 好吧, 这的确要高级技巧...

而且最大渠道就是 PyPI...

)

“These are some of the lessons I’ve learned on how to package rudimentary Python scripts into simple Windows GUIs for your […] coworkers to use.”

(是也乎:

两年前的分享了... )

Flamegraphs are a great way to visualize performance and memory bottlenecks, but with a little tweaking, you can make them even more useful.

(是也乎:

火焰图的萌化...

)

(是也乎:

None/null/NIL/...

零值一直是个问题

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

Emace 和 Vim 宇宙中发生点儿什么都不奇怪...

)

(是也乎:

$ pip-audit
Found 2 known vulnerabilities in 1 packages
Name  Version ID             Fix Versions
----  ------- -------------- ------------
Flask 0.5     PYSEC-2019-179 1.0
Flask 0.5     PYSEC-2018-66  0.12.3

)

(是也乎:

果然, 因为金融领域 Pythoneer 越来越多, 所以,,,

)

(是也乎:

等等, 这不是有专用库的...?

)

(是也乎:

latexrun

转换机制... LaTeX 原本只是为写一本书, 而创建的排版语言, 现在变成了最高段位的独立出版工具集...

)

(是也乎:

叕一个包版本依赖管理工具...

)


📆🐍 活动/大会

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

(是也乎:

Pythonic 工程师, 当年俺用 Pythoneers 这词儿时, 都以为是个错写...

)


DAMA

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

(是也乎:

老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:

Bilibili

)


PS:

PPS:

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

去年开始有小伙伴加入承担 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
-->