dataclasses 值得使用

原文: PyCoder's Weekly - Issue #543

pycoder

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

It’s not as difficult as you think to build an AI program that listens to speech and answers questions. You can make the magic happen in an afternoon by leveraging a few Python packages and APIs.

The official documentation of Python’s sqlite3 module is a little short on examples. This article lists various in-depth examples that cover the most commonly used APIs in the module.

(是也乎:

反正还是直接 SQL 最标准了...

)

In this tutorial, you’ll learn how to create custom list-like classes in Python by inheriting from the built-in list class or by subclassing UserList from the collections module.

(是也乎:

UserList

)


探讨/吐糟

Discussions

A short article discussing PEP 690 which proposes support for lazy imports in Python, followed by an in-depth discussion by the LWN community.

(是也乎:

redis 总是被这么提及...

)


文章/教程/嗯哼

Articles, Tutorials and Talks

Favicons are the little icons you see in your browser tabs. Your web browser looks in very specific places for these icons, and different browsers expect different file names and types. This article runs you through two different ways of getting favicons working in your Django web project.

(是也乎:

AccordBox 创始人, 人在中国的工程师...

)

In this Python Basics video course, you’ll learn how use conditional logic to write programs that perform different actions based on different conditions. Paired with functions and loops, conditional logic allows you to write complex programs that can handle many different situations.

(是也乎:

Basics

Python 基础 是真蟒集团明星好书.

)

PyTorch is a popular open-source deep-learning framework originally created by Meta/Facebook. Meta has announced that it is creating an independent organization called the PyTorch Foundation that will operate as part of the Linux Foundation, making the framework vendor-neutral.

(是也乎:

Fb 的 PyTorch 是对抗 Google 关键武器...

)

The dict is one of the basic data structures in Python. It is truly at the core of Python and is used everywhere. This article runs you through some common operations on dictionaries, including initialization, merging, comprehensions, and more.

In this tutorial, you’ll learn how to remove or replace a string or substring. You’ll go from the basic string method .replace() all the way up to a multi-layer regex pattern using the sub() function from Python’s re module.

(是也乎:

String

)

Sometimes writing code can help you explore and understand concepts. This article shows a history of access controls in software using Python scripts to re-implement the ideas.

(是也乎:

是的, 将事儿作完的结果, 一般都是: 类似: XACML - Wikipedia 一种 DSL 的发布.

)

Know what a Data Class is? Do you know how to use one? Know the differences from regular classes? This article answers these questions and more.

(是也乎:

dataclasses

内建模块呢...

)

This article gives an overview of how dependencies are handled within virtual environments and what you can do when transitive dependencies are in conflict.

(是也乎:

迷之依赖...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

直接根据普通照片完成 3D 建模以及对象识别...

)

(是也乎:

淦...这不等于...

)

(是也乎:

Cookbook

注意了, 为什么只列了这 4个可视化框架?

)

(是也乎:

经过10多年折腾, Django 终于变成默认标准了

)


📆🐍 活动/大会

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
-->