Planet Python
Follow
Python Bytes: #501 A Nod to Sir-Mix-Alot
Nod is a JupyterLab extension allowing users to pause Python programs and open a notebook at any specific line for debugging. This tool helps in examining variables and the call stack directly within a running program. Polars 2.0 has been released, featuring a default streaming engine for improved memory and speed. However, this new engine does not guarantee row order for certain operations, requiring explicit handling if order is critical. Polars 2.0 also enables out-of-core processing by default, allowing it to spill data to disk when memory is exhausted. The update introduces a native Map data type, enhancing performance and introducing new map manipulation functions. Django-cachalot is presented as a solution for caching ORM queries, automatically invalidating them when underlying data changes. It offers significant speedups for read-heavy applications but is less suitable for tables with frequent write operations. Progress is being made towards supporting asynchronous transactions in Django, aiming to improve how asyncio tasks interact within database transactions. Current proposals involve new designs that allow sibling tasks to continue writing even if a transaction rolls back. Jazzband, a significant project, is set to shut down, prompting exploration of alternative platforms. Treemd is highlighted as a useful TUI for viewing Markdown files. Discussions also touch upon Talk Python membership, visual topic guides, and recent Python Enhancement Proposals. An observation is made about the potential staleness of a free threaded Polars version on PyPI. Finally, a brief mention of a joke concludes the episode's diverse technical discussions.