PyCoder 568

22年 Django 开发者调查报告来了 原文: PyCoder’s Weekly - Issue #568 230315 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230315 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 用 BeeWare 跨平台共享你的 Python 应用程序 REAL PYTHON PODCAST Are you interested in deploying your Python project everywhere? This week on the show, Russell Keith-Magee, founder and maintainer of the BeeWare project, returns. Russell shares recent updates to Briefcase, a tool that converts a Python application into native installers on macOS, Windows, Linux, and mobile devices. (是也乎: ) Python Asyncio 任务的开销 WILL MCGUGAN The Textual library uses a lot of asyncio tasks. In order to determine whether to spend time optimizing them, Will measured the cost of creating asyncio tasks. TLDR; optimize something else. This article also spawned a conversation on Hacker News. Julia 和 Python 更好地结合 BOGUMIŁ KAMIŃSKI Julia is a popular programming language among data scientists, but if you ever code in that space and miss some of the key Python libraries, this article is for you. Julia packages can wrap other languages, so you can have the best of both worlds. (是也乎: 原先不是说要超越的? 现在就在一起了? ) Python 3.12.0 Alpha 6 发布 CPYTHON DEV BLOG 2022 年 Django 开发者调查结果可用 DJANGO SOFTWARE FOUNDATION (是也乎: 是的, Django 开发者已经是 web 应用代表了, Flask 不是… 比较有趣的是最后的联系网络入口…有微信呢. ) 探讨/吐糟 Discussions ...

2023-03-15 · 4 min · 1991 words · ZoomQuiet

PyCoder 567

为毛 Python 还在增长? 原文: PyCoder’s Weekly - Issue #567 230308 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230308 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 PEP 709: 内联理解 PYTHON.ORG Python Enhancement Proposal 709 covers a change to how comprehensions are handled. Currently they are compiled as nested functions. Benchmarking shows that treating list, dict, and set comprehensions as in-line code can result in a 2x speedup on the comprehension. Python 中的迭代器和可迭代对象: 运行高效的迭代 REAL PYTHON In this tutorial, you’ll learn what iterators and iterables are in Python. You’ll learn how they differ and when to use them in your code. You’ll also learn how to create your own iterators and iterables to make data processing more efficient. (是也乎: 嗯哼, 怎么说呢? 同样是迭代处理,对比一下 Rust 最常见的: 这种链式闭包联级处理, 也是 Elixir/Haskell/LISP/…函数式语言常见的形式, 这在 Python 中还很难日用起来… ) Pandas 2.0 和 Arrow Revolution(上) MARC GARCIA This article details the changes in the Pandas 2.0 release, with emphasis on the underlying adoption of Apache Arrow. 探讨/吐糟 Discussions ...

2023-03-08 · 5 min · 2319 words · ZoomQuiet

PyCoder 566

MooS ~ 模型即服务?! 原文: PyCoder’s Weekly - Issue #566 230301 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230301 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 用 NumPy 和线性代数编写更快的 Python 代码 REAL PYTHON PODCAST Are you still using loops and lists to process your data in Python? Have you heard of a Python library with optimized data structures and built-in operations that can speed up your data science code? This week on the show, Jodie Burchell, developer advocate for data science at JetBrains, returns to share secrets for harnessing linear algebra and NumPy for your projects. (是也乎: 简单的说使用数学工具,而不是编程工具. ) Python 的 Multiprocessing 性能问题 ITAMAR TURNER-TRAURING While multiprocessing allows Python to scale to multiple CPUs, it has some performance overhead compared to threading. This article details why processes have performance issues that threads don’t, ways to work around it, and a sample bad solution. (是也乎: 没事儿, 用 Rust 重写一遍就好… ) 在 Python 中将 XML 转换为 YAML ADITYA RAJ XML and YAML are two of the most popular text based data formats. This article teaches you how to use third-party Python libraries to convert from one to the other. 攻击试图交付 Rust 可执行文件的 PyPI PHYLUM.IO Django 4.2 Beta 1 发布 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions None … ...

2023-03-01 · 4 min · 1817 words · ZoomQuiet

PyCoder 565

为什么类型提示很烂… 原文: PyCoder’s Weekly - Issue #565 230222 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230222 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 如何刷新 Python 打印函数的输出 REAL PYTHON In this tutorial, you’ll learn how to flush the output of Python’s print function. You’ll explore output stream buffering in Python using code examples and learn that output streams are block-buffered by default, and that print() with its default arguments executes line-buffered when interactive. (是也乎: 制作进度条的关键技巧… ) 潜伏在异步代码中的 Heisenbug WILL MCGUGAN When using the create_task() function in asyncio it is very important to maintain a reference to the created tasks. Although this requirement is documented, it is easy to forget and can have some very hard to understand consequences. SQLAlchemy 2.0 有什么新功能? MIGUEL GRINBERG SQLAlchemy 2.0 was launched in January. This article reviews the latest changes, whether it is worth the upgrade, and how to go about it. (是也乎: 书都准备好了… ) PyCon US 2023 (犹他州盐湖城)时间表可用 PYCON.BLOGSPOT.COM Django Security 已发布: 4.1.7, 4.0.10, and 3.2.18 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2023-02-22 · 4 min · 1792 words · ZoomQuiet