Issue 459

指导委员会接受 PEP 634 原文: PyCoder’s Weekly - Issue #459 210210 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210210 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 的整数如何工作 VICTOR Python’s integer datatype is pretty different from most other languages because they allow arbitrary precision. Learn how integers work under the hood in this in-depth article. Python 初学者友好与对高级用户支持功能之间纠结 ANDRÉ ROBERGE Python has made some big improvements to tracebacks in recent versions. See how tracebacks have evolved over the last couple of major releases and where there’s still some work left to be done. Check out the discussion on Hacker News. 在 Cython 中实现 C++ 虚函式 JUAN DIEGO CABALLERO • Shared by JDC Learn how one team created Python bindings for a C++ library by implementing virtual functions in Cython. This article is a follow-up to an article we featured last year. 用 hypothesis 基于属性的测试以及相关用例 YING WANG Testing software is hard. Property-based testing can help you create more effective tests. Learn how to do property-based testing with the hypothesis framework by looking at some real-world use cases. (是也乎: 不是那个 珢神… ) Python 指导委员会接受 PEP 634 PYTHON.ORG Pattern matching, which adds a kind of switch-case statement to Python, has been accepted. (是也乎: PEP 的受理速度越来越快了 ) 用 Pip 和 Virtualenv 管理 Python 依赖关系 REAL PYTHON course Get up to speed with Python dependency management quickly and go from “writing scripts” to “building applications” with this complete course. (是也乎: ) 探讨/吐糟 Discussions ...

2021-02-10 · 4 min · 1696 words · ZoomQuiet

Issue 458

老爹和爱豆在 Twitter 上的闲聊… 原文: PyCoder’s Weekly - Issue #458 210203 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210203 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 在 Pandas 查找和修复意外的内存占用 MARTIN JONES • Shared by Martin Jones Storing string columns as categories can result in massive memory savings when working with large dataframes in pandas. However, those savings can surprisingly disappear when you start concatenating dataframes. In this article, you’ll learn why, and find out how to fix it. (是也乎: 这应该也是门生意了… ) Constant Folding 在 Python ARPIT BHAYANI Every programming language aims to be performant and Python is no exception. Take a dive deep into Python internals and find out how Python makes its interpreter performant using a technique called constant folding. (是也乎: 叕一种性能技巧的 Pythonic 化 ) 用 Datadog APM 可视化/优化 Python 应用程序性能 DATADOG sponsor Datadog APM generates detailed flame graphs from real requests so you can see which services or calls are generating errors or contributing to overall latency. Dive deeper into your production code with an always-on code profiler to troubleshoot. Start monitoring your applications with a free trial → (是也乎: 用了都说好. ) Pyston 2.1 超越 Python 3.8/3.9 性能 MICHAEL LARABEL Pyston is an alternative Python interpreter. According to these benchmarks, it’s significantly outperforming Python 3.8 and 3.9. (是也乎: 亲侄儿, 也放弃 Py2 了? ) Python 和 NumPy 实现随机梯度下降算法 REAL PYTHON Learn what the stochastic gradient descent algorithm is, how it works, and how to implement it with Python and NumPy. DjangoCon Europe 2021 发布 DJANGO SOFTWARE FOUNDATION spaCy v3.0 发布 EXPLOSION.AI NumPy 1.20.0 发布 NUMPY.ORG (是也乎: 说这是史上最大一次合并, 改变了非常多的特性, 并放弃了对 Py3.6 以下的支持. ) 探讨/吐糟 Discussions ...

2021-02-03 · 4 min · 1769 words · ZoomQuiet

Issue 457

pip 不再支持 Python 2 原文: PyCoder’s Weekly - Issue #457 210127 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210127 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 解析 Python 语句 BRETT CANNON Learn how Python’s for statement works behind the scenes by diving into the bytecode and CPython source code. (是也乎: 老爹早已设计好了一切 ) 您真的不需要 Virtualenv FROST MING • Shared by Frost Ming Virtual environments are a staple of the Python world, but they aren’t without their drawbacks. Learn why virtual environments aren’t always the right solutions and how to get around them without sacrificing dependency isolation. (是也乎: PEP 582 将 Python 拉入 NPM 黑洞世界的提案… ) ...

2021-01-27 · 4 min · 1750 words · ZoomQuiet

Issue 456

Python Web 开发赞叹中的赞叹 原文: PyCoder’s Weekly - Issue #456 210120 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210120 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 Pandas 和 Outlook 自动创建和分发 Excel 文件 CHRIS MOFFITT See how a little bit of Python can go a long way to automating manual processes and save businesses valuable time. (是也乎: Excel 早已不是一个工具, 而是一个标准数据格式了. ) 追踪Python GIL MAARTEN BREDDELS Lear how to trace and visualize the GIL, how the GIL affects performance, and how you use this information to write higher performance Python code. (是也乎: 刚好可以对比参考: 沈崴 - 为什么 Python GIL 是一个杰出的设计 ) 异或戏法 FLORIAN HARTMANN Is the exclusive or (XOR) operator something you have in your programming toolit? Learn how it works and how to use it to solve some common interview questions. Python 排序算法简介 REAL PYTHON In this course, you’ll learn all about five different sorting algorithms in Python from both a theoretical and a practical standpoint. You’ll also learn several related and important concepts, including Big O notation and recursion. (是也乎: 不过, 无论怎么理解排序, 日常也都是调用 max/min 之类内置函式的哈. ) 创造错误代码以赢得奖品 AROBERGE.BLOGSPOT.COM Get a chance of winning a prize by writing code with an error that friendly-traceback can’t properly analyze. Django 3.2 Alpha 1 发布 DJANGO SOFTWARE FOUNDATION PyCon 2021 提案征集截止:2月12日 PYCON.ORG 探讨/吐糟 Discussions ...

2021-01-20 · 4 min · 1967 words · ZoomQuiet