2 ms·
The CSV library is part of the standard library, though. Its way of doing things has been blessed by the Python maintainers. OK, it might still be correct to s
by dmurray 6y ago
The CSV library is part of the standard library, though. Its way of doing things has been blessed by the Python maintainers.
OK, it might still be correct to say the problem is with the CSV library. But if the context manager "best practices" lead to popular parts of the standard library being bad and unidiomatic, that's at best unpythonic. After all, "There should be one -- and preferably only one -- obvious way to do it".
- arugulum 6y agoBy the Python standard library already does contain things that don't follow best practice. See: logging doesn't abide by PEP 8.