Urgent.News

What's breaking now, across thousands of outlets.

Tech

whatsnewt: A TUI text adventure through what's new in Python 3.15

You awaken in the Startup Foyer, part of the Python 3.15 interpreter. Your mission is to navigate through 18 puzzles, each representing a real feature of version 3.15. Unlike typical quizzes, you must interact with the interpreter to solve these challenges.

Some puzzles necessitate the use of a type checker, which is verified by pyrefly. For example, the scoreboard might display:

The simplest way to run the game is through PyPI. Ensure you have uv installed, then type './play'. Additional flags can be passed directly to the script. The game supports tab completion, allowing you to enter commands such as 'examine' or 'examine staircase' based on the clues provided.

Throughout the game, clickable links lead to additional information in the Python documentation or relevant PEPs. Ambiguous prefixes are expanded until a clear choice is presented. The game performs optimally in a terminal with dimensions of 112x40 or larger, but it is adaptable to smaller screens.

To solve the puzzles, you'll need Python 3.15. While earlier pre-release versions may work, it's recommended to use betas or release candidates to test the most recent features. The program checks your answers by running them against the specific feature you're exploring, ensuring you understand not just the output, but the process.

Commands are available to assist you, with help displayed through Ctrl+H. You can abort a puzzle with Ctrl+G, re-display the room with Ctrl+L, or open a new puzzle with Ctrl+R. The function keys can also be used as commands. Inside the code editor, Ctrl+R checks your solution, Ctrl+O allows you to save your draft to an external editor, and Ctrl+G exits the window while preserving your work.

Hints can be purchased for a point, and the game saves progress after each change, allowing you to resume from your last session. Souvenirs scattered throughout the game provide additional insights into various Python 3.15 features. The game is developed by Barry Warsaw and Claude, and is released under the Apache License Version 2.0.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at pypi.org →

More in Tech

More from Thursday 24 September →