pythonista-weekly : Pyw 526

欢迎阅读《pythonista周刊》第526期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-526 翻译:Dustyposa 文章、教程与话题 Infrastructure as Code 什么是基础设施即代码?在本课程中学习,并通过实施三个 IaC 项目获得实践机会。 Trojan Source and Python 自从 11月1日 木马源码漏洞被披露以来,它们一直在各个开发社区激荡。在编程语言中处理 Unicode,尤其是双向 Unicode 时,可能会出现一些奇怪的情况,例如,Rust会检查字符串和注释中的问题代码点,如果存在这些代码点,默认情况下会拒绝编译。 Python 选择了一条不同的道路,但正在进行的工作是帮助程序员了解 Trojan Source 所强调的各种隐患。 Spotify Codes - Part 2 第一部分深入探讨了 Spotify 代码,并解释了它们如何工作的一般技术概念。这篇文章将比第一部分更有技术含量,因为作者试图解释 Spotify 是如何编码他们的条形码的。 如何在Python中对一个字典进行排序 词典最好用于键值查询:我们提供一个键,词典非常迅速地返回相应的值。但是如果你既需要键值查找又需要迭代呢?我们可以在 dictionary 上进行循环,当循环时,我们可能关心 dictionary 中项目的顺序。考虑到 dictionary 项目的顺序,你可能会想知道我们如何对 dictionary 进行排序? Django, FastAPI, Full Stack Roles & Python Programming 与 Daniel Roy Greenfeld的对话 ,他是《Two Scoops of Django》系列书籍的共同作者,也是大量 Python 和 Django 开源项目的创建者。 Game Hacking with Python and cheat engine 这篇文章告诉你如何用作弊引擎编辑内存来黑掉游戏,我们还将用 python 写一个程序,自动编辑内存,便于我们做黑客。 Customize Python dependency resolution with machine learning 本文介绍了 Project Thoth 创建的一个新的基于云的 Python 依赖性解析器。在云端运行,Thoth 使用强化学习技术和你想要的标准来解决 Python 库的依赖性。此外,一个可插拔的接口让你可以修复 underpinning 和 overpinning 问题(即指定版本的软件包过于严格或过于宽松),并对解析过程进行额外的调整。这个过程考虑到了运行环境、硬件和其他对基于云的解析器的输入。 Speed up your Conda installs with Mamba Conda 的安装速度非常慢,但你可以用一个更快的小Conda 重新实现,即 Mamba 来加速安装。 Ruby vs Python comes down to the for loop 对比每种语言处理迭代的方式,有助于理解如何有效地使用其中一种语言。 16 Reasons to Use VS Code for Developing Jupyter Notebooks VS Code has many features that make it a useful platform for Jupyter Notebook development. Getting Started With Pants and Django (Part 1) Python: Please stop screwing over Linux distros How Python list really works ...

2021-11-19 · 4 min · 1548 words · ZoomQuiet

PyCoder 499

OLPC 编程教育方面的遗产 原文: PyCoder’s Weekly - Issue #499 211117 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211117 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PSF 正寻求下一位执行董事 PYTHON SOFTWARE FOUNDATION After announcing earlier this summer that Ewa Jodlowska is leaving after ten years of service, the PSF has begun its search for the organization’s next Executive Director. Interested? You can apply here. 选择编程语言总是会被过早优化 BRETT CANNON opinion “Have you ever been told that Python couldn’t be used for a project because it wouldn’t be fast enough? I have, and I find it a bit frustrating as big banks, YouTube, Instagram, and plenty of other places that are performance-sensitive still manage to select Python and be happy.” (是也乎: 在没深入理解前, 被市井传说忽悠是必然; 当年从 PHP 转入 Python 也纯粹因为 Plone, 进来才发现, Python 的世界远大于 CMS ) Python 开发者的高级 VSCode REAL PYTHON In this tutorial, you’ll learn how you can configure, extend, and optimize Visual Studio Code for a more effective and productive Python development environment. By digging into this customizable code editor and IDE, you’ll put yourself on track to be a VS Code power user. (是也乎: 嗯哼, 现在只想关闭自动提醒… ) 用 Gunicorn/Nginx 和 HTTPS 安全部署 Django 应用 REAL PYTHON Ready to take your Django app beyond development? Learn how to securely deploy your Django web app in production over HTTPS with Gunicorn and Nginx. Along the way, you’ll explore how HTTP headers can fortify your app’s security. (是也乎: 其实, 一直以来关键问题都是 SSL 证书的生成和管理. ) Python 列表数据结构如何真正有效 ANTON ZHIYANOV • Shared by Anton Zhiyanov This article explores the nuts and bolts of Python list operations, their time complexity, and underlying data structures. (是也乎: 经典老书: 源代码鉴赏 可刷 ) Django Bugfix 发布: 3.2.9 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions NIL ...

2021-11-17 · 4 min · 1792 words · ZoomQuiet

pythonista-weekly : Pyw 525

欢迎阅读《pythonista周刊》第525期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-525 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 新闻 PSF 2021 End of the year fundraiser! PSF 启动了年终募捐活动。有两种捐赠方式。1.直接向PSF捐款,或者2.购买一个打折的PyCharm许可证,所有收益都归PSF。对PSF的财政捐助有助于维持支持更大的Python社区的项目。 ...

2021-11-13 · 4 min · 1996 words · ZoomQuiet

PyCoder 498

和 Guido 一起讨论加速 Python 原文: PyCoder’s Weekly - Issue #498 211111 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211111 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 银行 Python 的口述历史 CAL PATERSON Interesting read about the strange world of Python, as used by big investment banks: “Bank Python implementations are effectively proprietary forks of the entire Python ecosystem which are in use at many (but not all) of the biggest investment banks.” CPython Developer 每周报告, November 1–7 ŁUKASZ LANGA “Python 3.9.8 got released this week! At this point in the 3.9 lifecycle this should be a relatively uneventful release. Instead, it took us a few days of work to get it out of the door. I still managed to squeeze in 51 closed PRs and even organized a meeting between the core developers and Daan Leijen, the author of mimalloc.” 用 Python 和 typer 构建 CLI-TODO 应用程序 REAL PYTHON Follow along this step-by-step project to create a to-do application for your command line using Python and Typer. While you build this app, you’ll learn the basics of Typer, a modern and versatile library for building command-line interfaces (CLI). (是也乎: Typer ~ CLI 版 FastAPI, 值得享用. ) Python 软件基金会: 2021 年度筹款结束 PYTHON SOFTWARE FOUNDATION “The PSF launched its end-of-the-year fundraiser. There are two ways to donate: 1. donate directly to the PSF or 2. purchase a discounted PyCharm license, with all proceeds going to the PSF. Contributing to the PSF financially helps sustain programs that support the larger Python community.” Python 3.9.8 and 3.11.0a2 可用ed CPYTHON DEV BLOG 探讨/吐糟 Discussions ...

2021-11-11 · 4 min · 2001 words · ZoomQuiet