蠎周刊 PyCoder 569

如何评估包的质量Orz… 原文: PyCoder’s Weekly - Issue #569 230322 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 230322 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 如何评估 Python 包的质量 REAL PYTHON Just like you shouldn’t download any file from the Internet, you shouldn’t blindly install third-party Python packages without evaluating them first. This tutorial will give you the toolset to evaluate the quality of external Python packages before you implement them into your Python projects. (是也乎: 认真是一种气味儿, 很容易嗅到 ;-) Libraries.io - The Open Source Discovery Service 我们可能没办法构建出新工具, 但是, 我们可以专业的评定工具们. ) PyTorch 2.0 中新库更新 PYTORCH.ORG Learn what’s changed in the newly released PyTorch 2.0 library. Includes new data collectors, augmentation operators, vision features, and loads more. 惰性递归,带生成器 TUSHAR SADHWANI This article introduces your to mixing generators with recursion to improve memory usage. Includes a short snippet on using yield and yield from. (是也乎: 嗯哼? 就象 麦当劳奶昔配KFC辣鸡堡? ) 探讨/吐糟 Discussions ...

2023-03-22 · 5 min · 2268 words · ZoomQuiet

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