元々の話題: python 初学者にオススメできる例外についての知見あれば
- そもそも壊れてはいけない用途で python を使ってはいけない. なので適当でも許される. (暴論)
- linter を入れる.
- 特に flake8 とかは B001 とかを警告してくれるので大事.
- (脇道に逸れるが, linter はまずは linter/formatter orchestrator の pysen を入れておけばよい. 初学者なら poetry + pytest + pysen から始めるのがオススメ. 例: https://github.com/kenoss/pyproject-indirect-import-detector)
- Pythonic way を把握しておく.
- document
- https://docs.python.org/ja/3/tutorial/errors.html