PyCoder 549

PyCon US 2023 开始召唤议题 原文: PyCoder’s Weekly - Issue #549 221102 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 221102 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 如何从 Python 列表或可迭代对象中获取第一个匹配项 REAL PYTHON In this tutorial you’ll learn about the best ways to get the first match from a Python list or iterable. You’ll look into two different strategies, for loops and generators, and compare their performance. Then you’ll end up by creating a reusable function for all your first matching needs. (是也乎: ) 用 Pillow 生成模因/MEME和信息图表 PIOTR MALIŃSKI Pillow is great for doing image resizing, adding borders or composing. This makes it a natural fit for creating tools for memes and infographics. This step-by-step article shows you what Pillow code you need to write to turn any image into a meme. (是也乎: 给定一张图,快速自动追加各种网络梗 ) 什么时候应该升级到 Python 3.11? ITAMAR TURNER-TRAURING Python 3.11 has been released, when should you switch to using it? This posting covers the complications you can run into when moving to the latest release of any Python and how to know when it is best for you to upgrade. (是也乎: 很明显 Py 3.12.1 发布时 ) Python 3.12.0 Alpha 1 发布 PYTHON.ORG PyCon US 2023 提案征集开始 PYCON.ORG (是也乎: PyCon22中国 刚刚开始主题召唤… ) 探讨/吐糟 Discussions ...

2022-11-02 · 4 min · 1896 words · ZoomQuiet

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