Python 类型检查
原文: PyCoder's Weekly - Issue #449
- 201202 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
- 201202 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
- 嫑用 Python 进行'拆解'
- BRETT CANNON
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.
- Python 如何管理内存?
- REAL PYTHON
- course
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.
(是也乎:
)
- PyQt 布局: 创建专业范儿 GUI 应用程序
- REAL PYTHON
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.
(是也乎:
)
- Python 类型检查
- JAN GIACOMELLI
What is type checking? Why do we need it? What’s the difference between static and runtime type checking?
(是也乎:
终于 C++ 化不可避免了?
)
- Django Bugfix 发布: 3.1.4
- DJANGO SOFTWARE FOUNDATION
The π release!
(是也乎:
π版本,
也许应该学习隔壁图书版本? 就用 π 的无限数字, 每次增长一位?
)
- pip 20.3 推出了新的依赖项解析器
- PYTHON SOFTWARE FOUNDATION
- • Shared by Sumana Harihareswara
(是也乎:
努力, 总是能追上 Chrome 版本数的
)
探讨/吐糟
Discussions
- Python为什么将符号“²”检测为数字?
- STACK OVERFLOW
(是也乎:
等等, 这货怎么输入?
)
TIL that .isdigit() works with superscripts
- Python 中奇怪的作用域行为
- STACK OVERFLOW
(是也乎:
什么叫怪? 那叫文化... )
文章/教程/嗯哼
Articles, Tutorials and Talks
- 从头用 Python 构建数值积分工具
- KASPER MÜLLER
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!
- 教授 Python 并为学生寻找资源
- REAL PYTHON
- podcast
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版/中就发现, 即便互联网来到人世已经快半个世纪了, 合理,快速获得对应免费资源, 依然是个需要学习和领悟的技能.
)
- 虚拟环境的邪恶运用姿势
- BHUPESH VARSHNEY
- • Shared by Bhupesh Varshney opinion
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 Python 脚本
- RYAN PATTERSON
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 也有插件体系? 不过, 日常要高频使用的, 最好别乱折腾.
)
- np.linspace(): 创建均匀或非均匀间隔 数组
- REAL PYTHON
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.
(是也乎:
NumPy 包含了数学界上千年的积累, 可以折腾的细节太多了..
)
- 2020年及其后 Ruby on Rails 与 Django 的比较
- CATALIN IONESCU
- • Shared by Catalin
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 都上不了桌了.
)
- FARM 技术栈: FastAPI, React, 以及 MongoDB
- AARON BASSETT
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 想复活?
)
- 在 Python 中建立Pandoc筛选器/将 CSV 资料转换为格式化表格
- JOHN LEKBERG
Learn how to create nicely formatted Markdown tables from CSV data using the powerful pandoc tool.
好物/妙品/...
Interesting Projects, Tools and Libraries, Projects & Code
- traceback_with_variables: 向 Python Tracebacks 追加变量
- GITHUB.COM/ANDY-LANDY
(是也乎:
内核最值得追加功能之一.
)
- Packet-Sniffer: 纯 Python 网络数据包嗅探工具
- GITHUB.COM/EONRAIDER
(是也乎:
等等, 好象在 黑客军团 剧集中见过这个工具.
)
- vpype: 用于矢量图形的瑞士军刀命令行工具
- GITHUB.COM/ABEY79
(是也乎:
敠一只 Swiss-Army-Knife 样 CLI 工具,
)
- Cyberbrain: Python 重新定义调试姿势
- GITHUB.COM/LAIKE9M
- • Shared by laike9m
(是也乎:
国内 捕蛇者说 主创之一, 原创:
二次元脑工具;-) IDE 插件形式提供.
只是, 将自己对代码的理解统一为自动生成的图谱?
对迭代之类的图形表述是种挑战哪...
)
-
- GITHUB.COM/ZVEROK
- • Shared by Victor Shepelev
-
Microdic: 用于 Python 的高性能类型哈希表库
- GITHUB.COM/TOUQIR14 • Shared by Touqir Sajed
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
- ⋅ Real Python Office Hours (Virtual)
- December 2, 2020
(是也乎:
今天就是今天...?
)
-
- December 5 to December 7, 2020
-
⋅ PyCode Conference 2020 (Online)
- December 11 to December 13, 2020
(是也乎:
不是 PyCoders 周刊大会
)
- PyCon2020中国, 明年见
- 11.28~29
- 在线
(是也乎:
并实锤可用神器: 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
Comments