PyCoder 500

原文转载自 「蠎周刊」 ( https://weekly.pychina.org/issue/issue-500.html ) By Pythoneerm

预计阅读时间 0 分钟(共 0 个字, 0 张图片, 0 个链接)

500期了...从第一期开始没中断快译

原文: PyCoder's Weekly - Issue #500

pycoder


The Python community gave a warm welcome to Python 3.10 in October 2021. In this article, you’ll catch up on some big events that happened this past month, including Python being named TIOBE’s most popular programming language.

(是也乎:

News

)

”[…] measuring web application performance is incredibly complex […] In this article you can see the results of my effort in understanding and fixing this benchmark, re-running it, and finally arriving at a shocking revelation.”

(是也乎:

这才是一视同仁, 所有性能评测都不值得看, 包含作者自己这篇 ;-)

Benchmarks

是的, 没有 Django

)

In this step-by-step course, you’ll build a neural network from scratch as an introduction to the world of artificial intelligence (AI) in Python. You’ll learn how to train your neural network and make accurate predictions based on a given dataset.

(是也乎:

AI

一个 step by step 的开始很重要.

)

Protocols in Python provide a nice way to use duck typing while still having some static type guarantees. You can define contracts for your functions without caring too much about the actual types of your inputs.

The minimax algorithm and alpha-beta pruning can be used to implement AIs to play games. This tutorial will teach you about the minimax algorithm and alpha-beta pruning, from a beginner’s perspective.

The PyPI team is seeking feedback from teams using PyPI. If you use PyPI as a team, consider responding to the (short) poll form at the link.

(是也乎:

只有一个原意:

恢复 pip search 并持续加速, 至少和中国高铁同步

)


探讨/吐糟

Discussions


文章/教程/嗯哼

Articles, Tutorials and Talks

Have you wanted to work with RSS feeds in Python? Maybe you’re looking for a new project to build for your portfolio that uses Django, unit tests, and custom commands. This week on the show, it’s Real Python author Ricky White talking about his recent step-by-step project titled, “Build a Content Aggregator in Python.”

(是也乎:

很明显在信息茧房成功后, 清醒的人又回到信息聚合场景中来, 只是, 这种情景能持续发展下去嘛?

Aggregator

)

Is it enough to run code coverage for a single Python version? Probably, but not necessarily. While this is or was a super important topic when you still needed to support Python 2, also now this is still valid as Python 3 moves forward quickly and requires to have different code paths for different versions.

An interview with Eric Wastl, a Senior Architect at TCGPlayer and the founder of Advent of Code (AoC). Join us as we discuss the inception of AoC, how to avoid common pitfalls when solving code challenges in AoC, and what Eric gets up to in the “3.8 seconds” of free time he has per year.

(是也乎:

Interview

)

In this step-by-step course, you’ll learn how Python’s .append() works and how to use it for adding items to your list in place. You’ll also learn how to code your own stacks and queues using .append() and .pop().

(是也乎:

Lists )

Introduction into game development with Python by writing a simple Tic Tac Toe game. Best development practices and designed patterns are included into this step-by-step tutorial.

This article explains how views differ from materialized views and shows how using Postgres views makes querying aggregated data easier and (with materialized views) faster.

(是也乎:

绕过 Django-orm 可不容易哪

)

“I used to play Minecraft as a kid and I always wondered how does it generate never-ending worlds. In this article, I am going to try to replicate this in Python.”

(是也乎:

WoW 这个得支持

)

This article compares the three main string formatting methods in Python and suggests which methods to use in each situation.

(是也乎:

Python 就是任性, 光是一个字符串格式化就给出至少3种方案,

)

“Conda installs are very slow, but you can speed them with a much-faster Conda reimplementation called Mamba.”

(是也乎:

不是, 安装快慢不主要是网络速度问题嘛?

)

A small recap on how the author added type annotations to the Logilab’s RQL package.

(是也乎:

所以, 7.5k 就是大工程了.

Mypy 广告, 内置工具足以高效完成检验, 只是永远不可能达到 Rust 的变态程度, 话说, Rust 核心团队集体辞职了, 又是 M$ 挖角成功?

)

Here is a tiny Python example that creates a self-referential list…

(是也乎:

不是, 等等? 电影取名儿也必须 AI 了?

)

(是也乎:

小方同学的意外之行...

)

(是也乎:

其实可视化, 一向的矛盾并不在技术, 而在领导们持续滑落的注意力/理解能力, 和设计师永远高涨的创意内卷间不可调合的矛盾.

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

嗯哼? 叕一个自动编程工具, 将 Py 转化为标准可执行 C 代码, 当然, 不用期望可以兼容框架, 最多在关键行为上加速原先 Python 模块

)

(是也乎:

叕一个包管理工具, 其实, 单独包管理并不解决工程问题, 得包含自动化部署的才行.

)

(是也乎:

嗯哼? 中文早已支持?

)

(是也乎:

objjons

节省调试时输入.

)

(是也乎:

淦...免费的 爬虫引擎?

)


📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心


DAMA

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

(是也乎:

老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:

Bilibili

)


PS:

PPS:

不觉中蟒周刊快译已经到了第9个年头

去年开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.


好文笔,感叹号年度配额: 2/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

more_vert