pythonista-weekly : Pyw 446

欢迎阅读《pythonista周刊》第446期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-446 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): 使用 Datadog 监控你的python指标,日志,集群分析。使用Datadog的应用分析,可以深入任何纬度并且能找到你所需要的信息,来进行动态诊断和快速故障排除。来免费试用 14 天吧! ...

2020-04-25 · 6 min · 2681 words · ZoomQuiet

Issue 417

可以在 Zoom/Skype 中使用的替身 原文: PyCoder’s Weekly - Issue #417 200422 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200422 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. pip 20.1b1 发布, 包含新依赖性解析器 GITHUB.COM/PYPA The beta release of pip version 20.1 has dropped and included the next-generation dependency resolver! The resolver is currently turned off by default because it’s unstable and not ready for everyday use. The pip mainainters do encourage users to try it out, however, and feedback on the new resolver can be submitted by filling out a survey. (是也乎: 不过默认关闭着… ) Python 软件基金会新闻: 谢谢捐赠/赞助者 PSF BLOG “Thanks to [the] generosity of individual and corporate donors and decreasing PyCon 2020 expenses, we estimate that the PSF will now only need $141,713 from its financial reserve to get through 2020.” (是也乎: 嗯哼? 老爹在任时, 从没见这种嗯哼? ) Python 内建 Pathlib 其实很棒 REDOWAN DELOWAR • Shared by Redowan Delowar Python 3’s pathlib module has taken some time to gain traction since it was introduced in Python 3.4. After all, the os.path module had been the de facto tool for working with paths in Python. Why change code that works? Learn why pathlib is a better choice for working with file paths in Python in this thorough tutorial. Pytest 实效 Python 测试 REAL PYTHON In this tutorial, you’ll learn how to take your testing to the next level with pytest. You’ll cover intermediate and advanced pytest features such as fixtures, marks, parameters, and plugins. With pytest, you can make your test suites fast, effective, and less painful to maintain. (是也乎: 不过, 传统场景还是 unittest 为先吧? ) Python 2.7.18, 一个时代的终结 BENJAMIN PETERSON “Python 2.7.18 is a special release. I refer, of course, to the fact that ‘2.7.18’ is the closest any Python version number will ever approximate e, Euler’s number. Simply exquisite!” (是也乎: 放心, 俺一定会忠诚再用 42 年的… ) Python 编码面试: 提示和最佳做法 REAL PYTHON course Learn how to take your Python coding interview skills to the next level and use Python’s built-in functions and modules to solve problems faster and more easily. (是也乎: 关键还是用Python的内置函数和模块哪… ) 讨论 Discussions ...

2020-04-22 · 5 min · 2499 words · ZoomQuiet

pythonista-weekly : Pyw 445

欢迎阅读《pythonista周刊》第445期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-445 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): 使用 Datadog 监控你的python指标,日志,集群分析。使用Datadog的应用分析,可以深入任何纬度并且能找到你所需要的信息,来进行动态诊断和快速故障排除。通过免费的Datadog APM试用版来提高应用程序性能。 ...

2020-04-18 · 4 min · 1570 words · ZoomQuiet

Issue 416

嫑再将你 Python 模块命名为 utils 原文: PyCoder’s Weekly - Issue #416 200415 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200415 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 Python 和 OpenCV 开源工具实现虚拟背景 BENJAMIN ELDER With so much of the world stuck at home thanks to the COVID-19 pandemic, more and more workplaces are using video conferencing solutions—such as Zoom—to bring work to your living room. Or kitchen. Or bedroom. Or bathroom. OK… hopefully not that last one! Why not spice up your video conferencing with some awesome, homemade virtual backgrounds built with Python and OpenCV? (是也乎: 用一个简单例子来描述, 开源世界机械视觉最常见的应用… ) 继承与组成: Python OOP指南 REAL PYTHON course Learn about inheritance and composition in Python. You’ll improve your object-oriented programming (OOP) skills by understanding how to use inheritance and composition and how to leverage them in their design. (是也乎: 很多 OOP 概念都是在特殊场景中才感觉舒服的… 但是,我们学习使用却反过来, 先尝试理解各种模型, 再去撞场景… ) 嫑再将你 Python 模块命名为 utils SEBASTIAN BUCZYŃSKI opinion “Do not use utils as a name for your Python module neither put it into a class name. Try to be more specific about the role of code – e.g. create a place for validators, services or factories. If the role criterion doesn’t help and you really dealing with utils, try grouping code by its theme.” (是也乎: utils 已经变成垃圾箱了… 最好给出真正有意义的模块名 ) 从分块到并行: 借助 Dask 加速 Pandas ITAMAR TURNER-TRAURING In a recent article, Itamar Turner-Trauring discussed how to read large datasets with Pandas using a chunking technique to reduce memory overhead. Chunking has another advantage: it enables parallelism, which can dramatically speed up processing time. Learn why and how to enable parallelism for your Pandas processing code using the Dask library. 数据科学: 现实不符合预期 DAN FRIEDMAN opinion “Seven common ways a data science role may not meet your expectations through tens of data scientist interviews and anecdotes from popular media.” Also see the related discussion on Hacker News 如何在 pytest 中为 Django 模型提供测试装置 REAL PYTHON In this step-by-step tutorial, you’ll learn how to use fixtures to simplify your testing in pytest. If you use Django, pytest fixtures can help you write tests that are painless to update and maintain even as you make changes to your models. PyPy 7.3.1 发布 PYPY BLOG 讨论 Discussions ...

2020-04-15 · 5 min · 2476 words · ZoomQuiet