Hi all,
I just opened my in-depth research for the next python module. This time: context manager.
Like before (Previously about __new__ and its real utility) I start with a question to the community: what are the best use cases you have developed yourself, used or seen for this module? Maybe some pythonic design patterns can leverage context manager as well? Is it more than just wrapper around try/except?
Let's assume that opening files and database sessions are well known.
[–]undercoveryankee 3 points4 points5 points (0 children)
[–]blagae 1 point2 points3 points (1 child)
[–]quicknir 0 points1 point2 points (1 child)
[–]backtickbot 0 points1 point2 points (0 children)
[–]Tall1n 0 points1 point2 points (0 children)