PyCoder 527

对数据科学家有用的 Python 装饰器 原文: PyCoder’s Weekly - Issue #527 220601 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220601 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 的“函数”有时是类 TREY HUNNER Ever use list() or enumerate()? Think of them as functions? They’re not, they’re classes. Sometimes we call classes functions in Python. Why? And what’s a “callable”? 探索 Python 中的作用域和闭包 REAL PYTHON COURSE In this Code Conversation video course, you’ll take a deep dive into how scopes and closures work in Python. To do this, you’ll use a debugger to walk through some sample code, and then you’ll take a peek under the hood to see how Python holds variables internally. (是也乎: 是的, 套娃, 幸好 Python 严密的用缩进进行了可视化先… ) 所有关于星号在 Python 中需要知道的 BAS STEINS The * is for more than multiplication, it is also the basis for the two deconstruction operators: * and **. Learn the ins-and-outs of using *args, **kwargs, deconstruction, and forcing keyword-arguments-only in functions. ctx 库被劫持以窃取 AWS 密钥 AX SHARMA (是也乎: 全新 Hijacked 姿势… ) 探讨/吐糟 Discussions ...

2022-06-01 · 4 min · 1675 words · ZoomQuiet

PyCoder 526

编程时最喜欢的播放列表? 原文: PyCoder’s Weekly - Issue #526 220525 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220525 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 FastAPI 和 Python 构建缩址器 REAL PYTHON In this step-by-step project, you’ll build an app to create and manage shortened URLs. Your Python URL shortener can receive a full target URL and return a shortened URL. You’ll also use the automatically created documentation of FastAPI to try out your API endpoints. (是也乎: 实用哪…每个网站都值得拥有自己的 Shortener ) 为开源做贡献: rich #2073 RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão Rodrigo decided he’d start contributing to Open Source and it began by being assigned bug #2073 in the rich library. This article goes into great detail on environment set up, how he found the bug, and what it took to squish it. (是也乎: 一次完备的开源贡献之旅行, 可以看到, 大量的工作并不是开发, 而是理解问题本身… ) 自制机器人水枪来威慑鸽子 MAX NAGY Max built a wifi-equipped water gun to shoot the pigeons on his balcony. It is controlled over the internet by a python script running openCV reading the camera image from an old iPhone. See all the details. Swiss Python Summit: 早鸟票和提案征集 PYTHON-SUMMIT.CH • Shared by Denis Krienbühl TensorFlow 2.9.0 发布 GITHUB.COM/TENSORFLOW Django 4.1 Alpha 1 发布 DJANGO SOFTWARE FOUNDATION Python 3.9.13 维护版本发布 CPYTHON DEV BLOG CPython Faster: Beta 版本中时序改进结果 GITHUB.COM/FASTER-CPYTHON 探讨/吐糟 Discussions ...

2022-05-25 · 4 min · 1861 words · ZoomQuiet

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