运行在火星直升机上

原文: PyCoder's Weekly - Issue #462

pycoder

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

Semantic versioning aims to both communicate the version of software as well as promise that certain versions won’t break anything. Sounds great, right? In a lot of cases it is, but a blind reliance on semantic versioning can come back to haunt you.

(是也乎:

也就是说, 软件考古学, 并不依赖优雅的版本号.

)

Learn how to use Python to interface with the NoSQL database system MongoDB. You’ll get an overview of the differences between SQL and NoSQL, and you’ll also learn about related tools, including PyMongo and MongoEngine.

(是也乎:

讲真, Python 内置的 BSDDB

)

Learn how to generate custom PDF reports using reportlab and pdfrw with a PyQt GUI.

(是也乎

实用

)

(是也乎:

俺不相信 JPL 已经放弃了 LISP

)

Now including structural pattern matching!

(是也乎:

嗯哼? 终于 1.0 了, 就看何时被 Python 官方内建了, 那才是真正融入历史. )

(是也乎:

为了多卖些许可证, 喷脑 很拼了...

)

探讨/吐糟

Discussions

For example, you could do matrix[row=20, col=40]. Read more about it in PEP 637.

(是也乎:

Spyder 又开始吹了, 其实 UliEditor 也被 Underrated 的;

或是说一切 IDE 都是被低估的?

)

文章/教程/嗯哼

Articles, Tutorials and Talks

Learn about Python namespaces, the structures used to store and organize the symbolic names created during the execution of a Python program. You’ll learn when namespaces are created, how they are implemented, and how they define variable scope.

See how friendly-traceback improves syntax error reporting by comparing the output from friendly-traceback with examples in the Real Python tutorial Invalid Syntax in Python: Common Reasons for SyntaxError.

(是也乎:

基本语法使用习惯, 是无论多友好的提示也无法加速习惯的. 习惯,只能在足够数量练习中形成.

)

What’s the difference between writing code for yourself and developing for others? What new considerations do you need to take into account as a professional Python developer? This week on the show, we talk to Dane Hillard about his book “Practices of the Python Pro”.

(是也乎:

Professional

职业与否在技术上本质差异, 可能就象建筑师是否正经类似:

愿意终生为写出来的代码负责嘛?

)

Learn how to use Brython to run Python code in the browser. Although most front-end web applications are written in JavaScript, you can use Brython to access JavaScript libraries and APIs and deploy Python-based applications to the web.

(是也乎:

Brython

WebAssembly/wasm 之前的想法, 现在...呵 )

Have you ever written a test that re-implements a library-specific case? What if that test was just a part of the library code? See how tightly integrating tests into your library code can save users time and help them find bugs.

(是也乎:

FastAPI 就率先融合进来了.

)

Learn how to optimize a Full Text Search implementation with Django and Postgres. Even on a small table, you can reduce the query execution time from 0.045 seconds to 0.001 seconds!

(是也乎:

是的, Pg 这功能就很不讲 武德 了, 抢了多少搜索引擎的生意哪.

)

Use line_profiler to see line-level execution time for your python code. It may surprise you where your code is slow and what it takes to speed it up!

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

期待 DJI 的开源

)

(是也乎:

叕一次被推荐, 日期/时间, 太常见数据了, 但是, 能直觉吻合的处理, 实在又太不简单.

)

(是也乎:

等等? 有必要嘛?

)

(是也乎:

类似要配置 .pre-commit-config.yaml:

-   repo: https://github.com/MarcoGorelli/absolufy-imports
    rev: v0.2.2
    hooks:
    -   id: absolufy-imports

怎么说呢? 想法是好的,现实是现实

)

(是也乎:

叕一个 IPy[NB] 分享服务, 只是,这个更加朴素, 不可运行, 只是展示, 那么, 一定有人拿来当私人文章/网站发布平台的, 然后, 就和谐了...

)

📆🐍 活动/大会

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

(是也乎:

即便是线上的, 一样收费.

)

(是也乎:

以色列, 全球创新热点地区...

)

(是也乎:

反正很早都上 油管了, 随时可以 review, 当然, 这个随时, 随时了很多年都没刷光.

)

DAMA

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

(是也乎:

独创 logging + debug 模块

)

(是也乎:

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

Bilibili

)

(是也乎:

私人初体验, 现在 http/https 资源混用浏览器越来越傲娇了, 最好有工具可以统一迁移...

)

PS:


好文笔,感叹号年度配额: 2/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4285

RPP


Comments



自怼圈/年度番新

DU21.4
关于 ~ DebugUself with DAMA ;-)

关注公众号, 持续获得相关各种嗯哼:
zoomquiet

追问

任何问题, 随时邮件提问可也:
askdama@googlegroups.com