Eryk Sun added the comment: I wish the name was "pushCleanup" to emphasize that cleanup functions are popped and called in LIFO order. ---------- nosy: +eryksun _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue26027> _______________________________________