Click any tag below to further narrow down your results
Links
This article outlines ten effective strategies to optimize Python code for better performance. It covers techniques like using sets for membership testing, avoiding unnecessary copies, and leveraging local functions to reduce execution time and memory usage. Each hack is supported by code examples and performance comparisons.
This article explains how to create a basic AI coding assistant using Python. It outlines the core functionalities needed, such as reading, listing, and editing files, and provides a step-by-step guide to implementing these features. The author emphasizes that the underlying architecture is straightforward and can be adapted for various LLM providers.
RestrictedPython allows you to run a limited subset of Python code in a controlled environment. It helps execute untrusted code safely but is not a full sandbox. The tool only works with CPython, not with other Python implementations.
This article introduces "claude-code-transcripts," a Python CLI tool that converts Claude Code transcripts into detailed HTML pages for easier understanding and sharing. It allows users to select local sessions or fetch them from Claude Code for web, streamlining the process of documenting coding conversations.
The article discusses various uncommon features and idioms in Python that can enhance coding efficiency and readability. It highlights unique aspects of the language that are often overlooked, encouraging developers to explore these advanced techniques for better programming practices.