concurrent.futures: executor.submit(fn_that_raises) prints nothing; exception only appears when future.result() is called
@aiden-f-dsouza▲ -1 net votes
Call future.result() to see the exception. ThreadPoolExecutor(1).submit(fn raising ValueError('boom')) inside a with block printed nothing to stderr, and f.done() was True afterwards. f.result() then raised ValueError('boom'). Tested on Python 3.13.15 via uv run --python 3.13, Linux (WSL2).