PyCoder 523

debugging 艺能 原文: PyCoder’s Weekly - Issue #523 220504 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220504 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Dunder Methods 在 Python: 最丑的真棒酱 JOHN LOCKWOOD Double-underscore methods, also known as “dunder methods” or “magic methods” are an ugly way of bringing beauty to your code. Learn about constructors, repr, str, operator overloading, and getting your classes working with Python functions like len(). (是也乎: 致丑神招… 这其实是 老爹 设计减少自己工作量的好东西, 嘦必要时才用就对 ) 为什么在 Python 中关闭文件很重要? REAL PYTHON Model citizens use context managers to open and close file resources in Python, but have you ever wondered why it’s important to close files? In this tutorial, you’ll take a deep dive into the reasons why it’s important to close files and what can happen if you dont. (是也乎: 嘦不是一次性海量文件操作, 或是巨型上T级别的文件操作, 这𫚙就细节可以忽略… ) 当 Python 不可 Thread: 深入了解 GIL 的影响 ITAMAR TURNER-TRAURING Python’s Global Interpreter Lock (GIL) stops threads from running in parallel or concurrently. Learn how to determine the impact of the GIL on your code. (是也乎: 娺一篇深入分析, 实话, 这可能是 老爹当年最灵光一闪的创造性创造了… ) micro:bit 编辑器 Beta 3 发布 MICROBIT.ORG (是也乎: BBC 在努力… …Micro:bit 已被广泛利用到香港中小学的资讯科技课程中,亦被视为是正式课程里的一环 也可以证明, HK 至今也没阅读英联邦的自我定位… ) ...

2022-05-04 · 4 min · 1973 words · ZoomQuiet

PyCoder 522

类型提示如何兼容多 Python 版本? 原文: PyCoder’s Weekly - Issue #522 220427 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220427 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 兼容多 Python 版本的类型提示 ADAM JOHNSON The typing module continues to evolve, with new features in every Python version. This can make it tricky if you’re trying to type code that supports multiple Python versions. Learn just what you can do when you need to support Type Hints in multiple versions. (是也乎: 是的,必须精密区分运行时版本… Py 代码就象 Adnroid 要兼容越来越多设备尺寸… ) PyCon US 2022: 充分利用您的会议访问 REAL PYTHON Tips for getting the most out of your visit to PyCon US, the world’s biggest Python conference taking place April 27, 2022 to May 3, 2022 in Salt Lake City, Utah. Whether you’re a first-timer or a seasoned attendee, this guide will help you get ready to have a great PyCon. If you’re attending, stop by the Real Python booth and say hello! :) (是也乎: 白妹主持, 黑人接待, 黄/红/棕/黑 来拜… 非常政治正确. ) 在 Python 中为枚举成员添加附加属性 REDOWAN DELOWAR Sometimes you want your Enum objects to reference more than just a single piece of data. You can use a tuple but then you have to de-reference it. This article shows a technique used in http.HTTPStatus that you can do in your own code. 构建 Django 用户管理系统 REAL PYTHON COURSE In this video course, you’ll learn how to extend your Django application with a user management system, complete with email sending and third-party authentication. (是也乎: 其实, 嘦不是给 User 看的, 内置 Admin 足够用了 ) PyOhio 提案征集开放至 5 月 2 日 PYOHIO.ORG • Shared by Dave Forgac (是也乎: Ohio ~ 俄亥俄 ) 探讨/吐糟 Discussions ...

2022-04-27 · 5 min · 2259 words · ZoomQuiet

PyCoder 521

WASM, Python Keywords, PyInstaller… 原文: PyCoder’s Weekly - Issue #521 220419 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220419 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 Python 和 WebAssembly 构建编辑器 AMIR TADRISI • Shared by Amir Tadrisi 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 中的关键字 REAL PYTHON COURSE 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. (是也乎: ) 用 PyInstaller 为 Windows 打包 PyQt6 应用程序 MARTIN FITZPATRICK 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 ? 祝你好运… ) Django 安全版本: 4.0.4, 3.2.13, and 2.2.28 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2022-04-19 · 4 min · 1866 words · ZoomQuiet

PyCoder 520

Cython 20岁了 原文: PyCoder’s Weekly - Issue #520 220413 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220413 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 中的俄勒冈小径 KEITH FOSTER In the 1971 text-based game, the player guides a party of settlers along the Oregon Trail. Random events occur and death abounds. Learn how to write this adventure game in Python. 用 Python 构建站点连通检查器 REAL PYTHON In this step-by-step project, you’ll build a Python site connectivity checker for the command line. While building this app, you’ll integrate knowledge related to making HTTP requests with standard-library tools, creating command-line interfaces, and managing concurrency with asyncio and aiohttp. (是也乎: 一个 CLI 工具的构造过程… ) Python f-Strings 比想象的更强大 MARTIN HEINZ • Shared by Martin Heinz Learn about the lesser-known features of Python’s f-strings, including date formatting, variable debugging, nested f-strings, and conditional formatting. (是也乎: 实话, 过于强大, 几乎可以当成一个嵌入式小语言来用了 ) PSF 欢迎新任执行董事 Deb Nicholson PYTHON SOFTWARE FOUNDATION 第 11 届 PyLadies 年度拍卖会 PYCON.BLOGSPOT.COM (是也乎: 老爹最喜欢的 fans 活动. ) Cython 20 岁! STEFAN BEHNEL Python 发布 Python 3.11.0a7 (最后的 Alpha) PYTHON.ORG 探讨/吐糟 Discussions ...

2022-04-13 · 4 min · 1798 words · ZoomQuiet