PyCoder 495

GIL-Free CPython 来了 原文: PyCoder’s Weekly - Issue #495 211020 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211020 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. CPython No-GIL 分支 GITHUB.COM/COLESBURY • Shared by Henry Schreiner This is a proof-of-concept implementation of CPython that supports multithreading without the global interpreter lock (GIL), from Facebook research. An overview of the design is described in the Python Multithreading without the GIL Google doc. Also see the related discussions on LWN and Hacker News. (是也乎: 活久见, 老爹当年的一闪年, 现在终于不在坚持. ) 为毛不应该直接调用 setup.py ? PAUL GANSSLE “The setuptools team no longer wants to be in the business of providing a command line interface and is actively working to become just a library for building packages. What you should do instead depends on your use case, but if you want some basic rules of thumb, there is a table in the summary section.” Data Elixir: Data Science Newsletter DATA ELIXIRsponsor Data Elixir is an email newsletter that keeps you on top of the tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web → (是也乎: 数据科学中 Py 的地位其它语言当然在努力追上 ) 在哪儿观察努力? 查阅 Python 核心开发人员活动 ŁUKASZ LANGA “One of the tasks given me by the Python Software Foundation as part of the Developer in Residence job was to look at the state of CPython as an active software development project. What are people working on? Which standard libraries require most work? Who are the active experts behind which libraries?” Python 3.10中很酷的新功能 REAL PYTHON course In this course, you’ll explore some of the coolest and most useful features in Python 3.10. You’ll appreciate more user-friendly error messages, learn about how you can handle complicated data structures with structural pattern matching, and explore new enhancements to Python’s type system. (是也乎: COOL 不 COOL 看用的人. ) PyCascades 2022 CFP 在周日关闭 (Oct 24) PYCASCADES CONFERENCE 第3季度的PSF同事宣布 PYTHON SOFTWARE FOUNDATION 参与 Python 开发者调查2021 PYTHON SOFTWARE FOUNDATION Psycopg 3.0 发布 PSYCOPG.ORG PyPy 7.3.6 发布 PYPY.ORG (是也乎: NB, 当年的一闪念, 今天变成独立大叉. ) 探讨/吐糟 Discussions NIL ...

2021-10-20 · 5 min · 2165 words · ZoomQuiet

PyCoder 494

TIOBE曰: Python 成为 #1 原文: PyCoder’s Weekly - Issue #494 211013 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 211013 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. TIOBE曰: 超越 C 和 Java, Python 成为 #1 最受欢迎的编程语言 SLASHDOT.ORG ZDNet reports that Python “is now the most popular language, according to one popularity ranking.” “For the first time in more than 20 years we have a new leader of the pack…” the TIOBE Index announced this month. “The long-standing hegemony of Java and C is over.” (是也乎: 很久没见 SLASHDOT/. 的消息了… ) Python C API: 添加函数以访问 pyObject VICTOR STINNER “The PyObject structure prevents indirectly to optimize CPython. We will see why and how I prepared the C API to make this structure opaque. It took me 1 year and a half to add functions and to introduce incompatible C API changes (fear!)” Improve Inefficient App Code With Datadog Application Performance Monitoring DATADOG sponsor Datadog’s Continuous Profiler allows you to measure code performance changes over time. Quickly identify and optimize the most time- and resource-consuming parts in your application code in order to improve MTTR and enhance user experience. Give it a try with a free trial → 用 Pygame 在 Python 中构建小行星游戏 REAL PYTHON course In this course, you’ll build a clone of the Asteroids game in Python using Pygame. Step by step, you’ll add images, input handling, game logic, sounds, and text to your program. (是也乎: ) 探索 Python 3.10 的新功能 REAL PYTHON podcast Python 3.10 is here! This week on the show, two former guests and Real Python authors return to talk about the new features and changes in Python 3.10. (是也乎: Py3.10 有组织的带节奏… ) Python 3.10 有什么伟大? TREY HUNNER • Shared by Trey Hunner Guido van Rossum on 提高Python的表现 SOFTWARE AT SCALE podcast (是也乎: 晚年就得修正年轻时挖的坑 ) 探讨/吐糟 Discussions NIL ...

