有 GC 的 LISP/436 字节

原文: PyCoder's Weekly - Issue #504

pycoder

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

In this course, you’ll learn what an exception is and how it differs from a syntax error. You’ll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords.

(是也乎:

Raising

)

This one isn’t about Python specifically, but worth a read because it’s so mindblowingly cool: A LISP interpreter that’s tiny enough to fit in a 512-byte master boot record.

(是也乎:

GC

淦...是的, 这世界总是会被 LISP 重写一下..

)

Learn how Poetry will help you start new projects, maintain existing ones, and master dependency management.

(是也乎:

Poetry

叕一则硬广...

)


探讨/吐糟

Discussions

Simulating the Log4j Remote Code Execution (RCE) vulnerability in a Flask web server using Python’s logging library with custom formatter that simulates lookup substitution by executing remote exploit code. (This is not a vulnerability in Python’s logging library. It’s a simulation of the Log4j vulnerability meant as a teaching tool.)

(是也乎:

不是, 模拟这儿有什么用?

)

(是也乎:

不是, 为什么哪...

)


文章/教程/嗯哼

Articles, Tutorials and Talks

The Python community continually grows, with many users coming from different languages and backgrounds. This week on the show, developer Hugh Tipping talking about his Python journey. Hugh is also a member of the Real Python community.

(是也乎:

Cyber

)

“In an attempt to dispel the idea that if you have to google stuff you’re not a proper engineer, this is a list of nearly everything I googled in a week at work, where I’m a software engineer with several years’ experience.”

(是也乎:

扎心了...老铁

)

“While Jupyter is widely used as a scientific and educational tool, Jupyter is seldom used as a platform for game development. In this blog post, we show how Jupyter can be used to develop tiny games based on Box2D.”

(是也乎:

物理引擎才是大头

)

“For those wanting to get into Formula 1 data analysis, the Ergast API is a very good starting point. It provides you with clean, easily accessible data that can relatively easily be processed.”

“Minecraft has an API. If you run your own server you can program it from Python. Here are notes from how I set it up. It’s a lot of fun to make things happen in Minecraft with Python.”

(是也乎:

有接口的地方就有 Py 包装

)

On challenges of designing the “query language” for a human-readable encyclopedia.

(是也乎:

嘦公开接口, 并稳定支持, 无论哪个网站都是数据源, 这原本就是 WWW 设计目标, 只是被后人玩儿坏了...

)

An introduction to extension mechanisms in the Pandas library.

(是也乎:

不是, 原本自己有等效形式的哪...

)

(是也乎:

手造纯 Python 的 RAS 加密

)

(是也乎:

这可是大工程...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

嗯哼? 这几乎就是自制语法糖了, 当年 UliWeb 中包含类似的自制模块;

from dataklasses import dataklass

@dataklass
class Coordinates:
    x: int
    y: int

然后就可以:

>>> a = Coordinates(2, 3)
>>> a
Coordinates(2, 3)
>>> a.x
2
>>> a.y
3
>>> b = Coordinates(2, 3)
>>> a == b
True
>>>

)

(是也乎:

叕一个 CLI 下进度条模块; Arabic (taqadum, تقدّم)

)

(是也乎:

pixray

像素级

)


📆🐍 活动/大会

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

⋅ Weekly Real Python Office Hours Q&A (Virtual) January 5, 2021


DAMA

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

(是也乎:

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

Bilibili

)


PS:

PPS:

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

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