3 ms·
can these language improvements be implemented at linter level? so that people can opt-in or opt-out selectively, per their own discretion, for these kinds of
by slt2021 2y ago
can these language improvements be implemented at linter level?
so that people can opt-in or opt-out selectively, per their own discretion, for these kinds of rules
I dont see the point of this being part of the language since it break compat and brings zero benefits at runtime
- 0cf8612b2e1e 2y agoIn the PEP, some of the comments noted this was basically a linting issue. No reason to break the language over it.
- willcipriano 2y agoFlake8 already provides this for anyone concerned about it. https://www.flake8rules.com/rules/E722.html https://www.flake8rules.com/rules/E722.html
- strunz 2y agoSo does pylint which has been there forever https://pylint.pycqa.org/en/latest/user_guide/messages/warning/bare-except.html https://pylint.pycqa.org/en/latest/user_guide/messages/warni...
- akkad33 2y agoLinters already flag this as error