PyCoder 491

slippers ~ 低代码新思路 原文: PyCoder’s Weekly - Issue #491 210922 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210922 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 结构模式匹配在 Python 3.10 BEN HOYT “Python 3.10, which is due out in early October 2021, will include a large new language feature called structural pattern matching. This article is a critical but (hopefully) informative presentation of the feature, with examples based on real-world code.” (是也乎: LISP/Erlang 在 Python 世界的恢复… ) 用 Django 和 Python 建立个人日记 REAL PYTHON In this beginner-friendly tutorial, you’ll build a personal diary app in Django. You’ll use the strengths of the Django web framework and learn the basics of web development with Python. (非) 解开生成器表达式 BRETT CANNON What does that look like if you take away the Python “magic” of generator expressions and unravel them down to their core Python semantics? Python 反模式: 使用可变的默认值作为参数 VALI VOICU A debugging post-mortem. 更好的 Pypy JIT 支持自动生成的Python代码 CARL FRIEDRICH BOLZ-TEREICK (是也乎: PyPy 在 CPython 的平行宇宙玩出了自己的道路… ) 通过在断点开始 REPL 来调试很有趣 JULIA EVANS (是也乎: 断点进入现场 REPL 进行交互探索, 低配版 IDE ) Django 4.0 获得内置 Redis Cache 后端 GITHUB.COM/DJANGO (是也乎: 没办法了, 只能先 redis 了 ) 探讨/吐糟 Discussions ...

2021-09-22 · 5 min · 2111 words · ZoomQuiet

PyCoder 490

++x 和 –x 在 Python 原文: PyCoder’s Weekly - Issue #490 210915 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210915 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 实践中应用 PEP 8 JAKE EDGE “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.” Python 中专家如何 Log GUILHERME LATROVA 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姿势 ) Python新闻/ 2021年8月的新增内容是什么? REAL PYTHON 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. (是也乎: ) 解开异步为循环 BRETT CANNON 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. 介绍 Pedalboard: Spotify 的 Python 音频效果库 SPOTIFY ENGINEERING BLOG 探讨/吐糟 Discussions ...

2021-09-15 · 4 min · 1687 words · ZoomQuiet

PyCoder 489

全新姿势来告知你 Python 代码很糟糕 原文: PyCoder’s Weekly - Issue #489 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. (是也乎: 简单说, 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 ...

2021-09-08 · 5 min · 2306 words · ZoomQuiet

PyCoder 488

IEEE#1 开发语言 -> Python 原文: PyCoder’s Weekly - Issue #488 210901 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210901 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python在IEEE“顶级编程语言”中排名第一 IEEE.ORG “Python dominates as the de facto platform for new technologies” and “Learn Python. That’s the biggest takeaway we can give you from its continued dominance of IEEE Spectrum’s annual interactive rankings of the top programming languages. You don’t have to become a dyed-in-the-wool Pythonista, but learning the language well enough to use one of the vast number of libraries written for it is probably worth your time.” skybison: Instagram 的实验性能面向 Feenfield Python 实现 GITHUB.COM/FACEBOOKEXPERIMENTAL “Skybison is experimental performance-oriented greenfield implementation of Python 3.8. It contains a number of performance optimizations, including: small objects; a moving GC; hidden classes; bytecode inline caching; type-specialized bytecode; an experimental template JIT.” 如何在定义 Python 函数时使用可选参数 REAL PYTHON In this tutorial, you’ll learn about optional arguments in Python and how to define functions with default values. You’ll also learn how to create functions that accept any number of arguments using args and kwargs. (是也乎: ) Python Project-Local 虚拟环境管理 HYNEK SCHLAWACK On UNIX-like operating systems you can have the Python equivalent of node_modules today, for every Python version, without changing your workflows. 谦虚的软件BUNDLE: Python Superpowers 2021 HUMBLEBUNDLE.COM Pick up the awesome programming potential of Python with software like Mastering PyCharm (2021 Edition) & Object-Oriented Programming (OOP) in Python. Pay what you want & support charity! 加入Pycon US 2022团队! PYCON US The PyCon US organizers are looking for motivated volunteers who want to contribute their time and knowledge to make this year’s conference a great success. Python 3.9.7 和 3.8.12 现已推出 CPYTHON DEV BLOG More info in the full changelog. 探讨/吐糟 Discussions ...

2021-09-01 · 4 min · 1893 words · ZoomQuiet