原文: PyCoder's Weekly - Issue #374

realpython


In this step-by-step tutorial, you’ll learn about Python lambda functions. You’ll see how they compare with regular functions and how you can use them in accordance with best practices.

(是也乎:

Lambda

简单说, 用在应该用的地方就好

)

A survey of Python progress bar libraries like Progress, ProgressBar2, TQDM, Click, and Clint that allow you to add animated progress bars to your command-line apps.

(是也乎:

进度条, CLI 中的, 简直就是选择困难症激发重灾区...

)

“Our experience at ICS with Python and PyQt is that large complex (typically desktop) applications can be developed with Python. Users can’t tell that it was implemented in Python and not C++. Performance is typically not an issue, and experienced Qt C++ developers can quickly make the transition to Python.”

(是也乎:

哈..多么痛的领悟...

ICS

Qt Creator...能不用就不用...

)

Part 15 in Ruslan’s ongoing series about building an interpreter from scratch, with Python.

In this post, you’ll build an optimal ARIMA model from scratch and extend it to Seasonal ARIMA (SARIMA) and SARIMAX models. You will also see how to build autoarima models in Python.

A guide to Python written for an audience who is already familiar with languages such as C and Java.

(是也乎:

叕一则面向 C/JAVA 程序猿的 Python 介绍软文...

其实, 光是一个缩进的好处说明白了, 就足够了...

)

In this course, you’ll cover several options for generating random data in Python, and then build up to a comparison of each in terms of its level of security, versatility, purpose, and speed.

(是也乎:

Random

Q 的...

)

“PyOxidizer’s marquee feature is that it can produce a single file executable containing a fully-featured Python interpreter, its extensions, standard library, and your application’s modules and resources.”

(是也乎:

全新的独立应用封装器... 居然是 Rust 开发的...

等等, 为什么 Rust 对 Python 这么 Nice? 答案不言而喻...

)

讨论

Discussions

(是也乎:

用 Python 的 SSG 编译为静态网站发布到 X-Pages 空间中

)

(是也乎:

The C Preprocessor: Elif

非常8卦

)

文章,教程和嗯哼

Articles, Tutorials and Talks

“In my last article, I covered some basic uses for Mypy. Here, I want to expand upon those basics and show how Mypy really digs deeply into type definitions, allowing you to describe your code in a way that lets you be more confident of its stability.”

(是也乎:

俺蟒 --> 激进的 Python , 当然, 也可以是更爽的 Python.

)

In this step-by-step Python tutorial, you’ll learn how to take user input from the keyboard with the built-in function input(), how to display output to the console with the built-in function print(), and how to format string data with the string modulo operator.

(是也乎:

StringF

其实, Py3 有更好的解决形式了... 只是, 基础形式永远可用, 是好的. )

“For analyzing complex JSON data in Python, there aren’t clear, general methods for extracting information […] This post provides a solution if one knows the path through the nested JSON to the desired information.”

“Go is cool but doesn’t provide enough type safety for me. I would rather stick with Python and its ecosystem than risking re-writing stuff in Go if I don’t need concurrency.” Related discussion on Hacker News

(是也乎:

如果不是严重依赖并发, 嫑上 golang ...

等等, 说的好象 Python 并发能力很弱似的?

)

An interview about how the Python Software Foundation helps the language and community and how you can help them in their mission.

Join us this July at the O’Reilly Open Source Software Conference (OSCON) to discover what’s shaping software development and dive into the key technologies needed to build resilient, useful, innovative software. Save 25% with code PYCODER

(是也乎:

O 记大会算是非常良心的, 每年都有好物爆料...

)

“As an exercise, I translated Peter Norvig’s Sudoku solver from Python to Clojure.”

(是也乎:

8年前的嗯哼...

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

SV2TTS

实时 ML 模块, 基于5秒语音即可生成全新语音...

)

(是也乎:

古老的 GUI 工程:

PySimpleGUI

尝试将 Tk/Qt/Wx/... 封装起来, 用统一的简洁形式来控制... 然后...直接丢出了一个几十页的 readme ..

作者曰:

...who wrote PySimpleGUI is not important. It's the software that's important

)

(是也乎:

所以, cURL 替代品一直有非常大的需求...

也就是说 requests 工程是真的腐烂了...

)

(是也乎:

嗯哼? 这个有意思了...

和 PyPy 类似, 用动态语言作为 VM 来承载其它语言, 可以获得更多惊喜... 只是, 为什么是 Clojure?

)

(是也乎:

将 Python 代码直接嵌入到 Rust 代码中自动运行...

有点儿意思哪...

)

📆🐍 活动/大会

Events

DAMA

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

  • 七牛云年中大促
    • sponsor

【七牛云服务】没赶上618?七牛云年中大促,狂欢到月底!存储秒杀低至0.001元/G,云主机0元抢,另有多款产品5折起,每日限量购,手慢无!https://dwz.cn/HfTSeUHE

(是也乎:

7牛 应该是亚洲最大单体 golang 服务了, 从创始之初就一直给 CPyUG 系列社区以渠道联盟的待遇, 提供空间和流量, 长期用下来, 对比其它 CDN 是真的好用...

CLI 工具最舒服的一家了.

)

下期应该 7月1

PyScaffold

~ helps you setup a new Python project

(是也乎:

Do With Py

总是永远有人问这个问题... 当然, 这个问题任何一个技术社区都有人在问...

其实, 本质上并不是对应技术是否有什么能力, 而是相反...

)

Jobs:

...

是也乎

  • 190626 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 190626 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.

Comments