原文: PyCoder's Weekly - Issue #586


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

In part two of this two-part project, you’ll define a specialized binary file format to store a maze on disk, transform the maze into a traversable weighted graph, and use a graph search algorithm in the NetworkX library to find the solution.




Kraken Technologies is an environmental tech company that does a lot of Python development. One of their applications is a monolith with over 27k modules. This article outlines how they keep all this organized and running.


2万7千个模块的 Python 系统运营...


If you’re doing multi-processing with NumPy you will need to pass arrays between processes. This article covers different ways of doing just that.




自动转化为 Rust 编译出二进制?



Articles, Tutorials and Talks

IPython is a powerful tool that can prove useful on your journey to mastering Python. Its friendly interface will enable you to comfortably take control of your learning. In this tutorial, you’ll cover the basic concepts of using IPython and learn how its features can make coding efficient.




Sometimes code depends on the order of a QuerySet while not specifying an order. This can lead to random, flaky test failures because databases can return rows in any order when none is specified. Learn how to randomly order your QuerySet when under test to detect this weird problem.

This post compares asynchronous web performance between a Python application using Uvicorn and a Rust application using Axum. A similar data-serving program is written in both applications with very little performance difference.


初步测试 Rust 只领先 7% ?

当然, 最后的挽尊说明也很中肯, 如果你的服务要持续运行几年呢? ...但是,公司可能都活不了这么长时间呢?


The new Security Developer-in-Residence at the Python Software Foundation writes about the Software Bill of Materials and how it can programmatically tell you exactly what is in a distribution, including compiled libraries.


嗯哼? 这就是经典的在公开场合工作了...


“anywidget is a Python library that makes it simple and enjoyable to create custom Jupyter Widgets.” It allows for quick prototyping, and because it is Python can be used across environments.

Tail call optimization is a technique provided in some languages to avoid growing the stack with recursive algorithms. Python doesn’t have it, but this article shows how you can build it.

This article outlines how Python stores variables as references and how that relates to memory management.


源代码中有一切魔法, 当年 老爹是认真思考过的...


This post from Brett covers the current state of WebAssembly targets in Python.

  • Ode to Ptyon
    • • Shared by Pete Fison

A lighthearted poem about a certain well-known programming language.


叕一封给 Python 的诗

My love is a language so fine,
Created by Guido. Divine!
Duck typing and whitespace,
She runs with sublime grace.
Now coding flows freer than wine

With one simple import, you see,
I mastered `antigravity`.
Just one line of code
And off we both rode,
Flying higher, and further for free.

List comprehensions, [oh my],
Make coding as easy as .py!
With one simple line
My code can now shine
And make other languages sigh.

So thank you dear Guido, I say,
For siring this language so bae.
I now understand
Shes the best in the land
And I earnestly hope she will stay.

© Pete Fison MMXXIII



LangChain is a Python and JavaScript library for interfacing with OpenAI’s GPT and other models for text generation. But, it “is complicated, so it must be better. Right?”


哈, ChatGPT 插件一出, LangChain 就坐腊了... 一直有人出招想拯救...



Interesting Projects, Tools and Libraries, Projects & Code


单单 果蝇大脑 真能模拟明白, 那也是足以在很多场景中发挥作用的了...



不保证可用哪, 就好奇, 如何让 GPT 知道何时值得推荐 sudo rm -rf . / 这种指令?



*Chain 这个名字就看何时出个杀手级的平台了...



叕一个异步 web 应用框架, 其实认真使用过诸如 FastAPI 之类的异步框架就知道, 单异步 web 请求并没什么作用, 得将数据链上所有环节都异步了才可能有整体效能涌现...

不由想起来 沈游侠 原创的系列框架...


📆🐍 活动/大会

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



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

       \/ /  - #  \ ()
         '_   V   _'
         \ '--⌄--' |

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


Happy Pythoning!

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



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


[皱眉]每周新闻资讯 怎么能错过 
    what f**k 还能这样玩? 还有这东西?

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

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

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



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


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

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

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


大妈的多重宇宙 - YouTube

点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

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

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


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