2021-10-13 · 4 min · 1641 words · ZoomQuiet

PyCoder 493

Python 3.10 中值得尝试的新特性… 原文: PyCoder’s Weekly - Issue #493 211006 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 211006 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 3.10: 炫酷特性值得尝试 REAL PYTHON Explore some of the coolest and most useful features in Python 3.10. You’ll appreciate more user-friendly error messages, learn about how you can handle complicated data structures with structural pattern matching, and explore new enhancements to Python’s type system. (是也乎: 改进了 error message, 加强了模式匹配, 拓展了 pattern, 比如: def greet(name): match name: case “Guido”: print(“Hi, Guido!”) case : print(“Howdy, stranger!”) 嗯哼, Elixir 们的语法; def fizzbuzz(number): mod_3 = number % 3 mod_5 = number % 5 match (mod_3, mod_5): case (0, 0): return “fizzbuzz” case (0, ): return “fizz” case (, 0): return “buzz” case: return str(number) ) Python 3.10: 官方下载链接以及变更说明 PYTHON.ORG Data Elixir: 数据科学新闻组 DATA ELIXIR sponsor Data Elixir is an email newsletter that keeps you on top of the tools and trends in Data Science. Covers machine learning, data visualization, analytics, and strategy. Curated weekly with top picks from around the web → (是也乎: 串行了… 继 go+ 立志取代 R/Python 作为数据科学主力语言后, Elixir 也开始进入这一领域… ) Python 3.10 发布 Party Stream YOUTUBE.COM video A recording of the Python 3.10 Release Stream with Pablo Galindo, CPython Core Developer and Python 3.10 Release Manager, and Leon Sandøy. Python 3.10 释放值得现在使用嘛? ITAMAR TURNER-TRAURING opinion Python 3.11 将有 “零成本” Exception Handling PYTHON.ORG With “Zero-cost” exceptions the cost of try statements is almost eliminated when no exception is raised. Coverage 6.0 已发布 NED BATCHELDER Django 3.2.8 已发布 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-10-06 · 5 min · 2018 words · ZoomQuiet

PyCoder 492

Django 4.0 来了 原文: PyCoder’s Weekly - Issue #492 210929 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210929 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 背景: GIL 以及其对 Python Multithreading 的影响 VICTOR SKVORTSOV GIL stands for the Global Interpreter Lock, and its job is to make the CPython interpreter thread-safe. This post tells you more about non-obvious effects of the GIL. Along the way, you’ll see what the GIL really is, why it exists, how it works, and how it’s going to affect Python concurrency in the future. (是也乎: 沈游侠也曰过类似的断言, 毕竟 Guido 老爹不傻… ) Django 模板语言: 标签和过滤器 REAL PYTHON Django templates use their own mini-language that’s inspired by Python. This tutorial covers Django template tags and filters, explaining how to compile and use templates. It covers conditional blocks, looping, and inheritance in tags as well as filters for strings and filters for lists. (是也乎: ) Django 4.0 中的新测试功能 ADAM JOHNSON Django 4.0 had its first alpha release last week and the final release should be out in December. It contains an abundance of new features, which you can check out in the release notes. This post looks at the changes to testing in a bit more depth. (是也乎: 就象 Py3 ? ) 教程中有关 PyPI 从不说的4件事儿 PAOLOA AMOROSO “Although it’s well known PyPI is unforgiving for good reasons, the package publishing process is not as straightforward as the tutorials make it seem. I run into a few unexpected minor bumps none of the guides mention.” (是也乎: PyPI 公开的机密 ) Django 4.0 Alpha 1 发布 DJANGO SOFTWARE FOUNDATION See the full changelog here. scikit-learn 1.0 发布亮点 SCIKIT-LEARN.ORG (是也乎: 竟然出 1.0 了… 好象永远不发布1.0 的才是最Nb 的? ) 探讨/吐糟 Discussions ...

2021-09-29 · 4 min · 1936 words · ZoomQuiet