PyPI 被传唤

原文: PyCoder's Weekly - Issue #579

pycoder

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

In this tutorial, you’ll learn what a callable is in Python and how to create callable instances using the .call() special method in your custom classes. You’ll also code several examples of practical use cases for callable instances in Python.

(是也乎:

__call__

)

“Typically, Django allows sorting a queryset by any attribute on the model or related to it in either ascending or descending order. However, what if you need to sort the queryset following a custom sequence of attribute values?”

  • [Python Decorators and How to Use Them Effectively

Python 装饰器以及如何有效地使用它们](https://pycoders.com/link/10897/web) + TONIE VICTOR

This article covers the importance and use of decorators in your code. It introduces you to both function and class decorators and helps you write your own.

In March and April 2023, PyPI received three subpoenas for user data from the US Department of Justice. This blog post covers what was requested and how the PyPI is working to clarify what they retain and can make available in the future. See the associated Hacker News discussion.

(是也乎:

美国司法部...

没被司法部关怀过的语言,不是世界级语言?

)


探讨/吐糟

Discussions

(是也乎:

开始愿意说废话...

)


文章/教程/嗯哼

Articles, Tutorials and Talks

  • [Writing Python Like It’s Rust

像写 Rust 一样写 Python](https://pycoders.com/link/10869/web) + JAKUB BERANEK

This blog post from Jakub talks about how writing code in Rust has informed a more rigorous approach to his Python. He now uses types more frequently, absorbing the strictness of Rust in his Python coding style. Associated Hacker News conversation

(是也乎:

结合之后编程类型和心态, 就知道, 有益, 但是, 有限度...

)

  • [Publishing Python Packages to PyPI

将 Python 包发布到 PyPI](https://pycoders.com/link/10877/web) + REAL PYTHON + COURSE

In this video course, you’ll learn how to create a Python package for your project and how to publish it to PyPI, the Python Package Repository. Quickly get up to speed on everything from naming your package to configuring it using setup.cfg.

(是也乎:

PyPI

从最初随行上, 到现在越来越复杂的配置, PyPI 已经到了关键门槛...

)

In this video course, you’ll learn all about the k-nearest neighbors (kNN) algorithm in Python, including how to implement kNN from scratch. Once you understand how kNN works, you’ll use scikit-learn to facilitate your coding process.

(是也乎:

kNN

)

David expounds on why we should appreciate the features of other languages and how they enable the creativity of their developers, even if we don’t like those features ourselves.

(是也乎:

关键看疗效以及给多少了...

)

Including a Golang package in Python using Gopy: A simple way to leverage the power of Golang packages in Python applications.

(是也乎:

海王梗

Gopy

)

CSV, JSON, Parquet — which data format should you use for your Pandas data? Itamar compares them and makes recommendations.

(是也乎:

Parquet 专用格式? 不过, 最好还是有个驱动可以直接和 Pg 们互通?

)

In this article, you learn about bit manipulation and how to solve problems efficiently using it in Python.

(是也乎:

也分场景, 多数面对字符串的操作, 位运算使不上力 )


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

实用哪...不过好象 black 已经包含这个功能了, 问题在, 有时只是暂时不用, 随时可能打开, 以便配套对应新代码...

)

pyserde:基于数据类的序列化库](https://pycoders.com/link/10884/web) + GITHUB.COM/YUKINARIT

(是也乎:

好吧, 反正这种需要反复大深度探查的事儿,Rust 正好擅长

)

(是也乎:

提示词快速变成了 DSL ...所以, 编程还是得学习的, 不然根本无法跟上 AI 对话技巧...

)


📆🐍 活动/大会

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


历史上的这周


DAMA

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

       _~`-~~_
   \) /  ◴ #  \ (/
     '_   △   _'
     \ '-----' /

...act by ferris-actor v0.2.4 (built on 23.0303.201916)

PS:

Happy Pythoning!

Copyright © 2023 PyCoder’s Weekly, All rights reserved.

PPS:

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

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

问为什么:

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

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

所以++> 锈周刊 -> Weekly :: China


好文笔,感叹号年度配额: 2/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
-->