cpython
cpython copied to clipboard
GH-118943: Fix a race condition when generating `jit_stencils.h`
Write to a temporary file first, then rename it to the intended jit_stencils.h
file. This keeps other build steps from assuming that the file has been successfully generated when it's still in the process of being written.
CC: @savannahostrowski
- Issue: gh-118943