r/Python • • Nov 25 '22

Intermediate Showcase defer in python!

https://github.com/dankeyy/defer.py

stupid but works lol hope you like it

304 Upvotes

62 comments sorted by

View all comments

Show parent comment

2

u/antiproton Nov 25 '22

It's just a different way to solve similar problems. Similar to putting the close in a try...except...finally