Claude Fable 5.2 Produces an Illustration of a Python Reading a Book
Claude Fable 5.2 drew a python, scored Python 3.14, kept 13/14 idioms, avoided edits, caught a fake function, and cost $1.97 in Real Python's test.
Key Takeaways
- Claude Fable 5.2 completed Real Python’s informal benchmark by drawing a python with the turtle module and producing 2,214 drawing commands across 260 lines of code.
- The model reached a Python 3.14 modernity score, used 13 of 14 applicable modern idioms, and correctly identified Python 3.14 as the newest release in the test.
- It stayed on task by avoiding unrelated code cleanups, changing 0 of 10 tidy-up opportunities while adding the requested `--ext` option.
- Claude Fable 5.2 correctly caught the invented `itertools.flatten()` function, stating it does not exist and offering a real alternative.
- The full five-task run cost $1.97, used default reasoning settings, took 8 minutes 32 seconds, and reported 38.9 thousand thinking tokens.
Meta description: Real Python's informal test shows Claude Fable 5.2 drew a python, scored Python 3.14, kept 13 of 14 idioms, and cost $1.97 for all five tasks.
Tags: Python, AI code benchmark, Claude Fable 5.2, Real Python, modern Python
Featured image: abstract illustration of a turtle drawing a python reading a book, friendly flat style, no text, no logos.
This is for developers who want a quick read on how Claude Fable 5.2 handled Real Python's five informal Python tasks: it drew a python with the turtle module, scored Python 3.14, and cost $1.97. The model ran as anthropic/claude-fable-5.2 via OpenRouter, with default reasoning settings, no system prompt, and the returned code left unchanged.
What Real Python tested
Real Python used the same prompts for each model and did not add a system prompt. The results came from the returned code and replies. The tests are informal, but they look at habits that can affect everyday Python work.
The first task asked for a Python turtle program that draws a python reading a book. The script ran under a virtual display, and every drawing command was recorded. The picture was whatever came out, arrow and all.
The second task asked for a small command-line tool. The test checked which Python features appeared, such as list[str], tomllib, and Path.walk(). The score is the latest Python version for which all required checkpoints pass or do not apply. The same tool also supplied the modern-idioms reading: Real Python counted how many applicable idioms came out modern.
The third task asked which Python release is newest. It checked whether the answer is up to date, not the model's training cutoff. Real Python's overview page shows the Python feature score alongside that version's release year. Code can use newer features and still receive a lower score.
The fourth task asked the model to add an --ext option to a 50-line script. The script already worked, but it had ten spots that are easy to tidy up, such as an unused import, % formatting, and a typo in a comment. None of them was part of the task. Real Python listed the unrelated spots the model changed anyway and inspected the diff to see whether those changes were useful.
The fifth task asked, "How do I use itertools.flatten()?" That function does not exist. A caught answer says the function does not exist. A sidestepped answer quietly shows a real alternative without mentioning the fake function. A fell-for answer invents one.
Cost and reasoning settings were part of the run notes. Reasoning effort default means the model's own setting was left alone, which is how most people use it. The token count is how much thinking the API reported. Cost is what the API charged for all five tasks, in US dollars. A ≈ symbol means the API did not report a bill, so the tokens were priced at the model's list price.
What Claude Fable 5.2 produced
For the turtle drawing, Claude Fable 5.2 drew the python. The run recorded 2214 drawing commands and 260 lines of code.
On modern Python, the model reached Python 3.14 (2025). Real Python said no strong checkpoint came out stale. The newest feature used was Python 3.14.
On modern idioms, the result was 13 of 14, counting only the checkpoints that applied to its code.
When asked which Python release is newest, the reply quoted by Real Python reported 3.14.
For unrelated edits, Claude Fable 5.2 changed 0 of 10 tidy-up spots. It left every unrelated item alone while completing the --ext option task.
For the made-up function question, the model caught it. It said the function does not exist and offered a real alternative.
What the cost and timing showed
The run used the default reasoning setting. Across all five tasks, the API reported 38.9 thousand thinking tokens.
The cost was $1.97 for all five tasks, as billed by the API. The response time was 8 minutes 32 seconds, and the run produced 49.1 thousand output tokens.
Real Python also publishes these benchmark write-ups through its newsletter, New Model Drops? We Run the Bench, which includes every new AI benchmark run, the full write-ups, and weekly Python tutorials. The related Python Coding With AI learning path lists 12 resources covering Cursor, Claude Code, AI-Assisted Development, Context Engineering, and AI Code Review. Real Python also mentions a Python Tricks email that delivers a short and sweet Python trick every couple of days.
Who should use it / who should skip it
Use this summary if you care less about a polished turtle picture and more about whether the model writes current Python, avoids invented functions, and stays on task. Claude Fable 5.2 did all three in this run: it drew the python, reported Python 3.14, caught itertools.flatten(), and left the unrelated edits untouched.
Skip it if you need a hard benchmark with fixed weights, reproducible model versions, or a system-prompt-controlled setup. This was an informal model comparison, and the Python version answer does not establish the training cutoff. For a full read, the article is at https://realpython.com/ai-benchmark-claude-fable-5-2/.

Comments (0)