Issue 471

C扩展的隐藏性能开销 原文: PyCoder’s Weekly - Issue #471 210505 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210505 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python C扩展的隐藏性能开销 ITAMAR TURNER-TRAURING It’s no secret that Python is slower than compiled languages like C, C++, and Rust. If you need a performance boost, you can write compiled Python C extensions. But there are some hidden performance costs that you should be aware of if you decide to do this. This article explains two ways that Python C extensions can actually be slower than pure Python and discusses some solutions and work around for them. (是也乎: 是的, Py 内建模块是宝藏, 很少有人都用过的… ) 如何用 ipywidgets 令 Jupyter Notebook 能交互式 MATT WRIGHT Jupyter Notebooks are great for exploratory data analysis. They’re also a good way to share results and analysis with other people, who can alter the notebook to further explore the data themselves. But there are some limitations to notebook interactivity. That’s where ipywidgets comes in! In this tutorial you’ll learn how to create widgets like check boxes, drop-down menus, sliders, and how to handle events like button clicks. Rapidly Identify Bottlenecks in Your Python Applications with Datadog APM. DATADOG sponsor Datadog’s Continuous Profiler allows you to find the most resource-consuming parts in your production code all the time, at any scale, with minimal overhead. Debug and optimize your code, enhancing application performance before your customers notice. Try Datadog APM today → 用 Arcade 在 Python 中构建平面游戏 REAL PYTHON Building games can be a fun way to learn new Python concepts and practice techniques you’ve already learned. Plus, they make for great projects to share! This step-by-step tutorial shows you how to build a platform game using the arcade library. You’ll learn techniques for designing levels, sourcing assets, and implementing advanced features. (是也乎: 卷轴游戏, 现在有完备的开发/设计/调试环境了… ) Python 3.10.0b1 现在可用 CPYTHON DEV BLOG Python 3.8.10 and 3.9.5 have also been released. Microsoft 成为 PSF 第三个 远见赞助商 MICROSOFT.COM EuroPython 2021: 呼吁赞助商 EUROPYTHON.EU Django Security 发行版发布: 3.2.1, 3.1.9, and 2.2.21 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-05-05 · 5 min · 2226 words · ZoomQuiet

Issue 470

开源的社会契约 原文: PyCoder’s Weekly - Issue #470 210428 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210428 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 开源的社会契约 BRETT CANNON opinion What is open source software, and what is the relationship between a maintainer and a user? Python core developer and steering council member Brett Cannon tackles some questions about the open source, raises concerns about bad actors, and shares some thoughts about handling abuse. (是也乎: 大学研究僧将目光投向开源社区后… ) Python’s map() 函式: 转换可迭代对象 REAL PYTHON course Learn how Python’s map() works and how to use it effectively in your programs in this video course. You’ll also learn how to use list comprehension and generator expressions to replace map() in a Pythonic and efficient way. (是也乎: ) 教大家用 Hedy 编码 JOSHUA ALLEN HOLM Hedy is a new programming language designed specifically for teaching people to code. What makes Hedy special is its notion of “levels” that start with the most basics concepts and gradually introduce new features that eventually become more Python-like. Hedy is not designed to compete with languages designed for real-world projects. It is 100% focused on teaching. (是也乎: print Hello World 这很 Pythonic. ) ...

2021-04-28 · 4 min · 1999 words · ZoomQuiet

Issue 469

