Hacker News new | ask | show | jobs
by LinuxBender 1664 days ago
then deletes it

Is that built into python or does the developer call that cleanup? I ask because I recently switched from youtube-dl to yt-dlp on a windows machine and it left multiple temporary directories full of .py files to be cleaned up by other tools. I did cntrl+c out of it at least once. Perhaps I interrupted the cleanup routine? Is the cleanup routine expected to trap kill signals or is that on the developer?

1 comments

The cleanup code is part of the stub/bootloader, so depending on how the process dies it doesn't run.