pythonista-weekly : Pyw 437

欢迎阅读《pythonista周刊》第437期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-437 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): python开发者都需要的Vettery Vettery是一个招聘网站,它改变了人们应聘或者雇佣的方式。准备好换工作地方了吗?免费制作简历,你的薪资你说了算,现在就和顶级雇主的HR联系吧! ...

2020-02-22 · 6 min · 2745 words · ZoomQuiet

Issue 408

一起寻找完美的 Python 代码编辑器吧? 原文: PyCoder’s Weekly - Issue #408 200205 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200205 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. 寻找完美的Python代码编辑器 REAL PYTHON video Find your perfect Python development setup with this review of Python IDEs and code editors. Writing Python using IDLE or the Python REPL is great for simple things, but not ideal for larger programming projects. With this course you’ll get an overview of the most common Python coding environments to help you make an informed decision. (是也乎: 真蟒引战技巧越来越好了, 无论计算机发展到哪儿, 嘦说最好的编辑器, 一定一地鳮毛的 Vim/Thonny/repl.it/Visual Studio Code/PyCharm/Jupyter 这都哪和哪儿比哪…根本比不到点儿上的… ) Python 重载函数 ARPIT BHAYANI Python does not natively support function overloading (having multiple functions with the same name.) See how you can implement and add this functionality using common language constructs like decorators and dictionaries. Related discussion on Hacker News. PEP 614 (草稿): 放宽装饰器语法限制 PYTHON.ORG “Python currently requires that all decorators consist of a dotted name, optionally followed by a single call. This PEP proposes removing these limitations and allowing decorators to be any valid expression.” For example, this would become a valid decoration: @buttons[1].clicked.connect (是也乎: 老爹支持的一则草案 希望将类似: button_1 = buttons[1] … @button_1.clicked.connect def eggs(): … 合理化为: @buttons[1].clicked.connect def eggs(): … ) 建立良善的 Python 测试 CHRIS NEJAME • Shared by Chris NeJame A collection of testing maxims, tips, and gotchas, with a few pytest-specific notes. Things to do and not to do when it comes to writing automated tests. (是也乎: 深切体会过, 好的测试, 必须有好的可测试代码配合. 否则, 太南了 ) Python 类型边缘 STEVE BRAZIER Adding more strict typing around the edges of a Python system for better error messages and design, using Pydantic and mypy. Interesting read! Python 3.9 StatsProfile DANIEL OLSHANSKY The author of the profiling API improvements coming to Python 3.9 demonstrates the feature and explains how it was added to CPython. 机器人/生成艺术和Python,我的天哪 GEOFFREY BRADWAY How to make cool looking plotter art with NumPy, SciPy, and Matplotlib. (是也乎: 简直就是抖音课程营销必备展示小视频 ) PyCon US 2020 教程时间表 PYCON.ORG Python 3.8.2rc2 可用以测试 PYTHON INSIDER 讨论 Discussions NIL ...

2020-02-19 · 6 min · 2535 words · ZoomQuiet

pythonista-weekly : Pyw 436

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

2020-02-15 · 6 min · 2840 words · ZoomQuiet

Issue 407

Guido 老爹义劝快乐的为 Python 提贡献吧 原文: PyCoder’s Weekly - Issue #407 200205 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200205 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. 通过比较流行的项目模板了解 Python 工具的最佳实践 JONAS KEMPER “Use Flake8, pytest, and Sphinx in your current Python project. Also evaluate pre-commit, black, and Pylint. For your next project, consider adding poetry and Dependabot.” (是也乎: 老爹对结果呛声指点更加实在的… @gvanrossum You missed mypy. Simpler docs use markdown, not ReST (Sphinx). Black is overrated unless your team argues over style a lot. You don’t need Pylint if you’re using flake8. Never heard of poetry or dependabot. And you should use a CI solution, e.g. Travis-CI, to run your tests. ) ...

2020-02-12 · 6 min · 2744 words · ZoomQuiet