# Real Python

Build real-world Python skills by doing: expert-written tutorials with interactive quizzes and coding exercises, video courses, and an AI mentor that guides you at every level.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Hy4 flash Draws a Python Reading a Book

DevFeed: [Hy4 flash Draws a Python Reading a Book](<https://devfeed.tech/articles/hy4-flash-draws-a-python-reading-a-book-144047.md>)

Original publisher: [Read original article](<https://realpython.com/ai-benchmark-hy4-flash/>)

Author: Philipp Acsany

Published: 2026-11-19T14:00:00Z

Content type: news

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [import](<https://devfeed.tech/topics/import.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-benchmark](<https://devfeed.tech/tags/ai-benchmark.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [book](<https://devfeed.tech/tags/book.md>), [code](<https://devfeed.tech/tags/code.md>), [drawing](<https://devfeed.tech/tags/drawing.md>), [edits](<https://devfeed.tech/tags/edits.md>), [explore](<https://devfeed.tech/tags/explore.md>), [flash](<https://devfeed.tech/tags/flash.md>), [functions](<https://devfeed.tech/tags/functions.md>), [hy4](<https://devfeed.tech/tags/hy4.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [modern](<https://devfeed.tech/tags/modern.md>), [python](<https://devfeed.tech/tags/python.md>), [reading](<https://devfeed.tech/tags/reading.md>), [release](<https://devfeed.tech/tags/release.md>), [responses](<https://devfeed.tech/tags/responses.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [tasks](<https://devfeed.tech/tags/tasks.md>)

### AI overview

In this informal five task comparison, Hy4 flash produced a turtle script that ran without errors, used six of 14 newer Python features checked for the `stash` task, preserved all 10 unrelated spots in a focused edit, and correctly rejected the nonexistent `itertools.flatten()` while suggesting `itertools.chain.from_iterable()` or the third party `more_itertools.flatten`. The `stash` code requires Python 3.11 because it imports `tomllib`, although its feature score was Python 3.10 under the rubric; it used older UTC helpers and a manual file hashing loop instead of newer alternatives. The run used `tencent/hy4-flash` via OpenRouter at default reasoning settings, without a system prompt, and left returned code unchanged. These are results from an informal comparison, not a full assessment of model behavior.

### Source excerpt

Explore Hy4 flash's Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.

## GPT-6.2 Astra Draws a Python Reading a Book

DevFeed: [GPT-6.2 Astra Draws a Python Reading a Book](<https://devfeed.tech/articles/gpt-6-2-astra-draws-a-python-reading-a-book-141091.md>)

Original publisher: [Read original article](<https://realpython.com/ai-benchmark-gpt-6-2-astra/>)

Author: Philipp Acsany

Published: 2026-11-18T14:00:00Z

Content type: comparison

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>)

Tags: [book](<https://devfeed.tech/tags/book.md>), [code](<https://devfeed.tech/tags/code.md>), [drawing](<https://devfeed.tech/tags/drawing.md>), [edits](<https://devfeed.tech/tags/edits.md>), [explore](<https://devfeed.tech/tags/explore.md>), [functions](<https://devfeed.tech/tags/functions.md>), [gpt-6-2-astra](<https://devfeed.tech/tags/gpt-6-2-astra.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [modern](<https://devfeed.tech/tags/modern.md>), [python](<https://devfeed.tech/tags/python.md>), [reading](<https://devfeed.tech/tags/reading.md>), [release](<https://devfeed.tech/tags/release.md>), [responses](<https://devfeed.tech/tags/responses.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [tasks](<https://devfeed.tech/tags/tasks.md>)

### AI overview

GPT-6.2 Astra's turtle script drew a Python reading a book and ran without errors. In the excerpt's informal comparison, its `stash` tool used 12 of 15 newer Python features in the rubric, earning a Python 3.12 score; the newest detected feature was `itertools.batched()`. The article distinguishes this feature score from the Python version required to run the code. Asked for the newest stable release, the model answered `3.14`. In an `--ext` edit, it added extension filtering but also changed three unrelated items: a `range(len(...))` loop, a bare `except` to `except OSError`, and a comment typo. When asked about `itertools.flatten()`, it correctly said the function does not exist and suggested `itertools.chain.from_iterable()` for flattening one level. Tests used the same prompts without a system prompt; this run used OpenRouter at default reasoning settings.

### Source excerpt

Explore GPT-6.2 Astra's Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.

## GPT-6.2 Sol Draws a Python Reading a Book

DevFeed: [GPT-6.2 Sol Draws a Python Reading a Book](<https://devfeed.tech/articles/gpt-6-2-sol-draws-a-python-reading-a-book-141092.md>)

Original publisher: [Read original article](<https://realpython.com/ai-benchmark-gpt-6-2-sol/>)

Author: Philipp Acsany

Published: 2026-11-18T14:00:00Z

Content type: comparison

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [3-14](<https://devfeed.tech/tags/3-14.md>), [ai-benchmark](<https://devfeed.tech/tags/ai-benchmark.md>), [book](<https://devfeed.tech/tags/book.md>), [code](<https://devfeed.tech/tags/code.md>), [command-line-tool](<https://devfeed.tech/tags/command-line-tool.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [drawing](<https://devfeed.tech/tags/drawing.md>), [edits](<https://devfeed.tech/tags/edits.md>), [functions](<https://devfeed.tech/tags/functions.md>), [gpt-6-2-sol](<https://devfeed.tech/tags/gpt-6-2-sol.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

In this run, GPT-6.2 Sol produced a turtle drawing script that ran without errors, used 10 of 14 newer Python features in a `stash` CLI (earning a Python 3.12 score under the rubric; its newest detected feature was `itertools.batched()`), identified Python 3.14.6 as the newest stable release, and correctly said `itertools.flatten()` does not exist, suggesting `chain.from_iterable()`. In a focused `--ext` edit, it also changed two unrelated planted details: a comment typo and `range(len(...))` loops. The comparison used the same prompts without a system prompt; this run used OpenRouter at default reasoning settings. The feature score reflects feature use, not the minimum Python version required to run the code.

### Source excerpt

Explore GPT-6.2 Sol's Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.

## How to Set Up a Python Project for Agentic Coding

DevFeed: [How to Set Up a Python Project for Agentic Coding](<https://devfeed.tech/articles/how-to-set-up-a-python-project-for-agentic-coding-136305.md>)

Original publisher: [Read original article](<https://realpython.com/python-project-for-agentic-coding/>)

Author: Isabel Zimmerman

Published: 2026-11-16T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Python](<https://devfeed.tech/topics/python.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [project layout](<https://devfeed.tech/topics/project-layout.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-coding](<https://devfeed.tech/tags/agentic-coding.md>), [agents](<https://devfeed.tech/tags/agents.md>), [agents-md](<https://devfeed.tech/tags/agents-md.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-assistants](<https://devfeed.tech/tags/ai-assistants.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [ai-coding-assistant](<https://devfeed.tech/tags/ai-coding-assistant.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [project](<https://devfeed.tech/tags/project.md>), [python](<https://devfeed.tech/tags/python.md>), [tests](<https://devfeed.tech/tags/tests.md>), [types](<https://devfeed.tech/tags/types.md>)

### AI overview

A Python project can give coding agents clear, repeatable feedback by encoding expectations in its structure and tools. The tutorial starts with `uv init --package` and Git, then configures Ruff for linting and formatting, strict mypy checks, and `pytest` with a 90% coverage gate. Pre-commit hooks run selected checks before commits; failures give agents actionable feedback, though lint and type errors still need correction. A concise `AGENTS.md` documents workflows and conventions automation cannot enforce, while `.env` stays ignored and `.env.example` records required variables. Tool support for agent instruction files varies, but the automated project setup is described as tool agnostic. The article recommends keeping guidance consistent with enforced settings and breaking large changes into smaller tasks.

### Source excerpt

Learn how to set up a Python project for agentic coding, with the tests, types, and hooks that give AI coding agents fast feedback.

## Scientific Python: Using SciPy for Optimization

DevFeed: [Scientific Python: Using SciPy for Optimization](<https://devfeed.tech/articles/scientific-python-using-scipy-for-optimization-134509.md>)

Original publisher: [Read original article](<https://realpython.com/python-scipy-cluster-optimize/>)

Author: Bryan Weber

Published: 2026-11-15T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [SciPy](<https://devfeed.tech/topics/scipy.md>), [clustering](<https://devfeed.tech/topics/clustering.md>), [Operations research and optimization](<https://devfeed.tech/topics/operations-research-and-optimization.md>), [Python](<https://devfeed.tech/topics/python.md>), [pip](<https://devfeed.tech/topics/pip.md>), [scikit-learn](<https://devfeed.tech/topics/scikit-learn.md>)

Tags: [clustering](<https://devfeed.tech/tags/clustering.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [install](<https://devfeed.tech/tags/install.md>), [library](<https://devfeed.tech/tags/library.md>), [modules](<https://devfeed.tech/tags/modules.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [python](<https://devfeed.tech/tags/python.md>), [scipy](<https://devfeed.tech/tags/scipy.md>)

### AI overview

The tutorial distinguishes the SciPy ecosystem from the SciPy library, explains installation with Anaconda or pip, then demonstrates clustering and optimization. In its SMS example, `scipy.cluster.vq` uses whitened digit-count data with `kmeans()` and `vq()` to form three groups: messages with zero digits were mostly ham, those with more than 20 digits were mostly spam, and the middle group remained uncertain. For optimization, `minimize_scalar()` finds a scalar function's minimum; its `bounded` method can restrict the search interval, while a `bracket` for Brent's method does not guarantee the result stays within that interval. The tutorial also uses `minimize()` with linear constraints and variable bounds to allocate shares among buyers. It stresses checking the returned success status: an infeasible 1,000-share target yields a failed `OptimizeResult` rather than an exception.

### Source excerpt

Learn how the SciPy ecosystem differs from the SciPy library, then install SciPy and use its clustering and optimization modules in Python.

## How to Do a Binary Search in Python

DevFeed: [How to Do a Binary Search in Python](<https://devfeed.tech/articles/how-to-do-a-binary-search-in-python-134046.md>)

Original publisher: [Read original article](<https://realpython.com/binary-search-python/>)

Author: Bartosz Zaczyński

Published: 2026-11-14T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [binary-search](<https://devfeed.tech/tags/binary-search.md>), [implement](<https://devfeed.tech/tags/implement.md>), [module](<https://devfeed.tech/tags/module.md>), [python](<https://devfeed.tech/tags/python.md>), [search](<https://devfeed.tech/tags/search.md>)

### AI overview

Binary search can locate values in a sorted list with logarithmic comparisons by repeatedly halving the remaining range; the excerpt estimates at most about 20 comparisons for one million items. Python's `bisect` module finds insertion positions and maintains sorted lists, but the list must already be sorted. For duplicates, `bisect_left()` and `bisect_right()` expose the matching range; searches by key can use precomputed keys. The tutorial also builds iterative and recursive implementations, discussing boundary updates, missing values, duplicate results, slicing overhead in recursion, and floating-point comparisons. It recommends using library code unless implementation is needed for learning or constraints. Hash-based `dict` lookup can be faster and independent of item position, but the described IMDb benchmark uses about 0.5 GB more memory and requires keeping the index consistent; dictionary keys must be hashable. The excerpt includes benchmark context and complexity discussion, but does not provide the full tutorial.

### Source excerpt

Use the bisect module to do a binary search in Python, then implement this classic algorithm yourself, both iteratively and recursively.

## Anthropic and Google Make Their Best AI Models Cheaper

DevFeed: [Anthropic and Google Make Their Best AI Models Cheaper](<https://devfeed.tech/articles/anthropic-and-google-make-their-best-ai-models-cheaper-133360.md>)

Original publisher: [Read original article](<https://realpython.com/ai-news-weekly-2026-11-13/>)

Author: Philipp Acsany

Published: 2026-11-13T14:00:00Z

Content type: news

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [AI Models](<https://devfeed.tech/topics/ai-models.md>), [Google AI](<https://devfeed.tech/topics/google-ai.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [API Business Models](<https://devfeed.tech/topics/api-business-models.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [google-antigravity](<https://devfeed.tech/topics/google-antigravity.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [vllm](<https://devfeed.tech/topics/vllm.md>), [Google Search](<https://devfeed.tech/topics/google-search.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-tools](<https://devfeed.tech/tags/agent-tools.md>), [agent-workflows](<https://devfeed.tech/tags/agent-workflows.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-companies](<https://devfeed.tech/tags/ai-companies.md>), [ai-model](<https://devfeed.tech/tags/ai-model.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [ai-news](<https://devfeed.tech/tags/ai-news.md>), [ai-studio](<https://devfeed.tech/tags/ai-studio.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [claude](<https://devfeed.tech/tags/claude.md>), [faster](<https://devfeed.tech/tags/faster.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [google](<https://devfeed.tech/tags/google.md>), [models](<https://devfeed.tech/tags/models.md>), [python](<https://devfeed.tech/tags/python.md>), [weekly](<https://devfeed.tech/tags/weekly.md>)

### AI overview

Anthropic's Claude Fable 5.2 and Mythos 5.2 share an underlying model; Fable has stronger safeguards and is broadly available, while Mythos is limited to vetted organizations. Anthropic lists API rates of $8 per million input tokens and $40 per million output tokens, with an optional mode at double the price, and reports faster replies and fewer tokens per task than version 5.1 at default settings. Google's Gemini lineup separates harder work (Carbon and Argon) from routine tasks (Hydrogen). Carbon's introductory API price of $2/$10 per million input/output tokens rises to $4/$20 after November 30, 2026; Hydrogen costs $1.50/$7.50 and is available across Google products. Google reports speed and benchmark gains for Hydrogen. These performance and cost comparisons are provider claims. The excerpt also describes Gemini Decisions API, which scores up to 1,000 questions against one input and returns confidence values, and Google's Orchestrator, which routes coding tasks to Hydrogen or Carbon.

### Source excerpt

Real Python's weekly AI news for November 7-13, 2026, explained in plain language: Cheaper Claude, Google's Strongest Gemini, and a Faster Gemini.

## Get Started With Meta Muse in Python: Spark and Glimmer

DevFeed: [Get Started With Meta Muse in Python: Spark and Glimmer](<https://devfeed.tech/articles/get-started-with-meta-muse-in-python-spark-and-glimmer-133361.md>)

Original publisher: [Read original article](<https://realpython.com/meta-muse-python/>)

Author: Philipp Acsany

Published: 2026-11-13T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Python](<https://devfeed.tech/topics/python.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>)

Tags: [images](<https://devfeed.tech/tags/images.md>), [meta](<https://devfeed.tech/tags/meta.md>), [meta-muse](<https://devfeed.tech/tags/meta-muse.md>), [muse](<https://devfeed.tech/tags/muse.md>), [muse-spark](<https://devfeed.tech/tags/muse-spark.md>), [open-weights](<https://devfeed.tech/tags/open-weights.md>), [python](<https://devfeed.tech/tags/python.md>), [spark](<https://devfeed.tech/tags/spark.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [tool](<https://devfeed.tech/tags/tool.md>)

### AI overview

Muse Spark and Glimmer can be called from Python with the OpenAI client because Meta's Model API uses its protocol. The tutorial demonstrates Responses and Chat Completions requests, streaming, image input, function calls, and Pydantic structured output. Spark always reasons; in the tutorial's tests, setting effort to "minimal" cut latency by more than half and cost by about 60% while answering the checked question correctly, though it still used reasoning tokens. Default-effort streaming had a 12-34 second first-token delay across four runs, and tool_choice supports only "auto"; some other OpenAI parameters fail. Spark is available through Meta's endpoint or OpenRouter at the same token prices, but Meta's API has no hard spending cap. Glimmer's Apache 2.0 weights can be hosted locally or rented; in one matching hosted test it cost about one-eighth as much as Spark for the same question, but the comparison is limited. Local Glimmer needs substantial memory, and its tutorial script was not tested because the test machine had no GPU.

### Source excerpt

Get started with Meta Muse in Python. Make your first Muse Spark call, then add streaming, images, and tool calls, and try the open-weights Glimmer.

## The Real Python Podcast - Episode #319: Mentoring Developers Beyond the Code With Tim Schilling

DevFeed: [The Real Python Podcast - Episode #319: Mentoring Developers Beyond the Code With Tim Schilling](<https://devfeed.tech/articles/the-real-python-podcast-episode-319-mentoring-developers-beyond-the-code-with-tim-schilling-133362.md>)

Original publisher: [Read original article](<https://realpython.com/podcasts/rpp/319/>)

Author: Real Python

Published: 2026-11-13T12:00:00Z

Content type: article

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [developer-relations](<https://devfeed.tech/topics/developer-relations.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [career](<https://devfeed.tech/tags/career.md>), [developers](<https://devfeed.tech/tags/developers.md>), [django](<https://devfeed.tech/tags/django.md>), [mentoring](<https://devfeed.tech/tags/mentoring.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

Tim Schilling describes mentoring as support for developers beyond Python syntax, drawing on his own career and experience in workplace and one-on-one mentorship. The conversation covers what mentors and mentees bring to the relationship, gaps mentoring can fill, and why humility and asking for help matter. Schilling also discusses writing and blogging as ways to work through ideas and career struggles, and highlights Django community efforts including Djangonaut Space and Django Commons. The excerpt lists these subjects but does not provide detailed answers to the episode's questions.

### Source excerpt

What's it take to be a mentor to developers? Where in an engineer's career can a mentor make an impact? This week we speak with Tim Schilling, Django Steering Council member and Djangonaut Space administrator, about mentoring Python developers.

## Learn With Mentor AI: Working Through a Coding Exercise

DevFeed: [Learn With Mentor AI: Working Through a Coding Exercise](<https://devfeed.tech/articles/learn-with-mentor-ai-working-through-a-coding-exercise-130366.md>)

Original publisher: [Read original article](<https://realpython.com/mentor-ai-coding-exercise/>)

Author: Bartosz Zaczyński

Published: 2026-11-12T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Learning](<https://devfeed.tech/topics/learning.md>), [Code Challenge](<https://devfeed.tech/topics/code-challenge.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [if statement](<https://devfeed.tech/topics/if-statement.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [after](<https://devfeed.tech/tags/after.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-answers](<https://devfeed.tech/tags/ai-answers.md>), [ai-chat](<https://devfeed.tech/tags/ai-chat.md>), [all](<https://devfeed.tech/tags/all.md>), [coding](<https://devfeed.tech/tags/coding.md>), [exercise](<https://devfeed.tech/tags/exercise.md>), [failed](<https://devfeed.tech/tags/failed.md>), [hints](<https://devfeed.tech/tags/hints.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [instead](<https://devfeed.tech/tags/instead.md>), [learn](<https://devfeed.tech/tags/learn.md>), [learn-how-to](<https://devfeed.tech/tags/learn-how-to.md>), [mentor](<https://devfeed.tech/tags/mentor.md>), [python](<https://devfeed.tech/tags/python.md>), [test](<https://devfeed.tech/tags/test.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

The tutorial demonstrates using Real Python's Mentor AI to debug a coding exercise while keeping the learner responsible for the solution. In "Fix the Sticky Default List," a mutable `[]` default is shared across calls; changing it to `None` and creating a list only when `starter_list is None` fixes that bug while preserving a caller's explicitly passed empty list. The tutorial walks through running tests, asking why a specific test failed, requesting hints and examples, checking predictions, reviewing the solution, explaining the fix back, and taking a quiz. Mentor AI can see the exercise code and test results without requiring them to be pasted into chat. Access requires a signed-in Real Python membership with Mentor AI; the exercise is members-only, and a free seven-day trial is mentioned.

### Source excerpt

Learn how to use Mentor AI on a Real Python coding exercise. Ask why a test failed, get hints instead of the answer, and check your understanding.

## Python HTTPX: Making HTTP Requests With HTTPX2

DevFeed: [Python HTTPX: Making HTTP Requests With HTTPX2](<https://devfeed.tech/articles/python-httpx-making-http-requests-with-httpx2-129316.md>)

Original publisher: [Read original article](<https://realpython.com/python-httpx/>)

Author: Cléa Aumont

Published: 2026-11-11T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [client library](<https://devfeed.tech/topics/client-library.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [asyncio](<https://devfeed.tech/tags/asyncio.md>), [http](<https://devfeed.tech/tags/http.md>), [http-2](<https://devfeed.tech/tags/http-2.md>), [httpx](<https://devfeed.tech/tags/httpx.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

HTTPX2 keeps a Requests-like API while adding async requests, default timeouts, and optional HTTP/2. The tutorial shows reusing `Client` or `AsyncClient` instances to pool connections, using `asyncio.gather()` for concurrent calls, and tuning the separate connect, read, write, and pool timeout phases. It explains handling timeout and network exceptions, streaming response bodies in chunks to limit memory use, and enabling HTTP/2 with the optional `h2` dependency and `http2=True`; unsupported servers fall back to HTTP/1.1. Migration is often a simple import change, but HTTPX2 does not follow redirects by default as Requests does, and the fork has a separate exception hierarchy. The text also notes HTTPX2's OS trust store behavior and its dropped Python 3.9 support.

### Source excerpt

Learn how to use Python HTTPX (now HTTPX2) to make HTTP requests, send async calls, set safe timeouts, stream large downloads, and enable HTTP/2.

## Quiz: Python HTTPX: Making HTTP Requests With HTTPX2

DevFeed: [Quiz: Python HTTPX: Making HTTP Requests With HTTPX2](<https://devfeed.tech/articles/quiz-python-httpx-making-http-requests-with-httpx2-128057.md>)

Original publisher: [Read original article](<https://realpython.com/quizzes/python-httpx/>)

Author: Real Python

Published: 2026-11-11T12:00:00Z

Content type: article

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [client library](<https://devfeed.tech/topics/client-library.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [clients](<https://devfeed.tech/tags/clients.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [errors](<https://devfeed.tech/tags/errors.md>), [http](<https://devfeed.tech/tags/http.md>), [http-2](<https://devfeed.tech/tags/http-2.md>), [httpx](<https://devfeed.tech/tags/httpx.md>), [python](<https://devfeed.tech/tags/python.md>), [streaming](<https://devfeed.tech/tags/streaming.md>)

### AI overview

This 10-question, untimed quiz checks practical use of HTTPX2, Pydantic's fork of HTTPX with a Requests-style API. Topics include reusing connections with `Client`, concurrent requests with `AsyncClient`, timeouts and errors, streaming large responses, and enabling HTTP/2. Each correct answer earns one point, with a score shown at the end.

### Source excerpt

Test your knowledge of Python HTTPX2 by reusing clients, sending async requests, setting timeouts, streaming responses, and enabling HTTP/2.

## Claude Fable 5.2 Draws a Python Reading a Book

DevFeed: [Claude Fable 5.2 Draws a Python Reading a Book](<https://devfeed.tech/articles/claude-fable-5-2-draws-a-python-reading-a-book-127408.md>)

Original publisher: [Read original article](<https://realpython.com/ai-benchmark-claude-fable-5-2/>)

Author: Martin Breuss

Published: 2026-11-10T14:00:00Z

Content type: comparison

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Claude](<https://devfeed.tech/topics/claude.md>), [Python](<https://devfeed.tech/topics/python.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [ai-benchmark](<https://devfeed.tech/tags/ai-benchmark.md>), [book](<https://devfeed.tech/tags/book.md>), [claude-fable-5-2](<https://devfeed.tech/tags/claude-fable-5-2.md>), [code](<https://devfeed.tech/tags/code.md>), [drawing](<https://devfeed.tech/tags/drawing.md>), [edits](<https://devfeed.tech/tags/edits.md>), [python](<https://devfeed.tech/tags/python.md>), [reading](<https://devfeed.tech/tags/reading.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

In Real Python's five-task informal comparison, Claude Fable 5.2 produced a turtle drawing script that ran without errors, used 13 of 14 newer Python features in a sample CLI tool, answered that the newest stable Python release was 3.14, preserved all 10 unrelated spots while adding an --ext option, and correctly rejected the nonexistent itertools.flatten() in favor of itertools.chain.from_iterable(). The feature score reflects rubric-detected syntax and APIs, not the minimum Python version needed to run the code. The run used the model through OpenRouter at default reasoning settings, without a system prompt; its drawing code was left unchanged. The excerpt says the hour-long real-work section and conclusion are not yet written.

### Source excerpt

Explore Claude Fable 5.2's Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.

## Gemini 4 Carbon Draws a Python Reading a Book

DevFeed: [Gemini 4 Carbon Draws a Python Reading a Book](<https://devfeed.tech/articles/gemini-4-carbon-draws-a-python-reading-a-book-128055.md>)

Original publisher: [Read original article](<https://realpython.com/ai-benchmark-gemini-4-carbon/>)

Author: Philipp Acsany

Published: 2026-11-10T14:00:00Z

Content type: comparison

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-benchmark](<https://devfeed.tech/tags/ai-benchmark.md>), [beginner](<https://devfeed.tech/tags/beginner.md>), [bench](<https://devfeed.tech/tags/bench.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [book](<https://devfeed.tech/tags/book.md>), [code](<https://devfeed.tech/tags/code.md>), [drawing](<https://devfeed.tech/tags/drawing.md>), [edits](<https://devfeed.tech/tags/edits.md>), [functions](<https://devfeed.tech/tags/functions.md>), [gemini-4-carbon](<https://devfeed.tech/tags/gemini-4-carbon.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [modern](<https://devfeed.tech/tags/modern.md>), [python](<https://devfeed.tech/tags/python.md>), [reading](<https://devfeed.tech/tags/reading.md>), [release](<https://devfeed.tech/tags/release.md>), [responses](<https://devfeed.tech/tags/responses.md>), [small](<https://devfeed.tech/tags/small.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [tasks](<https://devfeed.tech/tags/tasks.md>)

### AI overview

In this informal five-task comparison, Gemini 4 Carbon's turtle drawing script ran without errors, and its focused --ext edit left all 10 unrelated spots unchanged. In a generated stash CLI, it used 12 of 15 newer Python features in the rubric; the detected features topped out at Python 3.12, including itertools.batched(), while it used shutil.copy2() instead of the Python 3.14 Path.copy()/Path.copy_into() methods. Asked for the newest stable Python release, it said it could not verify current information, but the excerpt cuts off before its answer is complete. When asked about nonexistent itertools.flatten(), it correctly said no such function exists and suggested itertools.chain.from_iterable(). The comparison used identical prompts, no system prompt, and default reasoning settings for this run; these results reflect this run and the rubric described.

### Source excerpt

Explore Gemini 4 Carbon's Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.

## Gemini 4 Carbon Explained: Google's Model That Thinks Longer

DevFeed: [Gemini 4 Carbon Explained: Google's Model That Thinks Longer](<https://devfeed.tech/articles/gemini-4-carbon-explained-google-s-model-that-thinks-longer-128056.md>)

Original publisher: [Read original article](<https://realpython.com/gemini-4-carbon/>)

Author: Philipp Acsany

Published: 2026-11-10T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Google](<https://devfeed.tech/topics/google.md>), [Language models](<https://devfeed.tech/topics/language-models.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [context window](<https://devfeed.tech/topics/context-window.md>), [text-generation](<https://devfeed.tech/topics/text-generation.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [costs](<https://devfeed.tech/tags/costs.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [gemini-4-carbon](<https://devfeed.tech/tags/gemini-4-carbon.md>), [genai](<https://devfeed.tech/tags/genai.md>), [google](<https://devfeed.tech/tags/google.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [model](<https://devfeed.tech/tags/model.md>), [python](<https://devfeed.tech/tags/python.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [reasoning-model](<https://devfeed.tech/tags/reasoning-model.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

### AI overview

Gemini 4 Carbon is a paid Google reasoning model based on Argon, sharing its context window, tools, and per-token prices while using more thinking tokens per turn for difficult tasks. The tutorial shows how to call it with the pinned `google-genai` 3.0.0 SDK using `client.interactions.create()` and tune reasoning with `thinking_level` (`low`, `medium`, or `high`). Example runs show thinking can add substantial output-rate billing: 448 thinking tokens versus 69 answer tokens in one call; observed counts vary. Introductory pricing is $2 per million input tokens and $10 per million output tokens through November 30, 2026, then doubles; batch requests cost half. The text recommends Argon for fast, routine coding. It also flags practical pitfalls: thinking and answer share the `max_output_tokens` cap, unsupported settings can error or be ignored, and hard prompts may take minutes. Check `.status` and `.usage.total_thought_tokens`; an incomplete call can return empty text without an error.

### Source excerpt

Gemini 4 Carbon is Google's new reasoning model. Learn what it is, what it costs, and how to call it from Python with the google-genai SDK.

## TDD With AI Agents: Design the Tests First, Let the Agent Implement

DevFeed: [TDD With AI Agents: Design the Tests First, Let the Agent Implement](<https://devfeed.tech/articles/tdd-with-ai-agents-design-the-tests-first-let-the-agent-implement-123850.md>)

Original publisher: [Read original article](<https://realpython.com/tdd-ai-agents/>)

Author: Yuka Tamura

Published: 2026-11-09T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [human in the loop agent](<https://devfeed.tech/topics/human-in-the-loop-agent.md>), [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [project layout](<https://devfeed.tech/topics/project-layout.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [google-antigravity](<https://devfeed.tech/topics/google-antigravity.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [python](<https://devfeed.tech/tags/python.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [test-driven-development](<https://devfeed.tech/tags/test-driven-development.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The tutorial's core method is to keep behavioral decisions with the developer: write a contract and initial test, let an agent draft additional tests, review and harden those tests, then let it implement against them while protecting the test directory. In its Python version-comparator example, the developer specifies release, pre-release, development, and post-release ordering, plus invalid-input behavior; the article highlights gaps that vague contracts and plausible-looking tests can leave. It recommends reviewing both generated tests and implementation diffs, adding tests for accepted design choices, and checking that the agent's file-write restrictions are active. The demo uses Claude Code, but says the workflow can also be followed with GitHub Copilot CLI, Antigravity CLI, or OpenCode. The example targets Python 3.11+ and pytest, and implements only a subset of Python's versioning rules.

### Source excerpt

Learn how to use test-driven development (TDD) with AI agents in Python. Design the tests first, then let a coding agent write code that passes them.

## Memory Management in Python

DevFeed: [Memory Management in Python](<https://devfeed.tech/articles/memory-management-in-python-122569.md>)

Original publisher: [Read original article](<https://realpython.com/python-memory-management/>)

Author: Alexander VanTol

Published: 2026-11-08T14:00:00Z

Content type: article

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [memory handling](<https://devfeed.tech/topics/memory-handling.md>), [memory pool](<https://devfeed.tech/topics/memory-pool.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [cpython](<https://devfeed.tech/tags/cpython.md>), [data-structures-and-algorithms](<https://devfeed.tech/tags/data-structures-and-algorithms.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-management](<https://devfeed.tech/tags/memory-management.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

The excerpt explains how CPython manages object memory in its default build, using reference counts to trigger object deallocation when a count reaches zero. Its small-block allocator organizes memory into arenas, pools, and blocks: pools group blocks by size class, track available space, and can be used, full, or empty. Freed blocks are reused within the Python process; arenas are the units that can be returned to the operating system. The allocator favors fuller arenas so that other arenas can become empty and potentially be released. The description is version-sensitive (Python 3.14) and focuses on the default GIL-enabled CPython build; it notes that the optional free-threaded build uses a different allocator.

### Source excerpt

Take a deep dive into Python memory management and learn how CPython allocates and frees memory for your objects with arenas, pools, and blocks.

## Using Python's pip to Manage Your Projects' Dependencies

DevFeed: [Using Python's pip to Manage Your Projects' Dependencies](<https://devfeed.tech/articles/using-python-s-pip-to-manage-your-projects-dependencies-122570.md>)

Original publisher: [Read original article](<https://realpython.com/what-is-pip/>)

Author: Philipp Acsany

Published: 2026-11-08T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [pip](<https://devfeed.tech/topics/pip.md>), [PyPI](<https://devfeed.tech/topics/pypi.md>), [Python](<https://devfeed.tech/topics/python.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [dependencies](<https://devfeed.tech/tags/dependencies.md>), [install](<https://devfeed.tech/tags/install.md>), [library](<https://devfeed.tech/tags/library.md>), [manage](<https://devfeed.tech/tags/manage.md>), [manager](<https://devfeed.tech/tags/manager.md>), [packages](<https://devfeed.tech/tags/packages.md>), [pip](<https://devfeed.tech/tags/pip.md>), [projects](<https://devfeed.tech/tags/projects.md>), [python](<https://devfeed.tech/tags/python.md>), [standard-library](<https://devfeed.tech/tags/standard-library.md>)

### AI overview

pip installs Python packages from PyPI or a configured index, resolves their dependencies, and can also install packages from Git repositories. Use `python -m pip` to run pip through a specific Python interpreter, and use `venv` to isolate a project's packages and Python version. `pip freeze` can record installed versions in a requirements file, while `pip install -r` recreates an environment; flexible version bounds allow updates, but exact pins help reproduce a release. Separate development requirements can include production requirements. Before uninstalling packages, check their dependencies to avoid breaking other software. If pip is missing, try `ensurepip` (which installs its bundled version without internet access) or `get-pip.py` (which installs the latest version); path or interpreter mismatches can also explain command errors.

### Source excerpt

What is pip? Learn how to use pip, Python's standard package manager, to install and manage packages that aren't part of the standard library.

## Managing Multiple Python Versions With pyenv

DevFeed: [Managing Multiple Python Versions With pyenv](<https://devfeed.tech/articles/managing-multiple-python-versions-with-pyenv-122119.md>)

Original publisher: [Read original article](<https://realpython.com/intro-to-pyenv/>)

Author: Leodanis Pozo Ramos

Published: 2026-11-07T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [allows](<https://devfeed.tech/tags/allows.md>), [coding](<https://devfeed.tech/tags/coding.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [commands](<https://devfeed.tech/tags/commands.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [manage](<https://devfeed.tech/tags/manage.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [projects](<https://devfeed.tech/tags/projects.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

`pyenv` installs and switches among Python interpreters independently of the system Python, helping projects use different versions without changing the OS installation. The tutorial explains shell-specific selection with `pyenv shell`, project selection via a `.python-version` file with `pyenv local`, and a default choice with `pyenv global`; higher-priority settings override lower ones. It distinguishes `pyenv` version management from `venv`, which creates environments for one Python version, and describes using the `pyenv-virtualenv` plugin to create, activate, and remove environments. Unix-like installations may require platform-specific build dependencies because pyenv builds Python from source; Windows uses the separate pyenv-win port.

### Source excerpt

Learn how to use pyenv to manage multiple Python versions, prevent conflicts, and keep your projects compatible and development smooth.

## Absolute vs Relative Imports in Python

DevFeed: [Absolute vs Relative Imports in Python](<https://devfeed.tech/articles/absolute-vs-relative-imports-in-python-122118.md>)

Original publisher: [Read original article](<https://realpython.com/absolute-vs-relative-python-imports/>)

Author: Mbithe Nzomo

Published: 2026-11-07T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [import](<https://devfeed.tech/topics/import.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [absolute](<https://devfeed.tech/tags/absolute.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [compare](<https://devfeed.tech/tags/compare.md>), [cons](<https://devfeed.tech/tags/cons.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

Python first checks `sys.modules`, then built-in modules, then directories in `sys.path` when resolving an import; an unresolved name raises `ModuleNotFoundError`. PEP 8 guidance in the text is to place imports after module comments and docstrings, group standard library, third-party, and local imports with blank lines, and order each group alphabetically. Absolute imports give a full path from the project root, are clearer, remain valid when the importing statement moves, and are preferred by PEP 8, but can become verbose. Explicit relative imports use dots to refer to the current or parent package and can shorten long paths, but are harder to read and can be affected by directory changes. They require Python to know the module's package: run a module with `python -m package.module`; running its file directly can raise `ImportError: attempted relative import with no known parent package`. The text recommends absolute imports unless the path is complex enough to make them too long.

### Source excerpt

Compare Python relative imports with absolute imports, weigh the pros and cons of each, and learn best practices for writing clean import statements.

## Thonny: The Beginner-Friendly Python Editor

DevFeed: [Thonny: The Beginner-Friendly Python Editor](<https://devfeed.tech/articles/thonny-the-beginner-friendly-python-editor-122120.md>)

Original publisher: [Read original article](<https://realpython.com/python-thonny/>)

Author: Krishelle Hardson-Hurley

Published: 2026-11-07T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [pip](<https://devfeed.tech/topics/pip.md>), [import](<https://devfeed.tech/topics/import.md>), [PyPI](<https://devfeed.tech/topics/pypi.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [beginner](<https://devfeed.tech/tags/beginner.md>), [beginners](<https://devfeed.tech/tags/beginners.md>), [bug](<https://devfeed.tech/tags/bug.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [calculator](<https://devfeed.tech/tags/calculator.md>), [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [editor](<https://devfeed.tech/tags/editor.md>), [free](<https://devfeed.tech/tags/free.md>), [friendly](<https://devfeed.tech/tags/friendly.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [ide](<https://devfeed.tech/tags/ide.md>), [learn](<https://devfeed.tech/tags/learn.md>), [python](<https://devfeed.tech/tags/python.md>), [run](<https://devfeed.tech/tags/run.md>), [write](<https://devfeed.tech/tags/write.md>)

### AI overview

Thonny is a free Python IDE designed for beginners, with an editor and Shell for writing and running code, plus tools that make execution easier to inspect. Its debugger steps through lines or expression components, showing evaluated values; the tutorial uses it to trace a faulty calculator expression and identify a string formatting bug. Other described features include variable inspection, syntax error highlighting, Assistant hints for errors, package management, variable name highlighting, and API code completion. The tutorial assumes Python 3 is installed and covers installing Thonny, saving and running programs, debugging them, and opening an existing project.

### Source excerpt

Learn how to use Thonny, the free Python IDE built for beginners, to write, run, and debug your code with its step-by-step debugger.

## Regular Expressions: Regexes in Python (Part 1)

DevFeed: [Regular Expressions: Regexes in Python (Part 1)](<https://devfeed.tech/articles/regular-expressions-regexes-in-python-part-1-121713.md>)

Original publisher: [Read original article](<https://realpython.com/regex-python/>)

Author: John Sturtz

Published: 2026-11-06T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Regular expression](<https://devfeed.tech/topics/regular-expression.md>), [Python](<https://devfeed.tech/topics/python.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [groups](<https://devfeed.tech/tags/groups.md>), [matching](<https://devfeed.tech/tags/matching.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [python](<https://devfeed.tech/tags/python.md>), [re](<https://devfeed.tech/tags/re.md>), [regex](<https://devfeed.tech/tags/regex.md>), [regular-expressions](<https://devfeed.tech/tags/regular-expressions.md>), [search](<https://devfeed.tech/tags/search.md>), [strings](<https://devfeed.tech/tags/strings.md>)

### AI overview

Python's `re.search()` scans left to right for the first match, returning a match object or `None`; the object exposes the matched text, its span, and captured groups. The excerpt shows how character classes and shorthand classes, wildcards, anchors, quantifiers, grouping, backreferences, alternatives, and lookarounds build patterns beyond literal substring searches. Greedy quantifiers seek longer matches, while lazy forms seek shorter ones; lookarounds test adjacent text without consuming it, and lookbehind requires a fixed-length pattern. Use raw string literals for regexes containing backslashes to avoid Python string escaping conflicts. The excerpt begins discussing optional flags but ends before explaining them.

### Source excerpt

Learn regex matching in Python with re.search(), and use metacharacters, groups, lookarounds, and flags to find complex patterns in strings.

## A Fake Claude Code Extension Tried to Open a Backdoor to Your PC

DevFeed: [A Fake Claude Code Extension Tried to Open a Backdoor to Your PC](<https://devfeed.tech/articles/a-fake-claude-code-extension-tried-to-open-a-backdoor-to-your-pc-121380.md>)

Original publisher: [Read original article](<https://realpython.com/ai-news-weekly-2026-11-06/>)

Author: Philipp Acsany

Published: 2026-11-06T14:00:00Z

Content type: news

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [litellm attack](<https://devfeed.tech/topics/litellm-attack.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [Open Source Models & Datasets](<https://devfeed.tech/topics/open-source-models-datasets.md>), [smolagents](<https://devfeed.tech/topics/smolagents.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [backdoor](<https://devfeed.tech/tags/backdoor.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [extension](<https://devfeed.tech/tags/extension.md>), [fake](<https://devfeed.tech/tags/fake.md>)

### AI overview

Two tampered Claude Code extension versions, 2.1.312 and 2.1.313, were available through Cursor for about 11 hours on October 29 and targeted Windows and Mac computers. The extensions attempted to add an attacker-controlled SSH key named `svc-telemetry`, configure it to start at reboot, and report system details. Cursor says enabling SSH requires administrator rights, so the step fails on most machines; it removed the versions and had the attacker's server shut down. Researchers at OpenSourceMalware reported that copies on npm, Open VSX, and Microsoft's store were clean. Cursor users should check their installed version and SSH approved keys; uninstalling may not remove the changes, so Cursor provides cleanup scripts.

### Source excerpt

Real Python's weekly AI news for October 31-November 6, 2026, explained in plain language: A Rigged AI Add-On, an AI Bug Hunter, and Siri Opens Up.

## Regular Expressions: Regexes in Python (Part 2)

DevFeed: [Regular Expressions: Regexes in Python (Part 2)](<https://devfeed.tech/articles/regular-expressions-regexes-in-python-part-2-121712.md>)

Original publisher: [Read original article](<https://realpython.com/regex-python-part-2/>)

Author: John Sturtz

Published: 2026-11-06T14:00:00Z

Content type: tutorial

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [Regular expression](<https://devfeed.tech/topics/regular-expression.md>), [Python](<https://devfeed.tech/topics/python.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [compile](<https://devfeed.tech/tags/compile.md>), [functions](<https://devfeed.tech/tags/functions.md>), [python](<https://devfeed.tech/tags/python.md>), [re](<https://devfeed.tech/tags/re.md>), [regex](<https://devfeed.tech/tags/regex.md>), [regular-expressions](<https://devfeed.tech/tags/regular-expressions.md>), [search](<https://devfeed.tech/tags/search.md>), [utility](<https://devfeed.tech/tags/utility.md>)

### AI overview

Python's `re` module provides distinct tools for searching, replacing, splitting, and inspecting regex matches. `re.search()` finds a match anywhere, `re.match()` only at the string's beginning, and `re.fullmatch()` requires the entire string to match. `re.findall()` returns matched text (or captured groups), while `re.finditer()` yields match objects with positions and other details. `re.sub()` supports string or function replacements, backreferences, and a replacement limit; `re.subn()` also reports the number of substitutions. `re.split()` can retain delimiters when the pattern uses capturing groups, and `re.escape()` makes special characters literal. Compiling a pattern supports reuse and clearer organization, but the article says Python caches patterns, so the performance benefit is minimal. Match objects expose captured groups, spans, the source string, and regex metadata; unmatched optional groups return `None`.

### Source excerpt

Explore more regex tools in Python, including the re module's search, substitution, and utility functions, compiled regexes, and match objects.

[Next page](<https://devfeed.tech/sources/real-python.md?cursor=WyIyMDI2LTExLTA2VDE0OjAwOjAwKzAwOjAwIiwgIjgyM2QzNTgzLTUxY2ItNDNkMi1iYzcwLWFkNjg2NGVmZGNlMiJd>)