++x 和 --x 在 Python

原文: PyCoder's Weekly - Issue #490

pycoder

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

“Two recent threads on the python-ideas mailing list have overlapped to a certain extent; both referred to Python’s [PEP 8] style guide, but the discussion indicates that the advice in it may have been stretched further than intended.”

Learn what good logging is, and how you should implement it in Python. Comes with meaningful examples and rules of thumb on what and how to log.

(是也乎:

Log

专业log姿势

)

August 2021 was an eventful month in the world of Python. In this article, you’ll get up to speed on everything that happened in the past month, including three new Python releases.

(是也乎:

What’s

)

Python’s async for statement allows convenient iteration over asynchronous iterators. In this article you’ll see how async for loops work behind the scenes.


探讨/吐糟

Discussions

The core team behind the popular Python autoformatter Black did an “ask me anything” (AMA) thread on Reddit.


文章/教程/嗯哼

Articles, Tutorials and Talks

“I’ll say it again: Python is a bad programming language, and the only reason it’s so popular today is because Google pushed it so hard in the first decade of the 2000s.” Related discussion of this controversial article on Hacker News.

(是也乎:

Google push golang 去了哈?

)

One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions. With data classes, you don’t have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.

Data Elixir: Data Science Newsletter Data Elixir is an email newsletter that keeps you on top of the tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web → DATA ELIXIRsponsor

Are you a beginner or intermediate Python programmer who has made it through some of the fundamentals? Have you tried to tackle a big project but got stuck and frustrated? Completing some small projects might be the answer. This week on the show, author Al Sweigart.

(是也乎:

podcast

)

This article reviews some common options for parallelizing Python code, including multiprocessing, specialized libraries, ipython parallel, and ray.

(是也乎:

Ray

Ray 的硬广, 不过, 并行计算的前提是计算任务是原子化的

)

Explore the Fibonacci sequence in Python, which serves as an invaluable springboard into the world of recursion, and learn how to optimize recursive algorithms in the process.

How to compress, decompress, and manage archives and files with Python in all the formats you might ever need.

(是也乎:

其实调用 7zip 就都可以作到.

)

(是也乎:

嗯哼,

Lambda

)

(是也乎:

叕一篇基础教程

)

(是也乎:

语言名称越短,越高级嘛?

)

(是也乎:

此时, 使用 FastAPI 团队全家桶就对

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

openskill

)

(是也乎:

这是想象的伦丧, 还是人性的扭曲?

plusplus

即不直观,又不逻辑, 只是省力...

)

(是也乎:

Aircraft

航空发动机模拟器... 这家伙... Su27 走起

)

(是也乎:

嚓...这是真神器, 不过, 生成的代码是否真的能合理覆盖所有逻辑分叉;

)

(是也乎:

WoW 真神器敠一发.

)

(是也乎:

pyreports

)


📆🐍 活动/大会

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


DAMA

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

(是也乎:

独创 logging + debug 模块

)

(是也乎:

老司机开新坑, 时隔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
-->