全新姿势来告知你 Python 代码很糟糕 原文: PyCoder’s Weekly - Issue #489 pycoder

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

  • PEP 668: 外部和Python包管理人员之间的优雅合作
    • PYTHON.ORG This draft PEP proposes a way for resolving conflicts between OS package managers (e.g. apt) and Python-specific package management tools (e.g. pip).
  • 学习Python需要多长时间?
    • REAL PYTHON How should someone assess whether or not learning Python is a good investment of their time, how long it will take them, and what background factors they need to consider when planning their learning journey? This article attempts to clarify these common beginner questions. (是也乎: Learn 简单说, 42分钟到42年不等… 学习阶段 嗯哼? 对比俺之前的断言 Unknow Unknow 不知不知何 unconscious incompetence 无意识无能 Unknow Know 不知己知何 conscious incompetence 有意识的无能 Know Know 知己已知何 conscious competence 意识能力 Know Unknow 知己不知何 unconscious competence 无意识能力 )
  • Track Python Application Performance With End-to-End Tracing With Datadog APM
    • DATADOG
    • sponsor With Datadog APM you can debug errors and bottlenecks in your code by tracing requests across web servers and services in your environment. Then correlate between distributed request traces, metrics, and logs to troubleshoot issues without switching tools or contexts. Try Datadog APM free →
  • 如何用 Python 跟踪私人财务
    • SIDDHANT GOEL This post introduces readers to a workflow for tracking their personal finances using only the Python ecosystem. The end result is extremely focused on data privacy, uses only open-source software, and is 100% self-hosted. (是也乎: 等等, 首先私人资金要多少, 才值得上手段来进行金融管理? )
  • 全新姿势来告知你 Python 代码很糟糕
    • NICK DROZD How and why the author added two new linter rules to Pylint: consider-ternary-expression and while-used. (是也乎: 圈复杂度的另类使用…? )
  • Forgiveness in Python 的成本要求
    • WALID ZIOUCHE A discussion of EAFP (“Easier to ask for forgiveness than permission”) vs LBYL (“Look before you leap”) code patterns in Python. (是也乎: 嗯哼? 还有这种编程流派的? )
  • Nuitka 0.6.15 发布
    • NUITKA DEV BLOG Nuitka is a Python compiler written in Python, compatible with Python2 (2.6, 2.7) and Python3 (3.3–3.9). You feed Nuitka your Python source code and it generates an executable or extension module. (是也乎: 淦…非官方编译器 )
  • Credit-Card-Stealing, 在 PyPI 上发现的后门包
    • CHRIS WILLIAMS

探讨/吐糟

Discussions


文章/教程/嗯哼

Articles, Tutorials and Talks

  • 用 Python 的数学模块并挖掘出实用的 Pandas 函数
    • REAL PYTHON
    • podcast How well do you know Python’s math module? Maybe you’ve used a few of the constants or arithmetic functions. You may be surprised by the amount of functionality hiding within this built-in library, and perhaps you don’t need to reach for an additional outside library for common use cases. (是也乎: podcast 老司机就是顺滑… )
  • 令 NumPy 易用: 指南和工具
    • MARS LEE “NumPy is now foundational to Python scientific computing. Our efforts reach millions of developers each month. As our user base grows, we recognize that we are neglecting the disabled community by not having our website and documentation up to modern accessibility standards.”
  • Type4Py 开发和发布: 基于机器学习, 为 Python 类型自动完成
    • AMIR MIR ”[…] retrofitting types is a cumbersome and error-prone process. To address this, we propose Type4Py, an ML-based type auto-completion for Python. It assists developers to gradually add type annotations to their codebases.”
  • 用 python 和 ggplot 绘制图表数据
    • REAL PYTHON
    • course Learn how to use ggplot in Python to build data visualizations with plotnine. You’ll discover what a grammar of graphics is and how it can help you create plots in a very concise and consistent way. (是也乎: ggplot ggplot 和 matplotlib 简直天差地别, 完全两种思路/风格以及形式, 不过, 运行的快, 就象 Tk 和其它 GUI 框架的区别, 喜欢的值得深入; )
  • Web Scraping 在 Python: 用分布式爬虫网进行缩放
    • ANDER RODRÍGUEZ “Build your own distributed crawler with custom parsers […] Discover new pages and store the exact content you need, all in less than 300 LOC.” (是也乎: 其实多数是专项爬取, 并不值得上分布式.. )
  • 用 neo4j 可视化 python 需要的模块和依赖
    • ADNAN SIDDIQI “A simple neo4j tutorial about a Python tool that ingests information about all installed Python modules on your computer and visualizes it.” (是也乎: 其实除非要求网页交互, 否则一个静态图片, 或是系列图片更好管理和使用 )
  • 介绍用 Python + Matplotlib 创建图表
    • MIKE DRISCOLL Learn how to create multiple types of graphs and add legends, titles and more in this tutorial about matplotlib and Python. (是也乎: 其实, 官方教程就足够了, 有个 The Lifecycle of a Plot 简单道尽天机, 推荐常看 )
  • 不用没有操作系统的 Python [2015]
    • JAKE EDGE How Josh Triplett and his colleagues at Intel got the Python interpreter to run inside the GRUB boot loader.
  • attrs vs pydantic
    • TIN TVRTKOVIĆ • Shared by Python Bytes FM opinion An account of why the author prefers using the attrs library over Pydantic.
  • 什么是python的省略号(…)对象?
    • FLORIAN DAHLITZ
    • • Shared by Florian Dahlitz

好物/妙品/

Interesting Projects, Tools and Libraries, Projects & Code


📆🐍 活动/大会

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


DAMA

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


PS

PPS

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


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

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

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