200 行 Python 检验基本音乐理论 原文: PyCoder’s Weekly - Issue #469 210421 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210421 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 通过阅读代码进行学习: Python 标准库设计决策解释 ADRIAN Along your Python learning journey, someone may have told you that a great way to level up your skills is to read code written by other people. That’s definitely true, but it’s not easy to find good sources of code to read and study. Python offers some advantages here because not only is the code open source, but the discussion surrounding design decisions is public, too. (是也乎: 阅读代码? 其实, 就是用经验在运行代码. 如果经验不足以理解, 那就应该第一时间真实运行起来… ) 用 Python 和 Keras 学习文本分类 REAL PYTHON course Learn about Python text classification with Keras. Work your way from a bag-of-words model with logistic regression to more advanced methods leading to convolutional neural networks. See why word embeddings are useful and how you can use pretrained word embeddings. Use hyperparameter optimization to squeeze more performance out of your model. (是也乎: 纱翁总是逃不了的, 只是在中国, 很少有团队拿毛选来作分析数据… ) 流利的Django: 应该知道的 8个 Django 模板标签 GIRL THAT LOVES TO CODE The Django template language has some powerful features that can simplify your templates and solve a number of problems. Learn about eight template tags that you might not have heard of in this listicle that’s full of practical examples. (是也乎: 从终极 -> 精通 -> 流畅 -> … 技术界的用词总是一阵阵儿的… ) Python 3.10 将包含改进的错误消息 TWITTER.COM/PYBLOGSAL If you mistype an attribute name, you’ll get suggestions from existing attributes! PSF 正在招聘 Python 打包项目经理! PYTHON SOFTWARE FOUNDATION (是也乎: 总包工头 ) Flask 2.0 即将推出/已可进行测试 REDDIT Google 成为 PSF 的第一个有远见的赞助商 TWITTER.COM/THEPSF 探讨/吐糟 Discussions ...

2021-04-21 · 5 min · 2069 words · ZoomQuiet

Issue 468

PyPy v7.3.4 发布ed 原文: PyCoder’s Weekly - Issue #468 210414 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210414 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 3 Types 在野外: 两种类型的系统的故事 INGKARAT RAK-AMMOUTKIY ET AL. This academic paper from researchers at the Rensselaer Polytechnic Institute and IBM TJ Watson Research Center examines the MyPy and PyType tools and explores how Python developers use type annotations. The researchers collected over 70,000 Python GitHub repositories and found that only 2,678 had Python 3-style type annotations, most of which fail to type-check with either of the two tools. The paper’s third section is quite accessible and has a lot of interesting analysis. 如何在 2021 年制作出色的 Python 程序包 ANTON ZHIYANOV The headache often associated with Python packaging is starting to fade away. Don’t believe me? Check out this step-by-step guide to creating and setting up a package repository. You’ll learn how to create a test package on TestPyPI, create a pyproject.toml file with flit, set-up linters and tests, GitHub Actions workflows, and more. (是也乎: 无论 2021 还是 1842, 只有实用的认真的好的模块, 才可能 Awsome. 当然, 前提是已经在自己和小伙伴的工程中大规模使用了. ) 为 Python 开始贡献力量: 您的第一步 REAL PYTHON In this quick introduction, you’ll see how you can take your first steps toward contributing to Python. You’ll discover various ways you can contribute and get to know some of the resources that will help you along the way. (是也乎: 普通人参与 Python 社区贡献, 最简易的还是从文档贡献开始, rST 是领先 Markdown 10多年的好东西, 值得使用. ) 用 pyenv 管理多个 Python 版本 REAL PYTHON course Learn how to install multiple Python versions and switch between them with ease, including project-specific virtual environments, with pyenv. (是也乎: 多版本多项目混合运行时环境管理, 真的没有 PyENV 这么自如的了. ) PyCharm 2021.1 来了! JETBRAINS.COM • Shared by Bartosz Zaczyński This release includes faster indexing, enhanced WSL 2 support, and an exciting new collaboration tool called Code With Me. PDFx V1.4.1 已经可用 METACHRIS.COM PDFx is a tool to extract text, links, references, and metadata from PDF files and URLs. This release doesn’t include many new features but is rather a full update of the package repository to current Python standards, including testing and coverage, linting and static checks, GitHub workflows, and more. Wing Python IDE 7.2.9 发布 WINGWARE.COM This release includes remote development for 64-bit Raspberry Pi, improved auto-closing of quotes, optimized change tracking, and more. (是也乎: 这么古老的 IDE 还在努力… 为了象 VSCode 们而努力…. ) PyPy v7.3.4 发布ed PYPY.ORG This release includes two interpreters supporting the syntaxes for Python 2.7 and 3.7. 探讨/吐糟 Discussions ...

2021-04-14 · 4 min · 1998 words · ZoomQuiet