PyCoder 548

Python 3.11 超COOL特性 原文: PyCoder’s Weekly - Issue #548 221026 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 221026 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 3.11: 值得尝试酷炫新功能 REAL PYTHON Python 3.11 is out! In this article, you’ll explore what Python 3.11 brings to the table. You’ll learn how Python 3.11 is the fastest and most user-friendly version of CPython yet, and learn about improvements to the typing system and to the asynchronous features of Python. (是也乎: ) 在 Django 中导入数据实现“Dry Run Mode” ADAM JOHNSON In data import processes it’s often useful to have a “dry run” mode that runs through the process but doesn’t actually save the data. This can allow you to check for validity and gather statistics, such as how many records already exist in the database. This post looks at how to implement a dry run mode in Django using database transactions. (是也乎: 作者是位多产程序猿, 专门为网站选择了颜色Colophon 非常 OREILLY ;-) ) 3.11 发布关乎培育社区和管理 REAL PYTHON PODCAST Does your company have a plan for growing an internal Python community? What are the attributes to look for when bringing someone into your department? This week on the show, Pablo Galindo Salgado returns to talk about building community through the Python Guild at Bloomberg and managing the release of Python 3.11. (是也乎: ) 防御性编码指南: Python FEDORAPROJECT.ORG This guide is part of a multi-language document describing how to write security conscious code. Check out the recommendations for Python from the Fedora Project. (是也乎: 嗯哼? Pythonic 流派不是应该不折腾这种风格的? ) PyCascades 2023 提案征集 PYCASCADES CONFERENCE 探讨/吐糟 Discussions ...

2022-10-26 · 4 min · 1853 words · ZoomQuiet

PyCoder 547

Pythoneer 2022调查问卷来了, 值得冲哪… 原文: PyCoder’s Weekly - Issue #547 221019 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 221019 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. ChatterBot: 用 Python 构建聊天机器人 REAL PYTHON Chatbots can help to provide real-time customer support and are a valuable asset in many industries. When you understand the basics of the ChatterBot library, you can build and train a self-learning chatbot with just a few lines of Python code. (是也乎: ) 为数据和机器学习流水线编写健壮的测试 EUGENE YAN This deep article talks about why some kinds of tests break more frequently than others and how to set the appropriate granularity of your test suites. Migrating Postgres From Heroku to Crunchy Bridge Developers of a growing business were looking to migrate Postgres. They wanted a new vendor at least as good at Heroku, with new features and developer tools. They tested Amazon RDS and several others. Find out why they chose Crunchy Bridge for their cloud Postgres. Read the case study → CRUNCHY DATASPONSOR 在 Python 中使用 LaTeX JOHN LOCKWOOD Python has great support for LaTeX: in Jupyter, in symbolic math tools, and in third party libraries. Learn about how easy it is to get started. 2022 年 Python 开发者调查 PYTHON SOFTWARE FOUNDATION Python 3.10.8 错误修复版发布 PYTHON.ORG 探讨/吐糟 Discussions ...

2022-10-19 · 4 min · 1588 words · ZoomQuiet

PyCoder 546

Matrix 直播 原文: PyCoder’s Weekly - Issue #546 221012 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 221012 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 在 Python 折腾内存分析器能带教给我们什么? REAL PYTHON PODCAST Have you used a memory profiler to gauge the performance of your Python application? Maybe you’re using it to troubleshoot memory issues when loading a large data science project. What could running a profiler show you about a codebase you’re learning? This week on the show, Pablo Galindo Salgado returns to talk about Memray, a powerful tracing memory profiler. (是也乎: ) Python 中 assert 有危险 DHRUV PATEL • Shared by Randall Degges Did you know Python’s assert statement can lead to runtime security vulnerabilities? While there are safe ways to use assert, there are lots of unsafe ways to use it that can lead to a variety of convoluted problems. (是也乎: 和 goto 类似…反正, 语法设计不可能杜绝人为问题, Rust 都不行 ) 关于 asyncio.Semaphore 推理 GUIDO VAN ROSSUM Guido walks you through a single-table restaurant analogy to explain the complexity of semaphores in asyncio. Details include the TaskGroup context manager added in Python 3.11. (是也乎: 老爹的官方 blog, Neopythonic: About This Blog 08年从 Artima 迁移到 blogspot 上, 是的, 就是那个 google 收购的 blog 引擎… 当年也跟风注册过, 然后, 和谐了… ) Django 安全版本已发布: 4.1.2, 4.0.8, and 3.2.16 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions NIL ...

2022-10-12 · 4 min · 1821 words · ZoomQuiet

PyCoder 545

Python 版 Rust/内置 linter clippy 来了 原文: PyCoder’s Weekly - Issue #545 221005 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 221005 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 Django Channels 和 WebSocket 构建实时聊天 MUHAMMED ALI Building stateful web applications can be tricky, unless you use a framework, of course. Django to the rescue! In this article, learn how to build a real-time chat app using Django Channels and WebSockets. 用 Python 生成二维码 JERRY ZHU QR codes are two dimensional bar codes that allow you to embed URLs in images. Learn how to make a QR code using the qrcode library. (是也乎: 奇怪知识总是在增长 ) 用 Django Ninja 构建鬼鬼祟祟的 REST API REAL PYTHON COURSE In this video course, you’ll learn how to use Django Ninja, a FastAPI inspired tool for turning Django views in REST API endpoints. With Ninja, you can quickly build API endpoints. (是也乎: ) 探讨/吐糟 Discussions ...

2022-10-05 · 4 min · 1819 words · ZoomQuiet