Artificial Intelligence1 min read

GPT-6.2 Astra Draws a Python Reading a Book

By · Published by Everything Blog

In short

Real Python tested GPT-6.2 Astra using five informal tasks executed via OpenRouter without system prompts. The model demonstrated strong technical proficiency, producing an error-free 97-line turtle script consisting of 1,552 drawing commands and citing Python 3.14 as the newest release. Additionally, the model exhibited autonomous code cleaning by altering a bare except, a typo, and range(len) loops during a 50-line script revision. It also avoided a hallucination trap by identifying that itertools.flatten() does not exist and offering an alternative.

Key points

  • GPT-6.2 Astra reliably identifies non-existent standard library functions like itertools.…: GPT-6.2 Astra reliably identifies non-existent standard library functions like itertools.flatten() and supplies working alternatives.
  • The model autonomously applies clean code edits to existing scripts by targeting typos an…: The model autonomously applies clean code edits to existing scripts by targeting typos and bad loop patterns.
  • Developers can run practical Python evaluation benchmarks rapidly and at minimal expense…: Developers can run practical Python evaluation benchmarks rapidly and at minimal expense using OpenRouter default settings.

Sources checked by our analysis pipeline: 1

We asked GPT-6.2 Astra to draw a python reading a book using the turtle

module. It’s one of five tasks in Real Python’s informal model comparison, which explores how models handle everyday Python work. Here’s the drawing from this run:

We use the same prompts and no system prompt for each model. The results come from the returned code and replies. These informal tests explore a few habits that can affect your everyday Python work:

Task | What we ask | What we read off the answer |

---|---|---|

The snake | Write a Python turtle program that draws a python reading a book. | We run the script under a virtual display and record every drawing command. The picture is whatever came out, arrow and all. |

How modern its Python is | Write a small command-line tool. | Which features it uses, such as list[str] , tomllib , and Path.walk() . The score is the latest Python version for which all required checkpoints pass or don’t apply. |

Modern idioms | The same CLI tool as above. |…

Artificial Intelligence