Planet DebugUself

July 10, 2019

蠎周刊

Issue 376

原文: PyCoder's Weekly - Issue #376

realpython


Lots of bug fixes and small improvements. Full changelog here.

Playing around with new features in Python 3.8 such as assignment expressions (“walrus operator”), positional-only arguments, and runtime audit hooks.

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.

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 这边儿...

)

This post looks at how to deploy a Django app to Heroku with Docker via the Heroku Container Runtime.

(是也乎:

各家 PaaS 都用上了自己的容器平台...

)

讨论

Discussions

Related discussion on Hacker News.

(是也乎:

动态网页终于回到 汇编时代...

)

文章,教程和嗯哼

Articles, Tutorials and Talks

Get a guided tour through Python’s best practices so you can write cleaner, more readable, and more Pythonic code.

(是也乎:

Pythonic

很明显, 插画师, 并不理解什么是 Pythonic

)

An interview with Henry Percival about software architecture patterns for large and complex systems, and how they translate to Python projects.

(是也乎:

DDD 在 Python , 其实...

)

Dynamic programming is breaking down anproblem into smaller sub-problems, and storing the solution to each sub-problems so we don’t repeat calculations.

In this article, you will learn how to use Python’s built-in help system that you can use to look up documentation directly from within a REPL session.

(是也乎:

其实内置文档非常丰富的, 只是调阅有技巧,又不支持 i18N...

)

Examples of object-oriented programming (OOP) concepts of abstraction, encapsulation of data, inheritance, polymorphism, meta-classes and decorators.

(是也乎:

古典主义 OOP

)

This article describes how to use Microsoft Azure’s Face API with Python to identify faces in images and determine if they are of the same person.

(是也乎:

Azure’s

在AliYun 开放人脸识别半年后, Azure 也开放了...

)

What makes Python popular? What is the average Python developer salary in the US? And how many Python programmers are there in the world?

(是也乎:

扎心了, 老铁...

11~12万$/年

)

Why type hints were added to Python and how they can help you write more maintainable code and make Python programming more enjoyable.

Dynamic arrays are a new feature in Microsoft Excel. See how they work with Python and xlwings UDFs.

(是也乎:

UDFs 为了兼容 OOXML 一直在拼命

)

Take a guess…

(是也乎:

小领域中常用代码段...

)

(是也乎:

电报频道收集到的技巧

)

(是也乎:

MATLAB 是 BMW; Python 是 Ford 皮卡; Julia 是 Tesla.

哈?

)

(是也乎:

用 Python 完成一个定期任务并不复杂, 困难的是如何保证守护真的能长期运行等待?

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

tetris

单文件游戏

git clone https://github.com/nickmpaz/tiny-tetris && cd tiny-tetris && python3 tiny-tetris.py

目的是可以在任何有网络的设备中, 随时恢复摸鱼?

)

(是也乎:

Python 程序猿整体失业指日可待?

)

(是也乎:

Toolkit

收费 GUI 调试工具

)

(是也乎:

少见的 1Password 次生工具

)

(是也乎:

叕一个全栈式框架, 只是名字都没 Django 简洁的, 很难出头.

)

(是也乎:

解决远程数据仓库和本地数据处理进程间的交互问题.

)

(是也乎:

也是个不妥协工具

)

📆🐍 活动/大会

Events

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

开始报名, 190725截止,

课程: 0728~0908

~ helps you setup a new Python project

(是也乎:

Do With Py

总是永远有人问这个问题... 当然, 这个问题任何一个技术社区都有人在问...

其实, 本质上并不是对应技术是否有什么能力, 而是相反...

)

Jobs:

必须 Pythonic 相关

是也乎

  • 190710 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 190710 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.

by Zoom.Quiet at July 10, 2019 03:42 AM

July 03, 2019

蠎周刊

Issue 375

原文: PyCoder's Weekly - Issue #375

realpython


“Łukasz Langa, who is the release manager for the upcoming 3.8 release, as well as the manager for the date-to-be-determined release of 3.9, has proposed PEP 596 (“Python 3.9 Release Schedule (doubling the release cadence)”). As its name would imply, the PEP proposes halving the current release cycle to nine months, which would make the 3.9 release happen in June 2020.”

(是也乎:

事实证明, 开源项目版本攀爬速度,和基金会储备金数额呈正比关系

)

What would a minimal Python standard library (only enough code to successfully download and install other packages) look like? Nice research and writeup.

(是也乎:

这也算红学变种...

其实, miniPy 之类项目早已完成了这种鉴定

)

Learn how to approach functional programming in Python. You’ll cover what functional programming is, how you can use immutable data structures to represent your data, as well as how to use filter(), map(), and reduce().

