better-exceptions ã¤ã³ã¹ãã¼ã« 使ãæ¹ better-exceptions github.com better-exceptionsã使ç¨ããã¨ä¾å¤æ å ±ãå³ã®ããã«ã¿ããããªãã ã¤ã³ã¹ãã¼ã« pipã§ã¤ã³ã¹ãã¼ã«ã§ããã®ã§ä¸è¨ã³ãã³ããå®è¡ã $ pip install better_exceptions 使ãæ¹ ä»¥ä¸ã®ããã«better_exceptionsãã¤ã³ãã¼ãããã°ããã import better_exceptions 試ãã«ä¸è¨ã³ã¼ããå®è¡ããå ´åã®åºåãæ¯ã¹ã¦ã¿ãã import better_exceptions foo = 52 def shallow(a, b): deep(a + b) def deep(val): global foo assert val > 10 and foo == 60 bar = foo - 50 shallow(b
{{#tags}}- {{label}}
{{/tags}}