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

pythonista-weekly : Pyw 515

欢迎阅读《pythonista周刊》第515期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-515 翻译:Dustyposa 新闻 Join the PyCon US 2022 team! 想在 PyCon US 的规划和成功中发挥关键作用吗?这是你的机会,快来吧! IEEE Spectrum’s Top Programming Languages 2021 Python 作为新技术的事实平台占主导地位。 ...

2021-09-03 · 3 min · 1170 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

pythonista-weekly : Pyw 514

欢迎阅读《pythonista周刊》第514期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-514 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 文章、教程与话题 Python的背后故事#12:Async/await在Python中的工作原理 并发性本身就很难,没有哪个编程模型可以让它变得简单。不过,有些模型可以使它变得容易管理,这篇文章应该可以帮助你掌握这样一个模型– Python 的 async/await。 庆祝Jupyter项目成立20周年 Fernando Pérez 反思它是如何开始的,开放科学的影响和编码多样性的价值。 Tech Courses Search Engine 学习如何使用 Elasticsearch、Python、React+Redux、Docker 和 Kubernetes 创建一个实时技术课程搜索器。 Django Formsets Tutorial - Build dynamic forms with Htmx 学习如何用 Django 和 Htmx 构建动态表单。 用Python掌握网络抓取技术。扩展到分布式抓取 用每个域的自定义解析器建立你自己的分布式爬虫。发现新的页面并准确地存储你所需要的内容–所有这些都在300行以内。 SonarLint Free and Open Source IDE Extension for Python Devs Working in VS Code, PyCharm, Visual Studio, or Eclipse? SonarLint helps you find & fix Code Quality and Code Security issues in your Python codebase! Discover More SPONSOR 用Python中的argparse解析命令行参数 使用 argparse 模块,在你的 Python 应用程序中启用选项。 Quantile Regression 一个简单的方法来估计机器学习的不确定性。 用Ray编写你的第一个分布式Python应用程序 本教程的目的是探讨。为什么要用 Ray 进行并行化和分布式计算,如何开始使用 Ray 以及分布式计算的权衡(计算成本、内存、I/O等)。 构建dag-workflows:一个Python工作流执行工具 在这篇文章中,我们将走过导致建立我们自己的工作流协调工具的决策过程。我们将讨论我们的需求和目标、当前的产品状况,以及我们决定建立和开源的 Python 包。 Locality Sensitive Hashing (LSH): The Practical and Illustrated Guide The magic, theory, and practice of Locality Sensitive Hashing. 为什么我使用attrs而不是pydantic SQL query builder in 150 lines of Python 用Python和PyRayT设计相机:第一部分 ...

2021-08-27 · 3 min · 1410 words · ZoomQuiet