PyCoder 560
PEP 703:将GIL变成一个开关选项 原文: PyCoder’s Weekly - Issue #560 230118 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 230118 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PEP 703: 在 CPython 中使 GIL 可选 PYTHON.ORG This PEP proposes changes to the CPython build process that would allow you to build a GIL-less interpreter. This kind of interpreter would not be ABI compatible with the GIL-based one, and the programmer would become responsible for some locking situations in C-extensions. If implemented, this would lead the way to being able to operate without the GIL in cases where backward compatibility issues are not important. (是也乎: 嗯哼? 就象 Rust 中的 unsafe ? ) Python 中的原型污染 ABDULRAHEEM KHALED Prototype pollution is a particular attack in JavaScript where the base Prototype object is modified having wide ranging effects. Unfortunately, similar things can be accomplished in Python by messing with class.base. Read on for details. (是也乎: Py 内部黑魔法, 如果不是撞上罕见问题一定要用这种解决方案, 一般没事别折腾… ) 从 2022 年最流行的 Python 教程和课程中学习 REAL PYTHON Revisit some of your favorite Real Python tutorials and video courses from 2022. It’s been a busy year, with new materials on topics ranging from the basics to web development, machine learning, effective coding environments, and more. (是也乎: 去年构建的最受欢迎的一系列结构化教程 ) Python 3.12.0 Alpha 4 发布 CPYTHON DEV BLOG 探讨/吐糟 Discussions ...