Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "On a standard GIL-enabled CPython build, which default choice best matches the workload?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-5/checkpoint-5-workload-choice/).
Context (verbatim from the page):
"""
On a standard GIL-enabled CPython build, which default choice best matches the workload?
Threads for overlapping blocking I/O; processes for parallel pure-Python CPU work
Threads for parallel pure-Python CPU work; processes only for sleeping
Always asyncio, because it automatically moves CPU work to other cores
"""
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.