|
| 1 | +# Python 周报 #1 | 2020-05-03 |
| 2 | + |
| 3 | +Python 周报,提供有价值的 Python 及行业相关信息。 |
| 4 | + |
| 5 | +如果你发现了有价值的信息、文章和工具等,可以到 [Issues](https://github.com/qiwihui/PythonWeekly/issues) 里提给我,记得写上推荐的理由。也欢迎提出意见和建议。 |
| 6 | + |
| 7 | +## 新闻 |
| 8 | + |
| 9 | +### Python 2最终版本标志着时代的终结 |
| 10 | + |
| 11 | +原文链接:[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/) |
| 12 | + |
| 13 | +Python 2的最终版本([2.7.18](https://www.python.org/downloads/release/python-2718/))已发布。随着 Python 社区对新时代的期待,Stack Overflow 博客的 Ryan Donovan 花了一些时间来思考这种转变,并指出,尽管官方渠道对 Python 2 的支持可能已经消失,但该语言并没有消亡。实际上,有理由相信它会持续数十年。 |
| 14 | + |
| 15 | +### 你需要知道的 Python 3.9 的新特性 |
| 16 | + |
| 17 | +原文链接:[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) |
| 18 | + |
| 19 | +Python 3.9 计划于2020年5月10日发布,其中包含许多新特性。在 [Martin Heinz](https://medium.com/@martin.heinz) 的概述中探索这些新特性,包括新的字典(dcit)运算符,对数学模块的更新,新的字符串方法,`functools.TopologicSorter` 类等等! |
| 20 | + |
| 21 | +## 文章和教程 |
| 22 | + |
| 23 | +### 在 Python 应用程序中使用配置的最佳实践 |
| 24 | + |
| 25 | +原文链接:[Best Practices for Working with Configuration in Python Applications](https://tech.preferred.jp/en/blog/working-with-configuration-in-python/) |
| 26 | + |
| 27 | +用户喜欢能够配置应用程序。但是处理用户配置意味着解析不受信任的输入,验证该输入,并弄清楚如何在应用程序的所有层中安全地访问这些配置。Python 具有丰富的配置生态系统。许多文章集中于如何在 Python 程序中使用各种配置格式,而省略了有关如何以及何时验证配置的更详细的信息。本教程填补了其中的一些空白。 |
| 28 | + |
| 29 | +### TCP重置攻击如何工作? |
| 30 | + |
| 31 | +原文链接:[How does a TCP Reset Attack work?](https://robertheaton.com/2020/04/27/how-does-a-tcp-reset-attack-work/) |
| 32 | + |
| 33 | +TCP重置攻击使用单个数据包执行,大小不超过几个字节。由攻击者制作和发送的欺骗性 TCP 段,诱骗两个受害者放弃 TCP 连接,中断他们之间可能至关重要的通信。 |
| 34 | + |
| 35 | +在这篇文章中,我们将要:学习 TCP 协议的基础知识,了解攻击的工作原理,并使用简单的 Python 脚本对自己进行攻击。 |
| 36 | + |
| 37 | +### Python `pickle` 模块:如何在 Python 中保存对象 |
| 38 | + |
| 39 | +原文链接:[The Python pickle Module: How to Persist Objects in Python](https://realpython.com/python-pickle-module/) |
| 40 | + |
| 41 | +在本教程中,你将学习如何使用 Python `pickle` 模块将对象转换为字节流,该字节流可以保存到磁盘或通过网络发送。你还将学习对不受信任来源的对象使用此过程的安全隐患。 |
| 42 | + |
| 43 | +### 在 Rust 代码中写 Python |
| 44 | + |
| 45 | +原文链接: |
| 46 | + |
| 47 | +- [Writing Python inside your Rust code — Part 2](https://blog.m-ou.se/writing-python-inside-rust-1/) |
| 48 | +- [Writing Python inside your Rust code — Part 1A](https://blog.m-ou.se/writing-python-inside-rust-1a/) |
| 49 | +- [Writing Python inside your Rust code — Part 1](https://blog.m-ou.se/writing-python-inside-rust-2/) |
| 50 | + |
| 51 | +这个系列的文章介绍了作者 [Mara Bos](https://github.com/m-ou-se) 如何从0开始写库 [inline-python](https://crates.io/crates/inline-python) 的过程,这个库支持使用宏 `python!{ .. }` 在 Rust 代码中直接写 Python 代码。 |
| 52 | + |
| 53 | +### Python 中类型提示的状态 |
| 54 | + |
| 55 | +原文链接:[the state of type hints in Python](https://www.bernat.tech/the-state-of-type-hints-in-python/) |
| 56 | + |
| 57 | +Python是并且将继续是一种动态语言。然而,Python 已经存在25年了,现在有了一种语言标准,即如何在语言中添加类型信息。从那时起将近三年过去了,在此博客文章中,[BERNAT GABOR](https://www.bernat.tech/author/bernat/) 将探讨系统的发展方向。 |
| 58 | + |
| 59 | +## 书籍 |
| 60 | + |
| 61 | +### [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) |
| 62 | + |
| 63 | +包括有关 Python,机器学习,深度学习,人工智能等书籍。 |
| 64 | + |
| 65 | +## 音视频 |
| 66 | + |
| 67 | +### 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) |
| 68 | + |
| 69 | +Python 语言创造者 [Guido van Rossum](https://twitter.com/gvanrossum/) 作客 Python Bytes。 |
| 70 | + |
| 71 | +### Real Python - [Episode 7: AsyncIO + Music, Origins of Black, and Managing Python Releases](https://realpython.com/podcasts/rpp/7/) |
| 72 | + |
| 73 | +通过示例了解更多有关 Python 中的 AsyncIO 的信息,在该示例中你可以查看和听到实时触发的事件。Christopher 本周采访了 ŁukaszLanga。Łukasz 为 PyCon 2020 创建了一个关于将 AsyncIO 与音乐结合使用的演讲。在此演讲中,他展示了协程,gathering,事件循环和触发事件以创作音乐的现场示例。他们谈论了他作为 Python 3.8和3.9发布管理器的角色。他还提供了非常流行的,毫不妥协的代码格式化程序 [Black](https://github.com/psf/black) 的起源以及它可以解决的组织内部问题类型的背景知识。 |
| 74 | + |
| 75 | +Łukasz 之前在 Facebook 工作,在那里他创立了 Black。他谈到最近搬回波兰。Łukasz讨论了他目前在 Edge DB 上的工作,建立了新一代的对象关系数据库。 |
0 commit comments