4 ms·
I would not call this underused. Every Python tutorial I've ever read teaches this as the proper way to handle file IO, and explains what context managers are.
by rudolf0 11y ago
I would not call this underused. Every Python tutorial I've ever read teaches this as the proper way to handle file IO, and explains what context managers are.
- Walkman 11y agoYeah and then you go to a company, where guys doing Python only programming for 3.5, 10, 15 years (really!) and never heard of context managers, or decorators...