PyCoder 528

如何摆脱教程地狱? 当然不是爱… 原文: PyCoder’s Weekly - Issue #528 220608 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220608 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Django 静态文件和模板 WILL VINCENT “Static files like CSS, JavaScript, and fonts are a core piece of any modern web application. They are also typically confusing for Django newcomers since Django provides tremendous flexibility around how these files are used. This tutorial will demonstrate current best practices for configuring static files in both local development and production.” 用 pandas 和 NumPy 进行数据清理 REAL PYTHON COURSE In this video course, you’ll learn how to clean up messy data using pandas and NumPy. You’ll become equipped to deal with a range of problems, such as missing values, inconsistent formatting, malformed records, and nonsensical outliers. Optimize Python Code Inefficiencies and Latency With Datadog Application Monitoring DATADOG SPONSOR Datadog’s APM generates detailed flame graphs to provide you with deeper insights into code-level performance enabling teams to identify bottlenecks and latency in their Python code. Navigate seamlessly between app traces, logs and metrics to resolve app issues fast. Optimize Python Code Inefficiencies and Latency With Datadog Application Monitoring (是也乎: 事实证明, logo 可爱能提高转化率 ) 简要了解 CPython 字符串 ONDŘEJ MĚKOTA “Have you ever noticed that a string with just a few characters in Python uses several dozen bytes of memory? We handle a lot of short strings and I have been wondering why Python seems to store strings seemingly so inefficiently.” 加速发布 Python 3.11.0b3 CPYTHON DEV BLOG Django Bugfix Release: 4.0.5 DJANGO SOFTWARE FOUNDATION 请求包的域名抢注攻击 JOSSEF HARUSH Python News: What’s New From May 2022 REAL PYTHON (是也乎: ) 探讨/吐糟 Discussions ...

2022-06-08 · 4 min · 1991 words · ZoomQuiet

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