WASM, Python Keywords, PyInstaller...

原文: PyCoder's Weekly - Issue #521

pycoder

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

Step-by-step instructions on how to build a code editor in the browser using Python and WebAssembly (WASM), via Pyodide, and CodeMirror.

(是也乎:

Pyodide硬广. a port of CPython to WebAssembly/Emscripten...

其实是期待能替代 React/Vue 们嘛?

)

Python keywords make up the fundamental building blocks of any Python program. In this video course, you’ll learn the basic syntax and usage for each of Python’s thirty-five keywords so you can write more efficient and readable code.

(是也乎:

Exploring

)

It isn’t much fun creating your own desktop applications if you can’t share them with other people: learn how to turn your PyQt6 application into a distributable installer for Windows using PyInstaller and InstallForge.

(是也乎:

嗯哼? win11 ? 祝你好运...

)


探讨/吐糟

Discussions

Coders old enough to remember Y2K are already dreading 2038, join the conversation.

(是也乎:

千年虫之后, 还有很多同类, 不过, 很怀疑, 到时, 人类是否存在 )

(是也乎:

很多吧, 只有自己在用的小脚本...

)

(是也乎:

...Using frameworks is a must. Writing maintainable code is a must.

DevOps - you'll quickly run into requirements to write parallel work. Not using something like fabric is a waste of your employer's money hiring you. You'll quickly run into requirements to use ansible/terraform/other. Same applies here; surrounding tools with subprocess and parsing stdout/stderr is a waste of your employer's money. Use appropriate packages, instead.

DataScience - all the cool toys, from simple stuff like pandas, or more focused ones like working with spark and the plethora of big data libraries require indepth knowledge of both the library and the underlying datastore. Combined, you make the most of your time and hardware. Not doing so, and only writing something that works on a small scale is a common costly mistake.

Security - python is just a helper tool. Your requirements, depending on position, will be focal knowledge about a domain and its set of tools. From highly skilled domains like research onward to threat hunting, PT and to the entry level stuff like NOC.

You're better off enjoying the little wins in life and dealing with the less pleasant moments. That'll give you a nice career in anything you choose.

)


文章/教程/嗯哼

Articles, Tutorials and Talks

PyPy is a popular alternative implementation of Python and with a project of this size testing is always a challenge. This blog post highlights the testing philosophy used at PyPy, how the tests are organized, and how they avoid performance regressions.

(是也乎:

灵魂追问...

)

In this tutorial, you’ll learn how to use a Python virtual environment to manage your Python projects. You’ll also dive deep into the structure of virtual environments built using the venv module, as well as the reasoning behind using virtual environments.

(是也乎:

Primer

这一点儿也不Primer... 其实, Py 运行时, 最困难的并不是合理分离, 而是, 快速部署以及迁移复用

)

“I wanted to make a physics simulation 100x faster. I got it 4x faster exercising my best NumPy skills, and 50x faster after rewriting in Rust with a couple of other optimizations. I’d probably get to 100x if I had more than 2 cores.”

(是也乎:

优化其实很容易上瘾, 不过, 更加容易忘记, 这得是业务足够稳定, 不提高性能就亏的场景中, 才合理...

)

A very deep guide to all things threading in Python. Covers: differences between threads and processes, thread life-cycles, getting thread information, configuring threads, handling exceptions, locks, and all with many many examples.

(是也乎:

其实吧, 有资源就上进程...

)

Throwing hardware at a software performance is often an easy solution, and sometimes the right one. Learn how to approach the decision, and some alternatives.

Django comes with a robust permission system built-in. Learn about authentication, authorization, users, groups, and model level permissions.

A deep dive on how the core team manages deprecations in Python, and how complications in a Fedora package were dealt with.

(是也乎:

LWN 的文章一向硬核, 实在是个古老的新闻组, 形式决定内容, 这么古板的界面也只好认真写点儿什么

Linux is a registered trademark of Linus Torvald

)

Learn about the K-Means Clustering algorithm by coding an image quantizer in Python.


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

各种大力自动修改你撰写代码的工具... 为什么能有人可以忍受工具来改动自己写的文章?

)

(是也乎:

TigerLily

药物检验自动机

)

(是也乎:

DSP/Digital Signal Processing 数字信号处理, 前苏联 Maker 们最爱的领域...

)


📆🐍 活动/大会

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


DAMA

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


PS:

PPS:

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

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

问为什么:

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

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


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments



自怼圈/年度番新

DU22.8
关于 ~ DebugUself with DAMA ;-)
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:


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


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 扫描预约入群, 学员每满 42 人即启动新一期训练营 ;-)
  • 101camp22.7
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->