PyCoder 525

Python 3.11.0b1 发布了 原文: PyCoder’s Weekly - Issue #525 220518 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220518 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python’s min() and max(): 查找最小值和最大值 REAL PYTHON In this tutorial, you’ll learn how to use Python’s built-in min() and max() functions to find the smallest and largest values. You’ll also learn how to modify their standard behavior by providing a suitable key function. Finally, you’ll code a few practical examples of using min() and max(). (是也乎: Python 的内建函式, 其实非常实用了… ) 用 django-rich 进行测试 OKKEN, JOHNSON, & SMITH PODCAST The django-rich library adds color and formatting to Django management commands, including colorized tracebacks. Make your debugging and testing more visual. Analyze Code-Level Performance Across Your app’s Environment With Minimal Performance Overhead DATADOG SPONSOR Datadog’s profiler allows you to capture code profiles for all of your production instances. Compare those profiles in the profile comparison view to see how the performance of your code changes over time. You can quantify the changes you’ve made to fix a bottleneck. Analyze Code-Level Performance Across Your app’s Environment With Minimal Performance Overhead (是也乎: FaaS ~ 功能即服务 的典范… ) 维护良好的测试/新依赖的 12 个问题 ADAM JOHNSON There is lots of openly available code out there, but how do you know if you should build a dependency on some random coder’s package? 12 Questions you should ask yourself before using a library. DjangoCon Europe 2022 征集提案 DJANGOCON.EU DjangoCon US 2022 提案征集 PRETALX.COM Python 发布 Python 3.11.0b1 PYTHON.ORG Python 在 Visual Studio Code: May 2022 发布 MICROSOFT.COM (是也乎: 越来越重了, 感觉在 VSCode 中叕嵌入了一个 XP 系统… ) 探讨/吐糟 Discussions ...

2022-05-18 · 4 min · 1681 words · ZoomQuiet

PyCoder 524

PyScript 直接在浏览器中运行 Py 原文: PyCoder’s Weekly - Issue #524 220511 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220511 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PyCon US 2022 亮点 ERIC MATTHES • Shared by Eric Matthes “It was wonderful to be back at PyCon US in person again. PyCon is way too big for any one person’s summary to tell the whole story, but I’m happy to share some of my personal highlights from this year’s event.” (是也乎: 大图…No1gdoQ.jpg (1500×2000) 怪不得老爹一直点赞 这个活动… ) 顶级 Python 游戏引擎s REAL PYTHON In this tutorial, you’ll explore several Python game engines available to you. For each, you’ll code simple examples and a more advanced game to learn the game engine’s strengths and weaknesses. (是也乎: ) Ultimate Guide to Python Pickle: How To’s, Exploits & Safety Python’s pickle library is useful in maintaining persistence within complex data structures and objects. Learn how to safely use a pickle in application development using this comprehensive guide → SNYK.IOSPONSOR PyScript: 在浏览器中释放 Python 的力量 ERYK LEWINSON PyScript was announced at PyCon US 2022, it is a web-based application allowing you to use both Python and HTML to create applications. Discover what it can do and how it was built. (是也乎: 刷屏的大新闻, CoffeeScript 真正的目的, 现在实现了… ) Python News: 2022 年 4 月有什么新闻 REAL PYTHON In April 2022, the PyCon US conference happened in Salt Lake City. During the conference, Python developers met for the annual Language Summit, and Anaconda announced PyScript, a way to write Python directly inside HTML. In this article, you’ll learn more about what happened in the last month in the world of Python. (是也乎: ) 探讨/吐糟 Discussions ...

2022-05-11 · 5 min · 2151 words · ZoomQuiet

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