PyCoder 561

这些天你最喜欢的技术播客是什么? 原文: PyCoder’s Weekly - Issue #561 230125 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230125 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 如何在 Python 中获取和使用当前时间 REAL PYTHON In this tutorial, you’ll be getting the current time in Python. You’ll get your hands on a datetime object that represents the current time. You’ll see how to format it according to international standards, and you’ll even check out how computers represent time. (是也乎: 这可是个古老又实用的问题 ) Property-Based Testing With Hypothesis and Pytest RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão This tutorial is a gentle guide to property-based testing. Property-based testing is a testing philosophy; a way of approaching testing that will bring you many benefits that other types of testing don’t give you. 使用持续分析提升 Python 性能 MARTIN HEINZ Learn how to use Grafana Phlare and continuous profiling to discover bottlenecks in you code and boost the performance of your Python applications CircleCI 安全事件:轮换你的密钥 TECHCRUNCH.COM CircleCI says hackers stole encryption keys and customers’ secrets. 探讨/吐糟 Discussions ...

2023-01-25 · 4 min · 1759 words · ZoomQuiet

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 ...

2023-01-18 · 4 min · 1988 words · ZoomQuiet

PyCoder 559

从头构建SQL引擎 原文: PyCoder’s Weekly - Issue #559 230111 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 230111 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 发现 bpython: 具有类似 IDE 功能的 Python REPL REAL PYTHON In this tutorial, you’ll learn about bpython, an alternative Python REPL that brings code suggestions and many other IDE-like features to the terminal. Once you discover how much bpython can improve your productivity, you’ll never want to return to using the vanilla Python REPL again. (是也乎: 知道 bpython 也有小15年了… 没想到还在发展; ) Python 3.12 能用 perf 工程 PETER MCCONNELL Python 3.12 can run in a special mode that allows Python functions to appear in the output of the Linux perf profiler. This article walks you through a dummy application and using the profiler to find the bad parts. 使用原生二进制文件打包 PYPACKAGING-NATIVE.GITHUB.IO The pypackaging-native site is a collection of content about key Python packaging topics and issues for projects using native code, with a focus on scientific, data science, and ML/AI projects in the PyData ecosystem. Pillow 9.4.0 发布 PILLOW.READTHEDOCS.IO (是也乎: 原名 PIL 现在是真的变成不可替代的核心常用模块了… ) Plone 6.0 发布 PLONE.ORG (是也乎: 等等 Plone 还活着? ) Django Bugfix 发布: 4.1.5 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2023-01-11 · 4 min · 1871 words · ZoomQuiet

PyCoder 558

无聊的 Python:代码质量 原文: PyCoder’s Weekly - Issue #558 230104 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 230104 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 2022 年 Real Python 教程和视频课程总结 REAL PYTHON PODCAST “It’s been another year of changes at Real Python! The Real Python team has written, edited, curated, illustrated, and produced a mountain of Python material this year. We added some new members to the team, updated the site’s features, and created new styles of tutorials and video courses.” (是也乎: 嘦认真,呈体系的搞, 任何教程都有市场… ) 对 Python 虚拟环境工作流程进行分类 BRETT CANNON This article discusses the various ways of creating and managing Python virtual environments, including what kinds of tools are used. It categorizes the different styles and describes the impacts of the choices you make on your workflow. (是也乎: 结论非常社区化了还是要 EPE 来完成最终盖棺嘛? 不过, conda 已经将生意作起来了, 变成市场标准也是指日可待? ) 受损的 PyTorch-nightly 依赖链 PYTORCH.ORG The nightly PyTorch build was compromised between December 25 and 30th. This article describes what happened. Stable release branches were not effected. There is also an associated Hacker New Discussion. (是也乎: 在此场景中如何使用 上游思维 来完成修补? ) PyPy v7.3.11 发布 PYPY.ORG NumPy 1.24 发布 NUMPY.ORG PyConDE 2023 提案征集: 1 月 5 日截止 PYCON.DE • Shared by Olakunle Olaniyi 探讨/吐糟 Discussions NIL ...

2023-01-04 · 5 min · 2049 words · ZoomQuiet