pythonista-weekly : Pyw 486

欢迎阅读《pythonista周刊》第486期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-486 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 新闻 Pattern matching accepted for Python 经过一系列讨论,Python 指导委员会接受了有争议的提议,即在语言中添加模式匹配原语。 ...

2021-02-12 · 3 min · 1470 words · ZoomQuiet

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

pythonista-weekly : Pyw 485

欢迎阅读《pythonista周刊》第485期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-485 翻译:Dustyposa 新闻 PyCon US 2021 Registration Now Open 文章、教程与话题 在Cython中实现C++虚函数 本文介绍了两种从 Python 中使用 C++ 代码的策略,需要在 C++ 抽象类中实现虚函数。 利用Reddit文本数据进行交易的情感分析 一篇关于利用 r/wallstreetbets 的数据进行交易情感分析的帖子。 Automating My Job with GPT-3 使用 GPT-3 生成数据库就绪的 SQL 来回答业务问题。 Python Pandas For Your Grandpa 关于 Python Pandas 的免费课程。 使用Python检测USB驱动器在Windows上的插入和移除 监视 Windows 上的新驱动器并执行任务。 意外的发现,释放了20GB的未使用索引空间 如何在不丢弃索引或删除数据的情况下释放空间。 Property-Based Testing with hypothesis, and associated use cases 这篇文章介绍了基于属性的测试这一概念,并描述了一些可以开始将PBT集成到测试套件中的方法。 用马尔科夫链生成文本 通过从头开始构建马尔科夫链,生成随机但熟悉的文本。 Analyze your Peloton workout stats with real-time updates (template and scripts) 关于如何将 Peloton 锻炼统计数据同步并分析到 Coda 中的自定义仪表盘的教程。通过谷歌应用脚本或谷歌云上的无服务器功能进行同步。 Database Constraints in Django 了解 Django 支持的各种数据库约束,以确保数据的完整性。 Novice to Advanced RegEx in Less-than 30 Minutes in Python 一个完整的教程,涵盖了你需要知道的关于正则表达式的一切–对于任何学习代码的人来说都是必不可少的,对于任何对自然语言处理感兴趣的人来说更是如此。 Why does my memory usage explode when concatenating dataframes? Storing string columns as categories can result in massive memory savings when working with large dataframes. However, those savings can surprisingly disappear when we start concatenating dataframes. 使用Python从头开始解释神经网络。 Creating an Attendance Tracker Using Slack and Google Sheets Messing around with the Python shell ...

2021-02-06 · 3 min · 1286 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