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

pythonista-weekly : Pyw 444

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

2020-04-12 · 4 min · 1763 words · ZoomQuiet

Issue 415

Python 编程令俺数学长进了… 原文: PyCoder’s Weekly - Issue #415 200408 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200408 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Arduino 上 Python 如何开始? REAL PYTHON course Discover how to use Arduino microcontrollers with Python to develop your own electronic projects. You’ll learn how to set up circuits and write applications with the Firmata protocol. You’ll control Arduino inputs and outputs and integrate the board with higher-level apps. (是也乎: 其实有更加友好的 MicroPython - Python for microcontrollers 生态哪… ) 最期望一早告诉俺的 有关 Python 中多进程处理的事情[2019] PAMELA MCA’NULTY Python’s multiprocessing module abstracts away a lot of the overhead involved in writing multiprocessing code in Python. But while it might be “easy” to implement multiprocessing in Python, it’s not always easy to do multiprocessing well. In this article, Pamela McA’Nulty shares five tips to help you write better multiprocessing code. (是也乎: 相比多线程, 多进程已经少很多坑了.. 但是, 那也比不上 Pyhton 自己不管任何 多XX , 运行时管理丢给系统监管就好. ) PyPI 新赞助计划 PSF PYTHON SOFTWARE FOUNDATION The Packaging Working Group of the Python Software Foundation is launching an all-new sponsorship program to sustain and improve Python’s packaging ecosystem. Funds raised through this program will go directly towards improving the tools that your company uses every day and sustaining the continued operation of the Python Package Index. pyproject.toml 到底是咩? BRETT CANNON “I have seen setuptools users use pyproject.toml because they were ‘told to by ‘ without knowing the entire point behind the file. And so I decided to write this blog post to try and explain to setuptools users why pyproject.toml exists and what it does as it’s the future of packaging in the Python ecosystem.” 配置很糟? 尝试上真正的编程语言 JESTEM KRÓLICZKIEM “In this post, I’ll try to explain why I find most config formats frustrating to use and suggest that using a real programming language (i.e. general purpose one, like Python) is often a feasible and more pleasant alternative for writing configs.” (是也乎: 配置和代码的边界太难以嗯哼了.. 俺一直使用 .py 当配置文件使用, 直到交付其它人用时, 才发现这太容易引入无法预料的人为 bug 了… 然后, 开始各种专用配置文件的尝试… 然后… 当然又回到 .py 了哈. ) 2020 Q1 PSF 资深会员 PSF PYTHON SOFTWARE FOUNDATION The PSF Fellow Members for Q1 2020 have been announced. Congratulations to all of the new fellows! Python 2.7.18 候选版-1 已经发布 PSF PYTHON SOFTWARE FOUNDATION “Python 2.7.18 will be the last release of the Python 2.7 series, and thus Python 2.” (It’s not dead, it’s resting!) 讨论 Discussions ...

2020-04-08 · 6 min · 2892 words · ZoomQuiet