Python is nice and all, but its low-level functions have real disruptive discrepancies between platforms.
Case at point:
import os os.execvp("sh", ["sh", "-c", "exit 1"])
As a UNIXy person, I’d expect running the above script to return an error code of 1. And I would be perfectly right… on UNIX systems.
On Windows, it returns 0.
You’d think such a difference in behavior would be documented? It’s not.
Thank you python.