Black 终于稳定了

原文: PyCoder's Weekly - Issue #510

pycoder

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

How can you can speed up Python? Have you thought of using a JIT (Just-In-Time Compiler)? This week on the show, we have Real Python author and previous guest Anthony Shaw to talk about his project Pyjion, a drop-in JIT compiler for CPython 3.10.

(是也乎:

Pyjion

叕一个加速器, 老爹有压力了...

)

“In this blog post, we share 10 security pitfalls we encountered in real-world Python projects. We chose pitfalls that we believe are less known in the developer community.”

In this tutorial, you’ll visualize the famous Mandelbrot set using Python’s Matplotlib and Pillow libraries. You’ll learn how to draw the fractal in black and white, grayscale, and color.

(是也乎:

Mandelbrot

)

“Python 2.7 was removed from macOS in this update. Developers should use Python 3 or an alternative language instead.” Also see the related discussion on Hacker News.

(是也乎:

不容易哪, macOS 系统中的 Python 代码也不少的

)

The popular Python auto-formatter Black is finally non-beta software. Related discussion on Hacker News and Black’s stability policy doc.


探讨/吐糟

Discussions

.egg uploads make up less than 1% of built distribution uploads in Dec 2021. Do you still build or install eggs, or maintain a tool that supports eggs?

(是也乎:

卵胎生都要支持 )

(是也乎:

psf/black: The uncompromising Python code formatter

black

官方出品, 老爹关注

)


文章/教程/嗯哼

Articles, Tutorials and Talks

Once you learn about for loops in Python, you know that using an index to access items in a sequence isn’t very Pythonic. So what do you do when you need that index value? In this course, you’ll learn all about Python’s built-in enumerate(), where it’s used, and how you can emulate its behavior.

(是也乎:

enumerate

)

If you are already developing Python GUI apps with PySide2, you might be asking yourself whether it’s time to upgrade to PySide6 and use the latest version of the Qt library.

(是也乎:

关键看上游 Qt 的资源了...

)

Data Elixir is a free newsletter that curates intermediate and advanced data science content from around the web. Data Elixir: Data Science Newsletter

(是也乎:

等等, Elixir 拿到投资了? 叕开始在 Python 社区刷广告...

)

This article covers: Pandas’ default CSV reading, the faster, more parallel CSV reader introduced in v1.4, and a different approach that can make things even faster.

(是也乎:

越基础的行为, 越难以优化... 因为, 历史中积累了太多嗯哼...

)

It’s common to include interactive Python sessions inside documentation. With a small script we can turn these docs into Jupyter notebooks and serve them instantly.

(是也乎:

可运行文档, 这是 LOTUS 最先提出的概念, Jupyter 真正实用化, 然后, 变成了通用模块

)

In this tutorial, you’ll write a nicely formatted Python CLI app that displays information about the current weather in any city you provide the name for.

(是也乎:

2002 年, 完成的第一个可用 Python 小工具, 就是天气自动播报器

Weather

那时还没什么 XML 分析器, 是用 正则表达式 撸的...

)

(是也乎:

PyENV 是优雅和高效的, 只是: 编译环境得先有, 网络得靠谱, 另外, 还能清楚自动挂载的是什么...

所以, 对于通常情况, 还是 Anconda 更加显性, 可靠了...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

对于 github 随时可以消失的地区, 这种工具...

)

(是也乎:

一个普通程序猿对大问题的私人解决方案.

)

(是也乎:

Gallery

真大全

)

(是也乎:

自从 MySQL 躲平后, 大家的热情都射逈 Pg 了///

不过, 这个项目名子已躺平了...

)

(是也乎:

MAX 类似可视化计算流设计/调试器...

)

(是也乎:

乍一看, 还以为是 KUbuntu 专用的呢...

)

(是也乎:

等等, https://github.com/zestyping/q 吓俺一跳, 这要是

https://github.com/q

那是真帬了.. 不过, 先占住了 PyPi 中的 q 也非常不得了, 这是星际旅行中的 Q 先生哪...

/tmp/q

永恒的逼叨逼...

而且有 golang/elixir 对应版本

)


📆🐍 活动/大会

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

(是也乎:

SyPy 和 SyFy/SiFi 简直了, 绝对妙名.

)


DAMA

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


PS:

PPS:

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

去年开始有小伙伴加入承担 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

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

任何问题

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

-->