什么是 Python 之禅?

原文: PyCoder's Weekly - Issue #581

pycoder

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

In this tutorial, you’ll be exploring the Zen of Python, a collection of nineteen guiding principles for writing idiomatic Python. You’ll find out how they originated and whether you should follow them. Along the way, you’ll uncover several inside jokes associated with this humorous poem.

The Jupyter contributor community have announced JupyterLab 4.0. This blog post shows you some of the new features, including: performance improvements, editor upgrades, better search, and more.

The Game Boy Color version of Legend of Zelda: Oracle of Ages contains a grid-based puzzle. Gaz writes about creating a brute force program to solve the challenge using Python.

(是也乎:

WoW ... 这样一来, 气势不就有了?

)

(是也乎:

IOCCC 的戏仿大赛;

IOPCC ~ International Obfuscated Python Code Competition

国际混乱Python代码大赛, 就比谁能写出可以运行, 但是, 人无法看明白的代码;

)


探讨/吐糟

Discussions


文章/教程/嗯哼

Articles, Tutorials and Talks

Bret has been pondering a new keyword that would tackle some of the limitations of data classes while offering syntax improvement over named tuples. This is still in the “what if” stage, but he is willing to write up a PEP if he thinks it will get traction.

Django continues to add features to allow more and more asynchronous programming. This articles shows you how to use Django 4.2’s StreamingHttpResponse, Server-Sent Events, and PostgreSQL LISTEN/NOTIFY to build a chat application.

In part one of this two-part project, you’ll design your maze and represent it in an object-oriented way. You’ll also visualize the maze and its solution using scalable vector graphics (SVG).

(是也乎:

SVG

)

Jelmer has been working on porting some of his performance-constrained projects from Python to Rust. This blog post discusses how he’s approaching it and what is and isn’t working.

(是也乎:

一位 Haskell 粉丝推荐使用 PyO3 将 Py 模块向 crate 迁移, 不过, 发现很多 Py 特性很难简单的迁移到 Rust...

)

When working with time series data such as financial information, the resample, grouping, and rolling features of Pandas can make your life easier. Read on to learn how.

These are all the options you have in Python for running other processes - the bad; the good; and most importantly, the right way to do it

(是也乎:

...但如果您需要将太多其他程序/命令串在一起,也许,也许您应该只编写 shell 脚本

扎心了, 不过, 的确如此, 否则, shell 没有存在的必要了...

)

For those accounts that have two-factor authentication turned on for PyPI uploads, the use of 2FA is now required. Users with 2FA who were only using their password in the past will now have to perform 2FA as well. This is all part of the transition of PyPI to 2FA across the board.

(是也乎:

面对巨婴们...

)

With a little understanding of how CPUs and compilers work, you can speed up NumPy using Numba, the just-in-time compiler.

(是也乎:

所以, CPU 还是比 GPU 强?

)

This guide will help you learn how to secure a Flask web application using token-based authentication.

(是也乎:

可惜不是 Flask 能力认证, 如果一个项目发展到可以颁发全网认可的能力认证书时...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

官方 tracback 的强化外挂

)

(是也乎:

llm 这么好的名字就这么被占住了?

)

(是也乎:

基于这书: Documenting Architecture Decisions 构建的对应工具;

)


📆🐍 活动/大会

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

(是也乎:

非洲 莫桑比克 的 Xai-Xai, 还以为是中国哪儿...

)


历史上的这周


DAMA

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

      _~-*`~_
  () /  ◶ #  \ ()
    '_   ∧   _'
    \ '--⌄--' /

...act by ferris-actor v0.2.4 (built on 23.0303.201916)

PS:

Happy Pythoning!

Copyright © 2023 PyCoder’s Weekly, All rights reserved.

PPS:

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

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

问为什么:

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

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

所以++> 锈周刊 -> Weekly :: China


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->