Pythoneer 2022调查问卷来了, 值得冲哪...

原文: PyCoder's Weekly - Issue #547


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

Chatbots can help to provide real-time customer support and are a valuable asset in many industries. When you understand the basics of the ChatterBot library, you can build and train a self-learning chatbot with just a few lines of Python code.




This deep article talks about why some kinds of tests break more frequently than others and how to set the appropriate granularity of your test suites.

Migrating Postgres From Heroku to Crunchy Bridge Developers of a growing business were looking to migrate Postgres. They wanted a new vendor at least as good at Heroku, with new features and developer tools. They tested Amazon RDS and several others. Find out why they chose Crunchy Bridge for their cloud Postgres. Read the case study → CRUNCHY DATASPONSOR

Python has great support for LaTeX: in Jupyter, in symbolic math tools, and in third party libraries. Learn about how easy it is to get started.




不是出版社引战文, SQLite 以及 The Rust Programming Language ISBN-13: 9781718500440 得到关注...



Articles, Tutorials and Talks

In this video course, you’ll learn how to provide multiple constructors in your Python classes. To this end, you’ll learn different techniques, such as checking argument types, using default argument values, writing class methods, and implementing single-dispatch methods.


Providing )

“The set class is one of the key data structures in Python. It is an unordered collection of elements without duplicates. It represents, to a certain degree, a mathematical set, and many of the common mathematical operations for sets exist in Python.”


Ultimate ~ 究极... 古早潮词儿


Jimmy’s team at Carta decided they wanted to add type annotations to their large code base, but doing so manually would have taken a very long time. This post shows you how they built automated refactoring tools to add type annotations to their code.





You can use type hinting to increase code readability, but you must do it wisely. Type hints can make things better, or they can be misleading and decrease code readability. Marcin offers suggestions on how to use type hints for clearer code.

Maybe your app needs to handle files from users like profile pictures. Accepting files from others is tricky to do safely. See the tools that Django provides to manage files safely.

“When using many decorators in code, there’s a shortcut you can use if you find yourself repeating them. They can be assigned to a variable just like any other Python expression.”


# in
xfail_pypy_3749 = pytest.mark.xfail(
    env.PYVERSION[:2] == (3, 8) and env.PYPY and env.PYPYVERSION >= (7, 3, 10),
    reason="Avoid a PyPy bug:",


# in src.

from tests.helpers import xfail_pypy_3749

def test_something():

def test_something_else():

好吧, 这才是魔术...


There are many libraries for scraping and parsing from web content out there. This guide shows you several different techniques and why you would choose from among them.


现在这堆工具, 到 WASM 流行时, 是否可用?


Automate some common tasks, such as: sending email, converting PDF to audio with text-to-speech, get weather information, and seven more.


Interesting Projects, Tools and Libraries, Projects & Code





当然 Jupter 风格...





居然还用上了 Zig


📆🐍 活动/大会

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


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



谈崩了, 之前通过 ACM 会员可以每年 $25 享受 O'REILLY 在线图书馆服务...现在没了





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


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

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

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


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


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

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

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



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

订阅 substack 体验古早写作:

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


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