Matrix 直播

原文: PyCoder's Weekly - Issue #546

pycoder

  • 221012 Zoom.Quiet(大妈) 用时 13 分钟 完成快译
  • 221012 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

Have you used a memory profiler to gauge the performance of your Python application? Maybe you’re using it to troubleshoot memory issues when loading a large data science project. What could running a profiler show you about a codebase you’re learning? This week on the show, Pablo Galindo Salgado returns to talk about Memray, a powerful tracing memory profiler.

(是也乎:

Profiler

)

Did you know Python’s assert statement can lead to runtime security vulnerabilities? While there are safe ways to use assert, there are lots of unsafe ways to use it that can lead to a variety of convoluted problems.

(是也乎:

和 goto 类似...反正, 语法设计不可能杜绝人为问题, Rust 都不行

)

Guido walks you through a single-table restaurant analogy to explain the complexity of semaphores in asyncio. Details include the TaskGroup context manager added in Python 3.11.

(是也乎:

GUIDO

老爹的官方 blog,

Neopythonic: About This Blog

08年从 Artima 迁移到 blogspot 上, 是的, 就是那个 google 收购的 blog 引擎... 当年也跟风注册过, 然后, 和谐了...

)


探讨/吐糟

Discussions

NIL


文章/教程/嗯哼

Articles, Tutorials and Talks

The minimax algorithm can be used to find optimal strategies in many different games. In this tutorial, you’ll learn how to implement minimax in Python while playing the game of Nim. You’ll also learn how you can make the algorithm more efficient with alpha-beta pruning.

(是也乎:

Minimax

类似数学游戏很多都是伯来

)

In this tutorial, you’ll learn how to create and use enumerations of semantically related constants in Python. To do this, you’ll use the Enum class and other related tools and types from the enum module, which is available in the Python standard library.

(是也乎:

Enumerations

)

You want to pass your data from your Django view to JavaScript in your template and you want to do it securely. This post shows several ways of doing it without the risk of allowing malicious code injection.

This article is an introduction to REST APIs. It describes five levels of implementation, versioning, query parameters, how your design effects the server side, and how to secure your end-points.

(是也乎:

并给出考核级别... 简单说, 协议早已设计好, 只是看是否都用足... HTTP 毕竟要向下兼容, 只是没想到大家没什么底线...

)

This step-by-step guide shows you the tools and tech you need to build a highly scalable data streaming pipeline in Python. It covers the use of Scrapy with Redis and a JSON based data flow.

This post shows you how to use the decision-trees algorithm with real-world data to predict cases of diabetes. Examples include the use of numpy, pandas, and sklearn.

This article gives an overview of type hints: what they are and when you should use them. It starts with simple types and builds up to more complex definitions.

(是也乎:

反正就是好, 毕竟程序员不应该难为程序员, 自己麻烦点, 就可以帮助编译器进行各种优化, 虽然这种优化自己看不懂, 但是, 值得的...

最好再加上生命周期/所有权/...各种深层控制声明, pyrs 可能是个方向

)

Tips and tricks for inspecting Python objects and getting information about your code at runtime. Learn about built-in object methods and the inspect module.

(是也乎:

反正没有什么是 print() 无法 print 的...

)

Karim writes about trying Rust programming as a 10+ years Python developer. He describes how to do common programming tasks and what the tooling looks like.

In this SQLAlchemy tutorial, you will learn to access and run SQL queries on all types of relational databases using Python objects.


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

Matrix

光 opencv-contrib-pytho 就要 150Mb, 整体所有依赖都嗯哼好, 得2G 以上, 不过, 这样一来, 直播时可以更加从容了吧...

)

(是也乎:

叕一个完美数据结构, 就看大厂谁先支持了

DocArray

)

(是也乎:

叕一个 awesome 列表, 刚刚开始, graphviz 都没有...

)


📆🐍 活动/大会

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


DAMA

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

ACM-O

(是也乎:

谈崩了, 之前通过 ACM 会员可以每年 $25 享受 O'REILLY 在线图书馆服务...现在没了

)


PS:

PPS:

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

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

问为什么:

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

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


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->