Python 类型检查

原文: PyCoder's Weekly - Issue #449

pycoder

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

In the next blog post in his series about Python’s syntactic sugar, Brett Cannon tackles what would seem to be a very simple bit of syntax, but which actually requires diving into multiple layers to fully implement: not.

Get ready for a deep dive into the internals of Python to understand how it handles memory management. By the end of this course, you’ll know more about low-level computing, understand how Python abstracts lower-level operations, and find out about Python’s internal memory management algorithms.

(是也乎:

Memory

)

In this step-by-step tutorial, you’ll learn how to use PyQt layouts to arrange and manage the graphical components on your GUI applications. With the help of PyQt’s layout managers, you’ll be able to create polished and professional GUIs with minimal effort.

(是也乎:

PyQt

)

What is type checking? Why do we need it? What’s the difference between static and runtime type checking?

(是也乎:

终于 C++ 化不可避免了?

)

The π release!

(是也乎:

π版本,

也许应该学习隔壁图书版本? 就用 π 的无限数字, 每次增长一位?

)

(是也乎:

努力, 总是能追上 Chrome 版本数的

)

探讨/吐糟

Discussions

(是也乎:

等等, 这货怎么输入?

)

TIL that .isdigit() works with superscripts

(是也乎:

什么叫怪? 那叫文化... )

文章/教程/嗯哼

Articles, Tutorials and Talks

What do you do when you come a cross an integral that you know has a solution but can’t be solved with SciPy? Build your own numerical integration tool, of course!

One of the best ways to learn something well is to teach it. Kelly Schuster-Paredes and Sean Tibor teach middle school students how to code. On this episode Kelly and Sean talk about the art and science of teaching Python, as well as the learning resources they use with their students.

(是也乎:

在 蟒营®编程思维提高班 Python版/中就发现, 即便互联网来到人世已经快半个世纪了, 合理,快速获得对应免费资源, 依然是个需要学习和领悟的技能.

Finding

)

If you’ve used virtual environments before, you may have created a venv/ folder inside the root directory of your project. This is standard, but has some downsides. Have you every thought about reversing this and putting your project inside your venv/ folder?

(是也乎:

多项目, 多任务, 多环境, 多依赖树... 总之是个多对多的组合管理,

至今, 没靠谱手法, c'est la vie (´-ι_-`)

)

iTerm2 has a plugin system that allows you to write Python scripts that terminal programs can take advantage of. Learn how to do this by writing two fun scripts: on that automatically sets iTerm2 to dark mode and one that plays a sound in your terminal.

(是也乎:

用了这么久, 才知道 iTerm2 也有插件体系? 不过, 日常要高频使用的, 最好别乱折腾.

)

In this tutorial, you’ll learn how to use NumPy’s np.linspace() effectively to create an evenly or non-evenly spaced range of numbers. You’ll explore several practical examples of the function’s many uses in numerical applications.

(是也乎:

np

NumPy 包含了数学界上千年的积累, 可以折腾的细节太多了..

)

Ruby on Rails and Django are two of the best and most popular web development frameworks out there. How do you choose the right one for your new project in 2020? Which should you choose for your new project?

(是也乎:

可怜的 Zope 系, 现在 Flask 都上不了桌了.

)

There’s a new webdev stack in town: the FARM stack. It’s sort of like MERN because it uses React and MongoDB, but it replaces Node.js and Express with Python and FastAPI.

(是也乎:

等等, MongoDB 想复活?

)

Learn how to create nicely formatted Markdown tables from CSV data using the powerful pandoc tool.

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

内核最值得追加功能之一.

)

(是也乎:

等等, 好象在 黑客军团 剧集中见过这个工具.

)

(是也乎:

敠一只 Swiss-Army-Knife 样 CLI 工具,

)

(是也乎:

国内 捕蛇者说 主创之一, 原创:

Cyberbrain

二次元脑工具;-) IDE 插件形式提供.

只是, 将自己对代码的理解统一为自动生成的图谱?

对迭代之类的图形表述是种挑战哪...

)

📆🐍 活动/大会

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

(是也乎:

今天就是今天...?

)

(是也乎:

不是 PyCoders 周刊大会

)

PyCon2020中国

(是也乎:

PyCon20深圳 大妈 暖场小单口

并实锤可用神器: NixOS - NixOS Linux

nix 可以跨语言非Docker 将开发和运行时环境精确锁定.

)

DAMA

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

None

PS:


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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

NN 4215

RPP


Comments


大妈的多重宇宙 - YouTube

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

任何问题

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

-->