PyCoder 543

dataclasses 值得使用 原文: PyCoder’s Weekly - Issue #543 220921 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220921 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 在 Python 中构建 Alexa 等效项 ANDREW HERSHY It’s not as difficult as you think to build an AI program that listens to speech and answers questions. You can make the magic happen in an afternoon by leveraging a few Python packages and APIs. Python SQLite 文档案例增补 REDOWAN DELOWAR • Shared by Redowan Delowar The official documentation of Python’s sqlite3 module is a little short on examples. This article lists various in-depth examples that cover the most commonly used APIs in the module. (是也乎: 反正还是直接 SQL 最标准了… ) 自定义 Python 列表: 从列表继承与 UserList REAL PYTHON In this tutorial, you’ll learn how to create custom list-like classes in Python by inheriting from the built-in list class or by subclassing UserList from the collections module. (是也乎: ) Python 3.11.0rc2 发布 PYTHON.ORG 探讨/吐糟 Discussions ...

2022-09-21 · 4 min · 1595 words · ZoomQuiet

PyCoder 542

Jupyter+git 问题已解决 原文: PyCoder’s Weekly - Issue #542 220913 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220913 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. List Comprehensions Are More Powerful Than You Think MARTIN HEINZ • Shared by Martin Heinz List comprehensions have a lot of depth. This article takes you beyond the basics and explains nested comprehensions, multiple conditionals, exceptions, breaking the loop, and more. (是也乎: 这在 Python一行流 (2021) 中进行了充分的讨论… ) Can Amazon’s CodeWhisperer Write Better Python Than You? BRIAN TARBOX • Shared by Adam Buggia Amazon’s CodeWhisperer is a machine-learning based coding assistant which is currently in beta. Learn about its capabilities and limitations. (是也乎: 可惜是 AWS only 的东西… ) Possible DoS Exposure in Large int to str Conversions GITHUB.COM/PYTHON “A Denial Of Service (DoS) issue was identified in CPython because we use binary bignum’s for our int implementation. A huge integer will always consume a near-quadratic amount of CPU time in conversion to or from a base 10 (decimal) string with a large number of digits. No efficient algorithm exists to do otherwise.” Django Bugfix Release: 4.1.1 DJANGO SOFTWARE FOUNDATION Python 3.10.7, 3.9.14, 3.8.14, and 3.7.14 Released CPYTHON DEV BLOG TensorFlow 2.10 Released TENSORFLOW.ORG 探讨/吐糟 Discussions ...

2022-09-13 · 4 min · 1602 words · ZoomQuiet

PyCoder 541

47+值得知道的 Py 字符串方法 原文: PyCoder’s Weekly - Issue #541 220907 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220907 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 创建 Python 代码完成器和更多 AST 项目 REAL PYTHON PODCAST How does a code completion tool work? What is an Abstract Syntax Tree, and how is it created in Python? How does an AST help you write programs and projects that inspect and modify your Python code? This week on the show, Meredydd Luff, co-founder of Anvil, shares his PyCon talk, “Building a Python Code Completer.” (是也乎: AST 好东西 ) 值得知道的 Python 字符串方法 TREY HUNNER • Shared by Trey Hunner Python’s strings have 47 methods. That’s almost as many string methods as there are built-in functions in Python! Which string methods should you learn first? (是也乎: 和 Perl 类似, 字符串, 是日常最多应对场景,值得深入支持… ) Python 中的龙曲线 🐍 GIULIANO PERTILE • Shared by Giuliano Pertile A Dragon Curve is a kind of fractal image. This article introduces you to the math behind the curve and how to draw one using a Python script. (是也乎: 龙式分形…supper cool. ) 探讨/吐糟 Discussions ...

2022-09-07 · 4 min · 1732 words · ZoomQuiet

PyCoder 540

Python 世界第一但企业更爱 SQL 原文: PyCoder’s Weekly - Issue #540 220831 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 220831 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 FastAPI 和 Python 构建 缩址器 REAL PYTHON COURSE In this video course, 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. (是也乎: FastAPI 的好, 不仅仅是内置了文档界面 ) Flet: 用 Python 构建 Flutter 应用程序 FITSNER & KENNEDY PODCAST Flutter is a UI framework for mobile, desktop, and web apps. Flet is a Python library for using Flutter. This podcast is an interview with Feodor Fitsner the creator of Flet. (是也乎: 是的, 值得体验, 这真的是贴心尝试. 值得付费… ) 网络钓鱼 PyPI 用户: 受感染的项目推送恶意软件 ZELJKA ZORZ PyPI is warning about a phishing campaign targeting its users; the attackers have compromised some legitimate projects to push malware. See also the original Tweet from PyPI. (是也乎: 想说大势所趋的…可惜… ) 在 Spring 的生产环境中使用 Mypy CHARLIE MARSH Spring maintains Python software containing over 300k lines of code. This article discusses how they decided to start using Mypy and how it benefited them. (是也乎: 等等, 就是那个 Spring? ) Heroku 取消免费套餐 HEROKU.COM (是也乎: 好吧, 免费用了那么久, 也知道怎么肥四了… 迁移到 各公有云的 FaaS 中, 也是好的 ) 受 Cryptominers 影响的 100 多个 PyPI 和 npm 包 MANIKANTA IMMANNI 探讨/吐糟 Discussions ...

2022-08-31 · 5 min · 2048 words · ZoomQuiet