ããæ³å®ä»¥ä¸ã®ã¡ã¢ãªã Python ããã°ã©ã ãæ¶è²»ãã¦ããã®ã§ããã°ãã«ã¼ãã®ä¸ã§å¾ªç°åç §ãçã¾ãã¦ãããã¨ããååä¸è½ãªãã¸ã§ã¯ã(循ç°åç §ãªããã« __del__ ã¡ã½ãããåå¨ããããã«gcãã©ããã循ç°ãåã£ã¦ããã®ãå¤ããªããªãã¸ã§ã¯ã)ãåå¨ããªãããçãã
import gc gc.set_debug(gc.DEBUG_LEAK) gc.disable() # åé¡ã®å¦ç gc.collect() # ååããã循ç°åç §ãååä¸è½ãªãã¸ã§ã¯ãã表示ããã