Issue 379

原文: PyCoder’s Weekly - Issue #379 什么是 Python 3.8 将带来的? JAKE EDGE “The Python 3.8 beta cycle is already underway, with Python 3.8.0b1 released on June 4, followed by the second beta on July 4. That means that Python 3.8 is feature complete at this point, which makes it a good time to see what will be part of it when the final release is made.” (是也乎: 已经开始期待 Py 4 了… 在老爹有生之年..应该规划好 Python 42 前所有开发呢. ) PyLint 误报… LUKE PLANT “In some recent discussion on Reddit, I claimed that, for cases where I’m already using flake8, it seemed as though 95% of Pylint’s reported problems were false positives. Others had very different experiences, so I was intrigued enough to actually do some measurements.” 理解 Python Traceback REAL PYTHON Learn how to read and understand the information you can get from a Python traceback. You’ll walk through several examples of tracebacks and see how to handle some of the most common types of exceptions in Python. (是也乎: 正如其名…倒追… ) Django vs Flask in 2019: 框架之选 MICHAEL HERMAN • Shared by Michael Herman In this article, you’ll take a look at the best use cases for Django and Flask along with what makes them unique, from an educational and development standpoint. (是也乎: Bottle 一生推… 不过,商业项目, Django 没问题. ) 字典在 Python REAL PYTHON video In this course on Python dictionaries, you’ll cover the basic characteristics of dictionaries and learn how to access and manage dictionary data. Once you’ve finished this course, you’ll have a good sense of when a dictionary is the appropriate data type to use and know how to use it. Python 3.8.0b3 可用于测试 PYTHON.ORG 讨论 Discussions ...

2019-08-01 · 4 min · 1883 words · ZoomQuiet

Issue 378

原文: PyCoder’s Weekly - Issue #378 创建用 Google 登录的 Flask 应用程序 REAL PYTHON In this step-by-step tutorial, you’ll create a Flask application that lets users sign in using their Google login. You’ll learn about OAuth 2 and OpenID Connect and also find out how to implement some code to handle user session management. (是也乎: 如何基于一个不存在的网站完成用户登录检验? ) Guido 有关 Python 上 PEG Parsers GUIDO VAN ROSSUM “Some years ago someone asked whether it would make sense to switch Python to a PEG parser. [… ] I looked into it a bit and wasn’t sure what to think, so I dropped the subject. Recently I’ve learned more about PEG (Parsing Expression Grammars), and I now think it’s an interesting alternative to the home-grown parser generator that I developed 30 years ago when I started working on Python.” (是也乎: 老爹难得放话了… 有趣, 但是, 只能放弃. ) Pip 决定前前兼容 Python 2.x PYPA.IO “pip will continue to ensure that it runs on Python 2.7 after the CPython 2.7 EOL date. Support for Python 2.7 will be dropped, if bugs in Python 2.7 itself make this necessary (which is unlikely) or Python 2 usage reduces to a level where pip maintainers feel it is OK to drop support. The same approach is used to determine when to drop support for other Python versions.” (是也乎: 顺应民意… 无论 官方是否支持 Py2 代码, 海量 Py2 only 的包是应该长久支持的. ) 日志在 Python REAL PYTHON video Python provides a logging system as a part of its standard library, so you can quickly add logging to your application. In this course, you’ll learn why using this module is the best way to add logging to your application as well as how to get started quickly, and you will get an introduction to some of the advanced features available. (是也乎: 视频教程,如何日志… 不过,这事儿, 在Python 不是太困难, 而是太容易, 以至难以决定用哪种姿势… ) 通过构造复本来理解 Celery 如何工作 KOMU WAIRAGU • Shared by Komu Wairagu “A delayed job processor (also called a background processor, asynchronous task queue, etc.) is a software system that can run code at a later time. Examples of such software includes Celery, Resque, Sidekiq, and others. In this post we will try and understand how these things work by building a clone/replica of such software.” 简化您的 Python 开发人员环境 MASON EGGER • Shared by Python Bytes FM Three tools (pyenv, pipx, pipenv) make for smooth, isolated, reproducible Python developer and production environments. (是也乎: 混合这么多环境管理工具, 怎么叫简洁呢? ) 讨论 Discussions ...

2019-07-24 · 4 min · 1987 words · ZoomQuiet

Issue 377

原文: PyCoder’s Weekly - Issue #377 用 Collaborative Filtering 构建推荐引擎 REAL PYTHON In this tutorial, you’ll learn about collaborative filtering, which is one of the most common approaches for building recommender systems. You’ll cover the various types of algorithms that fall under this category and see how to implement them in Python. (是也乎: 有公式原理分析的教程… ) Python GIL GIL是否已被杀? ANTHONY SHAW Thoughts on upcoming features in Python 3.8 and 3.9, like sub-interpreters, that will make writing high-performance concurrent programs that are CPU-bound more convenient. (是也乎: GIL 将被谋杀嘛? ) The Python Celery Cookbook: 小工具,巨大的可能性 VADYM ZAKOVINKO “Everyone in the Python community has heard about Celery at least once, and maybe even already worked with it. Basically, it’s a handy tool that helps run postponed or dedicated code in a separate process or even on a separate computer or server. This saves time and effort on many levels.” (是也乎: 又见 芹菜… ) 在 Python 3 中将列表转换为集合的速度更快: set() or {*} MICHAEL BASSILI Perhaps surprisingly, there is a performance difference between the two. Read Michael’s article to find out why using a {*} set literal is faster. 用 Keras 和深度学习进行视频分类 ADRIAN ROSEBROCK In this tutorial, you will learn how to perform video classification using Keras, Python, and Deep Learning. (是也乎: pyimagesearch.com 是位非常厉害的光头程序猿, 一己之立写书/设计课程,完成原创模块, 四处演讲/咨询…. 专注 CV ) 讨论 Discussions ...

2019-07-17 · 4 min · 1685 words · ZoomQuiet

Issue 376

原文: PyCoder’s Weekly - Issue #376 CPython 3.7.4 现已释放 PYTHONINSIDER.BLOGSPOT.COM Lots of bug fixes and small improvements. Full changelog here. Python 3.8 先睹为快 JERRY PUSSINEN Playing around with new features in Python 3.8 such as assignment expressions (“walrus operator”), positional-only arguments, and runtime audit hooks. 用 Python 读写文件 REAL PYTHON video Learn about reading and writing files in Python from the ground up. You’ll cover everything from what a file is made up of to which libraries can help you along that way. You’ll also take a look at some basic scenarios of file usage as well as some advanced techniques. 用 Python 将数据加载到 PostgreSQL 的最快方法 HAKI BENITA This article explores ways to import messy data from remote source into PostgreSQL using Python and the Psycopg2 module. The data is big, fetched from a remote source, and needs to be cleaned and transformed. (是也乎: 简单说无论什么渠道, Pg 都吃的了, 问题压力在 Python 这边儿… ) 用 Docker 将 Django 部署到 Heroku MICHAEL HERMAN This post looks at how to deploy a Django app to Heroku with Docker via the Heroku Container Runtime. (是也乎: 各家 PaaS 都用上了自己的容器平台… ) 讨论 Discussions ...

2019-07-10 · 4 min · 1638 words · ZoomQuiet