Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What normally happens when one child in an active asyncio.TaskGroup raises ValueError?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-5/checkpoint-5-taskgroup-failure/).
Context (verbatim from the page):
"""
What normally happens when one child in an active asyncio.TaskGroup raises ValueError?
Unfinished siblings are cancelled and awaited, then the group raises an exception group
The failure is discarded and every sibling continues silently
Only the failed task stops; leaving the context never reports it
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Python. Where you are unsure, say so.