Issue 385

原文: PyCoder’s Weekly - Issue #385 190911 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 190911 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Python 登顶 “IEEE Top Programming Languages of 2019” 排名 IEEE.ORG Python’s growth in popularity has been incredible. This list is interesting because it allows you to adjust the weights for the various factors that determine the ranking. (是也乎: 国内早已大吼了… 实在是其它语言, 对快速变化的混乱数据一直并没什么关注, 反而一直在一线和各种混乱共处的 Python 长期积累出来一堆神器. ) MATLAB vs Python: 为什么以及如何进行切换 REAL PYTHON Learn about MATLAB vs Python, why you should switch from MATLAB to Python, the packages you’ll need to make a smooth transition, and the bumps you’ll most likely encounter along the way. (是也乎: 其实很友好咯… ) 我们的类型之旅: 检验4百万行 Python 代码 DROPBOX.COM “Dropbox has been one of the first companies to adopt Python static type checking at this scale. These days thousands of projects use mypy, and things are quite battle tested.” Related discussion on Hacker News. (是也乎: Dropbox 实锤,为什么值得上类型系统… ) 跟踪自然语言处理的进展 NLPPROGRESS.COM Repository to track the progress in Natural Language Processing (NLP), including the datasets and the current state-of-the-art for the most common NLP tasks. Python *args 和 **kwargs : 揭秘 REAL PYTHON In this step-by-step tutorial, you’ll learn how to use args and kwargs in Python to add more flexibility to your functions. You’ll also take a closer look at the single and double-asterisk unpacking operators, which you can use to unpack any iterable object in Python. (是也乎: 这个插画很传神… ) 落日背影 Python 2 PYTHON.ORG PSF notes about the end of support for Python 2.x. Related discussion on Hacker News. Django 3.0 Alpha 1 发布 DJANGOPROJECT.COM Changelog here. 讨论 Discussions ...

2019-09-11 · 4 min · 1942 words · ZoomQuiet

Issue 384

原文: PyCoder’s Weekly - Issue #384 CPython 发布 3.8.0b4 PYTHON.ORG This is the last beta before 3.8 RC1. 用 Python 和 spaCy 进行自然语言处理 REAL PYTHON In this step-by-step tutorial, you’ll learn how to use spaCy. This free and open-source library for Natural Language Processing (NLP) in Python has a lot of built-in capabilities and is becoming increasingly popular for processing and analyzing data in NLP. (是也乎: 没听说过哪…嗯哼, 不支持中文… ) Python 包索引的实证分析 (PDF) ARXIV.ORG • Shared by Python Bytes FM “In this research, we provide a comprehensive empirical summary of the Python Package Repository, PyPI, including both package metadata and source code covering 178,592 packages, 1,745,744 releases, 76,997 contributors, and 156,816,750 import statements.” (是也乎: 叕一则老 FM 节目… ) 教老 Pythonista 新 Gopher 技巧 (Go vs Python) ED CREWE opinion “So in conclusion, Python may not be a Gopher Snake but for this task it does rather eat Go for breakfast.” (是也乎: 扎心了老铁… ) 添加动作到 PEG Grammar GUIDO VAN ROSSUM Part 6 of Guido’s series on PEG parsers. (是也乎: 老爹公开发话系列… ) Django Bugfix 发布版本: 2.2.5, 2.1.12, and 1.11.24 DJANGOPROJECT.COM 讨论 Discussions ...

2019-09-04 · 4 min · 1731 words · ZoomQuiet

Issue 383

原文: PyCoder’s Weekly - Issue #383 您的 CPython 源代码指南 REAL PYTHON In this detailed Python tutorial, you’ll explore the CPython source code. By following this step-by-step walkthrough, you’ll take a deep dive into how the CPython compiler works and how your Python code gets executed. (是也乎: 结合多年前的源代码鉴赏就知道, 源代码, 想看一定能看懂, 就好比, 建筑师通过复杂计算/设计/思考/施工, 完成的建筑, 虽然无法简单的透视一切, 但是, 依然可以通过各种行为, 快速理解真正的设计点是什么… ) 函式重构为多个退出点 MARTIJN FAASSEN “It’s sometimes claimed that not only should a function have a single entry point, but that it should also have a single exit. One could argue such from sense of mathematical purity. But unless you work in a programming language that combines mathematical purity with convenience [… ] that point seems moot to me.” (是也乎: 良心经验, 多退出点, 也是俺写代码时, 经常干的事儿, 但是, 从没完备思考过, 为什么, 以及有什么问题和好处… ) Python 3 自动更新 PY3READINESS.ORG This is an automated Python 3 support table for the most popular packages. 360 out of the 360 most downloaded packages on PyPI now support Python 3. (是也乎: 不是俺敏感哪, 这批包和 360 真的没什么关联嘛? ) 到时候摆脱 Python 2 NCSC.GOV.UK “Don’t constrict yourself, Python 2 slithers off into the sunset in 2020.” (是也乎: 放心, 有的场景中, Python 1.* 都在用呢 ) Onelinerizer: 将Python 代码重写为单行程序 ONELINERIZER.COM Fun! (是也乎: 说是任何程序哈… ) 讨论 Discussions ...

2019-08-28 · 4 min · 1833 words · ZoomQuiet

Issue 382

原文: PyCoder’s Weekly - Issue #382 有效的 Python 环境: 构造自己的家 REAL PYTHON This guide will walk you through the decisions you need to make when customizing your development environment for working with Python: shells, terminal emulators, version management (pyenv), virtual environments & pipenv, package management, and more. (是也乎: pyenv 是正确的开始. ) 规模 Python 静态分析: Instagram 版本 BENJAMIN WOODRUFF (INSTAGRAM) Instagram’s back-end is a massive Django app with several million lines of code. This post is about how they’ve used linting and automated refactoring to help manage the scale of their Python codebase. (是也乎: 这之前 google 已经完成更加大规模静态自动化分析… 只是, 故事主人没怎么说… ) 为 Python 编写自定义 profilers ITAMAR TURNER-TRAURING In this article you’ll learn how to write custom profilers, and in particular profilers that will help you pinpoint the places in your code where it just sits there waiting. Python Web 框架概述 STXNEXT.COM Django, Flask, Pyramid, and many, many others—get an overview of what’s available so you can choose the right Python framework for your web development project. 设计持续构建系统: 用 Sanic 处理 Webhooks CHRISTIAN MEDINA • Shared by Cristian Medina How to use Python and Sanic to handle webhook events from GitHub in continuous build systems. PyCon US 2020 网站已上线 PYCON.ORG PyCon 2020 takes place April 15–23, 2020 in Pittsburgh, PA. (是也乎: 加油 PyCon2020China , 目测咱们的 11月能上线就是巨大的进步… 以往都是下半年了,才上线当年的… ) 讨论 Discussions ...

2019-08-21 · 5 min · 2235 words · ZoomQuiet