IEEE#1 开发语言 -> Python

原文: PyCoder's Weekly - Issue #488

pycoder

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

“Python dominates as the de facto platform for new technologies” and “Learn Python. That’s the biggest takeaway we can give you from its continued dominance of IEEE Spectrum’s annual interactive rankings of the top programming languages. You don’t have to become a dyed-in-the-wool Pythonista, but learning the language well enough to use one of the vast number of libraries written for it is probably worth your time.”

“Skybison is experimental performance-oriented greenfield implementation of Python 3.8. It contains a number of performance optimizations, including: small objects; a moving GC; hidden classes; bytecode inline caching; type-specialized bytecode; an experimental template JIT.”

In this tutorial, you’ll learn about optional arguments in Python and how to define functions with default values. You’ll also learn how to create functions that accept any number of arguments using args and kwargs.

(是也乎:

Arguments

)

On UNIX-like operating systems you can have the Python equivalent of node_modules today, for every Python version, without changing your workflows.

Pick up the awesome programming potential of Python with software like Mastering PyCharm (2021 Edition) & Object-Oriented Programming (OOP) in Python. Pay what you want & support charity!

The PyCon US organizers are looking for motivated volunteers who want to contribute their time and knowledge to make this year’s conference a great success.

More info in the full changelog.


探讨/吐糟

Discussions

Andrej Karpathy (Director of AI at Tesla) shares an interesting performance observation on this Twitter thread that turns into a tale about accurate benchmarking. Calculating math.sqrt(1337.0) appears to be 10x faster than numpy.sqrt(1337.0). Python’s built-in square root (x ** 0.5) appears to be even faster. However, most of the performance differences seem to come from the benchmark setup, as Ishan Bhatt explains in this writeup.


文章/教程/嗯哼

Articles, Tutorials and Talks

A break down of what Apple Silicon means for Python users today, especially those doing scientific computing and data science: what works, what doesn’t, and where this might be going.

“This is the fourth article in a series about writing my own SQL query builder. Today, we’ll rewrite it from scratch, explore API design, learn when to be lazy, and look at worse and better ways of doing things – all in 150 lines of Python!”

Learn why it’s important to split your dataset in supervised machine learning and how to do that with train_test_split() from the widely used scikit-learn package.

(是也乎:

Splitting

)

Can you make a version of Python that fits within the memory constraints of a microcontroller and have it still feel like Python? That is the intention behind CircuitPython. This week on the show, Scott Shawcroft, who is the project lead for CircuitPython.

(是也乎:

podcast

)

“We present and compare all possible alternatives you can use to parse languages in Python. From libraries to parser generators, we present all options.”

(是也乎:

用 Python 编译一切语言,

)

Caching in Django can be implemented on different levels (or parts of the site). This article looks at how to use the low-level cache API in Django.

(是也乎:

从根儿上缓存 Django 的一切?

)

“The async/await pattern can be explained in a simple manner if you start from the ground up. And that’s what we’re going to do today.”

How to use ctypes to run SQLite queries without using the built-in sqlite3 Python package, and without compiling anything.

(是也乎:

等等,为什么不用编译?

for row in query('my.db', 'SELECT * FROM my_table WHERE a = ?;', ('b',)):
    print(row)

成果就是可以直接用 SQL 了...

)

(是也乎:

叕一个音频模拟项目, 用 Python 在内存中复活前苏联独有电子变音器吧

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

嗯哼? 专用键盘驱动? Python 这么任性的?

)

(是也乎:

也就是说, 可以直接用 Py 来自动生成 Go 代码了, 等等, Py 本身内置 AST 为什么没有 Golang 来解析 Py 代码自动生成?

)

(是也乎:

apollo

叕一个薅NASA 经验的项目, 不过, 这都是60年前的数据了, 要不是 天宫 发射成功, 照样不会公开...

)

(是也乎:

FastAPI 团队作品, 基于 SQLAlchemy 给出更加 Pythonic 的 SQL 使用形式.

)


📆🐍 活动/大会

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

NIL


DAMA

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

(是也乎:

独创 logging + debug 模块

)

(是也乎:

老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:

Bilibili

)


PS:

PPS:

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

去年开始有小伙伴加入承担 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

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->