在 ChatGPT 中运行 Python

原文: PyCoder's Weekly - Issue #556

pycoder

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

What advantages can a build system provide for a Python developer? What new skills are required when working with a team of developers? This week on the show, Benjy Weinberger from Toolchain is here to discuss the Pants build system and getting started with continuous integration (CI).

(是也乎:

Integration

又见 InfluxDB

)

This Python Enhancement Proposal describes the formalization of a grammar for f-strings, allowing a reduction in the underlying parser code complexity and providing future features like comments in multi-line f-strings.

(是也乎:

这样发展下去就变成闭包了 )

Did you know that ChatGPT knows Python? It knows Python so well, you can even run a Python REPL inside ChatGPT and it supports non-trivial features like decorators, properties, and asynchronous programming.

(是也乎:

PyCon中国 刚刚举行...

)


探讨/吐糟

Discussions

(是也乎:

Halved

)


文章/教程/嗯哼

Articles, Tutorials and Talks

Python classes support operations through the definition of magic methods, also known as dunder-methods. To enable to support for len(), you define __len__() on your class. There are many Python magic methods, read on to learn about some of the less common ones.

(是也乎:

从作者官网中发现在这个有趣的图书: Elegant Objects

)

Finding bugs can be a challenging exercise, but when your code is a Just-In-Time compiler, your bugs create bugs for other people. PyPy has recently added new techniques to find errors in the JIT optimizer. Dive deep into Z3 theory and using fuzzing to find errors.

“AWS Chalice is a Python-based web micro-framework that leverages on the AWS Lambda and API Gateway services. It is used to create serverless applications.” Learn how to write unit and integration tests in the AWS Chalice space.

(是也乎:

Lambda 已经有了自己的专用框架 Chalice ,那么在此基础上的标准工程化操作也就应该有对应规范了...

)

This article introduces the reader to eight separate levels of type-hint use in Python, starting with annotating basic data types and going all the way up to compound and types for classes.

(是也乎:

周同学, 将 Type Hints 内卷姿势已经分好类了..

)

FastAPI is an asyncio friendly library, which means you can dive deep into your concurrency needs. This article shows you how to get high performance out of FastAPI using co-routines.

(是也乎:

简而言之 gunicorn YYDS

)

“This style guide combines domain-driven design principles and Django’s apps pattern to provide a pragmatic guide for developing scalable API services with the Django web framework.”

(是也乎:

DDD 也是可以应用万物的...

)

In case you missed the three hour interview by Lex Fridman, or decided that it was a bit too long, this article summarizes key points.

(是也乎:

Summary 还是必要的...

)

In this video course, you’ll learn what the Python with statement is and how to use it with existing context managers. You’ll also learn how to create your own context managers.

(是也乎:

Context

)

Eve recently worked on a client site where pair programming was the default. She outlines the pros and cons of her experience and what she learned.

(是也乎:

结对编程之真实世界?

)

See some common mistakes when writing Python Async and learn how to avoid them to increase your code’s performance.


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

Nuitka

非常实用的项目,

Nuitka 将 Python 模块翻译成 C 级程序,然后使用 libpython 和自己的静态 C 文件,以 CPython 的方式执行...目前支持:操作系统:Linux、FreeBSD、NetBSD、macOS X 和 Windows(32/64 位)...架构:x86、x86_64(amd64)和 arm,可能还有更多的架构

)

(是也乎:

就这么实现了 42 好机智

$ num2words 10001
ten thousand and one
$ num2words 24,120.10
twenty-four thousand, one hundred and twenty point one
$ num2words 24,120.10 -l es
veinticuatro mil ciento veinte punto uno
$num2words 2.14 -l es --to currency
dos euros con catorce céntimos

暂时不支持中文

)

(是也乎:

SSG 已经特化到只针对一个文件进行生成了?

)


📆🐍 活动/大会

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


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

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


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


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

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