Skip to content

Commit

Permalink
docs: Python 周报 1 2020.05.03
Browse files Browse the repository at this point in the history
  • Loading branch information
qiwihui committed May 2, 2020
1 parent 4a512fb commit 086efc6
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions Reports/2020/#1 - 2020.05.03.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Python 周报 #1 | 2020-05-03

Python 周报,提供有价值的 Python 及行业相关信息。

如果你发现了有价值的信息、文章和工具等,可以到 [Issues](https://github.com/qiwihui/PythonWeekly/issues) 里提给我,记得写上推荐的理由。也欢迎提出意见和建议。

## 新闻

### Python 2最终版本标志着时代的终结

原文链接:[The final Python 2 release marks the end of an era](https://stackoverflow.blog/2020/04/23/the-final-python-2-release-marks-the-end-of-an-era/)

Python 2的最终版本([2.7.18](https://www.python.org/downloads/release/python-2718/))已发布。随着 Python 社区对新时代的期待,Stack Overflow 博客的 Ryan Donovan 花了一些时间来思考这种转变,并指出,尽管官方渠道对 Python 2 的支持可能已经消失,但该语言并没有消亡。实际上,有理由相信它会持续数十年。

### 你需要知道的 Python 3.9 的新特性

原文链接:[New Features in Python 3.9 You Should Know About](https://medium.com/@martin.heinz/new-features-in-python-3-9-you-should-know-about-14f3c647c2b4)

Python 3.9 计划于2020年5月10日发布,其中包含许多新特性。在 [Martin Heinz](https://medium.com/@martin.heinz) 的概述中探索这些新特性,包括新的字典(dcit)运算符,对数学模块的更新,新的字符串方法,`functools.TopologicSorter` 类等等!

## 文章和教程

### 在 Python 应用程序中使用配置的最佳实践

原文链接:[Best Practices for Working with Configuration in Python Applications](https://tech.preferred.jp/en/blog/working-with-configuration-in-python/)

用户喜欢能够配置应用程序。但是处理用户配置意味着解析不受信任的输入,验证该输入,并弄清楚如何在应用程序的所有层中安全地访问这些配置。Python 具有丰富的配置生态系统。许多文章集中于如何在 Python 程序中使用各种配置格式,而省略了有关如何以及何时验证配置的更详细的信息。本教程填补了其中的一些空白。

### TCP重置攻击如何工作?

原文链接:[How does a TCP Reset Attack work?](https://robertheaton.com/2020/04/27/how-does-a-tcp-reset-attack-work/)

TCP重置攻击使用单个数据包执行,大小不超过几个字节。由攻击者制作和发送的欺骗性 TCP 段,诱骗两个受害者放弃 TCP 连接,中断他们之间可能至关重要的通信。

在这篇文章中,我们将要:学习 TCP 协议的基础知识,了解攻击的工作原理,并使用简单的 Python 脚本对自己进行攻击。

### Python `pickle` 模块:如何在 Python 中保存对象

原文链接:[The Python pickle Module: How to Persist Objects in Python](https://realpython.com/python-pickle-module/)

在本教程中,你将学习如何使用 Python `pickle` 模块将对象转换为字节流,该字节流可以保存到磁盘或通过网络发送。你还将学习对不受信任来源的对象使用此过程的安全隐患。

### 在 Rust 代码中写 Python

原文链接:

- [Writing Python inside your Rust code — Part 2](https://blog.m-ou.se/writing-python-inside-rust-1/)
- [Writing Python inside your Rust code — Part 1A](https://blog.m-ou.se/writing-python-inside-rust-1a/)
- [Writing Python inside your Rust code — Part 1](https://blog.m-ou.se/writing-python-inside-rust-2/)

这个系列的文章介绍了作者 [Mara Bos](https://github.com/m-ou-se) 如何从0开始写库 [inline-python](https://crates.io/crates/inline-python) 的过程,这个库支持使用宏 `python!{ .. }` 在 Rust 代码中直接写 Python 代码。

### Python 中类型提示的状态

原文链接:[the state of type hints in Python](https://www.bernat.tech/the-state-of-type-hints-in-python/)

Python是并且将继续是一种动态语言。然而,Python 已经存在25年了,现在有了一种语言标准,即如何在语言中添加类型信息。从那时起将近三年过去了,在此博客文章中,[BERNAT GABOR](https://www.bernat.tech/author/bernat/) 将探讨系统的发展方向。

## 书籍

### [Springer 发布50本免费编程书籍](https://link.springer.com/search/page/1?facet-discipline=%22Computer+Science%22&package=mat-covid19_textbooks&facet-language=%22En%22&facet-content-type=%22Book%22)

包括有关 Python,机器学习,深度学习,人工智能等书籍。

## 音视频

### Python Bytes - [Episode #179: Guido van Rossum drops in on Python Bytes](https://pythonbytes.fm/episodes/show/179/guido-van-rossum-drops-in-on-python-bytes)

Python 语言创造者 [Guido van Rossum](https://twitter.com/gvanrossum/) 作客 Python Bytes。

### Real Python - [Episode 7: AsyncIO + Music, Origins of Black, and Managing Python Releases](https://realpython.com/podcasts/rpp/7/)

通过示例了解更多有关 Python 中的 AsyncIO 的信息,在该示例中你可以查看和听到实时触发的事件。Christopher 本周采访了 ŁukaszLanga。Łukasz 为 PyCon 2020 创建了一个关于将 AsyncIO 与音乐结合使用的演讲。在此演讲中,他展示了协程,gathering,事件循环和触发事件以创作音乐的现场示例。他们谈论了他作为 Python 3.8和3.9发布管理器的角色。他还提供了非常流行的,毫不妥协的代码格式化程序 [Black](https://github.com/psf/black) 的起源以及它可以解决的组织内部问题类型的背景知识。

Łukasz 之前在 Facebook 工作,在那里他创立了 Black。他谈到最近搬回波兰。Łukasz讨论了他目前在 Edge DB 上的工作,建立了新一代的对象关系数据库。

0 comments on commit 086efc6

Please sign in to comment.