(是也乎:

真蟒的 FP.py 嗯哼...

)

“Building robots seems expensive and complicated. However, it turns out that it’s relatively straightforward. Do you have an IQ higher than 90 and assorted random garbage lying around your house? Then you too can make a robot in a reasonably small amount of time.”

(是也乎:

叕一则和 RPi 来相关的嗯哼

)

In this step-by-step tutorial, you’ll cover how to use both Redis and its Python client library. You’ll learn a bite-sized slice of Redis itself and master the redis-py client library.

(是也乎:

Redis.py

)

“This is a subjective, primarily developer-ergonomics-based comparison of the three languages from the perspective of a Python developer”

(是也乎:

WoW 可见, Python 性能并没差太多...在数据量足够大时...

另外, 还有一种可能没测试:

indygreg/PyOxidizer: A modern Python application packaging and distribution tool

用 Rust 将 Python 再编译后...

)

Intro to SymPy, a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible.

(是也乎:

目标不是数值计算, 而是 计算机代数系统 (CAS)

)

讨论

Discussions

Text version of an interesting talk about making technology choices by Dan McKinley. Related Hacker News discussion here.

(是也乎:

所以, 俺一直说 PHP 是最好的语言

)

(是也乎:

WoW 超越 JAVA...可以说, Python 已经变成更加无聊的技术了

)

文章,教程和嗯哼

Articles, Tutorials and Talks

Adam built a high-accuracy parking space notification system with Python and Deep Learning. Very cool!

How to add custom GDB commands and pretty printers using the Python API.

(是也乎:

是否用 TDD 和是否上 GDB 是Python 开发阶段两大分水岭...

)

This post walks through the demo code from a talk given at DockerCon. It includes a CI/CD pipeline for a Python Flask app. The pipeline builds a Docker image, pushes the image to Docker Hub, and kicks off a deployment script which will run the app in a container on a DigitalOcean server.

(是也乎:

这么搞很磨硬盘就是了...

)

“I’ve definitely experienced situations where I had to sit in a room with lots of people and felt more and more tired the longer I spent in the room. I had never considered that this is more than just being bored, that there might be a physiological reason for this feeling.”

(是也乎:

随着 Raspberry Pi 4 的上市, 主力板上开发语言 Python 也就嗯哼起来了

CO₂ Monitor

)

Extracting contact information from emails using supervised machine learning algorithms.

(是也乎:

Spam 识别基础姿势, 经典.

)

Test your understanding of concurrency and parallel programming concepts in Python, such as the difference between CPU-bound and I/O-bound programs, the GIL, and more.

(是也乎:

Concurrency”

)

A look at some of the main ways to use NumPy and how it can represent different types of data like tables, images, text, etc.

(是也乎:

numpy-color-image

走心了, 非常好的可视化概念系列图...

)

Learn how to set up continuous integration and deployment for your Python projects using Semaphore, a cloud-based CI/CD service.

(是也乎:

徒手 CI ?

)

Learn to build your own smart baby monitor using Python, a Raspberry Pi, peripheral sensors and the Twilio API for sending SMS.

(是也乎:

这个明显用国内 AliYun 相同功能 API 也可以快速完成的

Baby Monitor

)

How to configure your host machine to connect to these systems and remotely perform Python development.

(是也乎:

嗯哼? 硬件和 VPS 一视同仁了? 嚓, CV 专家给出了一系列远程嗯哼的姿势, 可以说非常嗯哼了...

)

(是也乎:

叕一组新手常见手残行为检查表... 其实... PEP8 相关守则足够了.

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

叕一个交互 CLI 构造辅助库, 强化连续引导的嗯哼...

)

(是也乎:

古早味儿专用模块.

)

(是也乎:

import easyfile

data = easyfile.TextFile('/path/to/text')

data[0] # Access the first line of your text
data[-1] # Access the last line of your text
data[10:100] # Access the 10th line to the 100 the line of your text

等等, 怎么就随机了?

一个日本程序猿写给自己用的模块...都被发现了...

)

(是也乎:

Heroku 次生兵器...可见其生态多丰茂

)

(是也乎:

catcher

微服务不是已经凉了?

)

📆🐍 活动/大会

Events

(是也乎:

Caipyra

西班牙...拼写...

)

EuroPython

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

应该 190704 开始报名

PyScaffold

~ helps you setup a new Python project

(是也乎:

Do With Py

总是永远有人问这个问题... 当然, 这个问题任何一个技术社区都有人在问...

其实, 本质上并不是对应技术是否有什么能力, 而是相反...

)

Jobs:

...

是也乎

  • 190703 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 190703 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.

by Zoom.Quiet at July 03, 2019 03:42 AM