无聊的 Python:代码质量

原文: PyCoder's Weekly - Issue #558

pycoder

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

“It’s been another year of changes at Real Python! The Real Python team has written, edited, curated, illustrated, and produced a mountain of Python material this year. We added some new members to the team, updated the site’s features, and created new styles of tutorials and video courses.”

(是也乎:

2022

嘦认真,呈体系的搞, 任何教程都有市场...

)

This article discusses the various ways of creating and managing Python virtual environments, including what kinds of tools are used. It categorizes the different styles and describes the impacts of the choices you make on your workflow.

(是也乎:

结论非常社区化了还是要 EPE 来完成最终盖棺嘛? 不过, conda 已经将生意作起来了, 变成市场标准也是指日可待?

)

The nightly PyTorch build was compromised between December 25 and 30th. This article describes what happened. Stable release branches were not effected. There is also an associated Hacker New Discussion.

(是也乎:

在此场景中如何使用 上游思维 来完成修补?

)


探讨/吐糟

Discussions

NIL


文章/教程/嗯哼

Articles, Tutorials and Talks

Learn to use the OpenAI Python library to create images with DALL·E, a state-of-the-art latent diffusion model. You’ll explore image creation and generating image variations. You’ll interact with DALL·E using API calls, and incorporate this functionality into your Python scripts.

(是也乎:

DALL·E

首先...

)

PEP 690 proposes the ability to delay when modules are imported, possibly providing performance improvements. The PEP has gone through a series of versions and there has been much discussion of the consequences. This article gives the latest info on the proposal.

(是也乎:

WoW 进一步工程化又复杂化 Py 小宇宙的建议

)

“There aren’t enough failed data science projects out there. Usually, projects only show up in public if they work. I think that’s a shame. If we learn more from our successes than our failures, it makes sense to share more failures to help those around us.”

How to build, deploy, and manage Python applications in as “boring” a way as possible in order to maximize stability and reliability. Also, read the Hacker News Discussion associated with the article.

(是也乎:

当前的无聊,当初可都是高精尖...

)

Design patterns are conventional solutions to common challenges in software development. The State Machine pattern encapsulates the flow of change in a system. Learn to implement state patterns and finite state machines in Python.

(是也乎:

状态机, 为什么要从6行代码变成160行? 都是有讲儿的...

)

Storing data as bits can be very efficient and with the right operators you can do some amazing things quickly. This article introduces bitwise operations, bitmasking, and how to manipulate individual bits in a byte.

(是也乎:

位运算, 这在C 语言发明之前,都是常识, 现在...

)

This opinion piece from Eric talks about how he started with Python and why he’s continued on the journey. There is also an associated Hacker News Discussion.

(是也乎:

嘦有对应岗位,没人拒绝的了这么可爱的语言日常吧...

)

A change in how Python handles str and int mixins in Enum classes might break your code when you upgrade to Python 3.11. Read on to see the problem and how Python 3.11’s new Enum classes solve it.

(是也乎:

3.11

唉...

)

Coding for email isn’t too bad, but sending it can be a challenge. This tutorial walk you through how to use the popular SendGrid service as your SMTP server.

(是也乎:

SendGrid 的硬广, 其实吧,直到今天商业化的可靠邮件发送功能依然是个大市场... 谁能以更加简单便宜的姿势协助企业发送邮件,谁就有生意. )

This is the eighth edition of Top Python Libraries from these folks, with an emphasis on data science and ML. Includes links to previous years lists as well.

(是也乎:

各种神奇好物值得逐一赏玩儿...

PS: 该实验室,从15年开始,每年评选出对应最佳模块,也值得回顾一下

)

Electron allows you to build desktop applications using web stack technologies. This article shows you how to take a Django project and Electron-ify it.

(是也乎:

等等,现在已经有 Flet 了哪...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

Niubility ... 可以动态化各种图表的自动交互化支持模块

支持ed

)

(是也乎:

学术界之外可能对 MATLAB 无感, 可以这货当年就等于 IT 界...

)

(是也乎:

当一个框架稳固后, 围绕着这个核心越来越多的实用插件市场才能兴起...

)

(是也乎:

Documentation: https://csvkit.rtfd.org/

12年开始的项目... 可见 csv 多深的坑...

)


📆🐍 活动/大会

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


DAMA

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


PS:

PPS:

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

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

问为什么:

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

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


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