Black 终于稳定了 原文: PyCoder’s Weekly - Issue #510 pycoder

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

  • 咩是 JIT, Pyjion 如何加速你的 Python?
    • REAL PYTHON
    • PODCAST 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 叕一个加速器, 老爹有压力了… )
  • Python 的 10 个未知安全陷阱
    • DENNIS BRINKROLF “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.”
  • 在 Python 中绘制 Mandelbrot Set
    • REAL PYTHON 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 )
  • Apple 从 macOS Monterey 12.3 中删除了 Python 2.7
    • APPLE.COM “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 代码也不少的 )
  • Black, Python 代码格式化器 稳了
    • HACKER NEWS The popular Python auto-formatter Black is finally non-beta software. Related discussion on Hacker News and Black’s stability policy doc.
  • Django Security 已经发布: 4.0.2, 3.2.12, and 2.2.27
    • DJANGO SOFTWARE FOUNDATION Includes fixes for a possible XSS via debug template tag and a denial-of-service possibility in file uploads.
  • Textual v0.1.14 追加 Windows 支持
    • WILL MCGUGAN

探讨/吐糟

Discussions


文章/教程/嗯哼

Articles, Tutorials and Talks

  • 用 Python enumerate() 来循环
    • REAL PYTHON
    • COURSE 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 )
  • PySide2 vs PySide6: 有什么区别? 该升级了吗?
    • MARTIN FITZPATRICK 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: Data Science Newsletter
    • DATA ELIXIR
    • SPONSOR 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 社区刷广告… )
  • Pandas 中读取 CSV 最快方法
    • ITAMAR TURNER-TRAURING 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. (是也乎: 越基础的行为, 越难以优化… 因为, 历史中积累了太多嗯哼… )
  • Executable Docs 可执行文件
    • IVO HOUBRECHTS
    • • Shared by Ivo Houbrechts 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 真正实用化, 然后, 变成了通用模块 )
  • 外面下雨了? 用 Python 构建天气 CLI 应用程序
    • REAL PYTHON 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 和 Pyenv-Virtualenv 在 macOS 上安装 Python 并创建虚拟环境
    • ANDREA GRANDI (是也乎: PyENV 是优雅和高效的, 只是: 编译环境得先有, 网络得靠谱, 另外, 还能清楚自动挂载的是什么… 所以, 对于通常情况, 还是 Anconda 更加显性, 可靠了… )
  • 理解 Python 的省略号文字 (…)
    • BRETT CANNON

好物/妙品/

Interesting Projects, Tools and Libraries, Projects & Code


📆🐍 活动/大会

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


DAMA

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


PS

PPS

不觉中蟒周刊快译已经到了第10个年头 去年开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了… 问为什么: [皱眉]每周新闻资讯 怎么能错过 看看有什么新东西 当有新的发现时: what f**k 还能这样玩? 还有这东西? 每周开彩蛋[吃瓜] 无法同意更多… 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.


好文笔,感叹号年度配额: 1/3 投稿/反馈邮箱: [email protected] (邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越…)

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

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)