MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/z4aic2/defer_in_python/ixquqi7/?context=3
r/Python • u/dankey26 • Nov 25 '22
https://github.com/dankeyy/defer.py
stupid but works lol hope you like it
62 comments sorted by
View all comments
Show parent comment
12
If an exception is thrown then close wouldn't be called in that case. Python already has context managers to deal with that but OP has gone rogue lol
1 u/kezmicdust Nov 25 '22 I see! Thanks.
1
I see! Thanks.
View all comments
Show parent comment
12
u/relvae Nov 25 '22
If an exception is thrown then close wouldn't be called in that case. Python already has context managers to deal with that but OP has gone rogue lol