June 4, 2017
11:17 a.m.
Daniel Bershatsky <bepshatsky@yandex.ru> writes:
... Proposal ======== There is not any mechanism to defer the execution of function in python. In order to mimic defer statement one could use either try/except construction or use context manager in with statement. ...
Related: "Python equivalent of golang's defer statement" https://stackoverflow.com/questions/34625089/python-equivalent-of-golangs-de...