Is it possible to have an actual memory leak in Python because of your code?

后端 未结 6 918
时光取名叫无心
时光取名叫无心 2020-12-12 13:58

I don\'t have a code example, but I\'m curious whether it\'s possible to write Python code that results in essentially a memory leak.

6条回答
  •  囚心锁ツ
    2020-12-12 14:15

    Of course you can. The typical example of a memory leak is if you build a cache that you never flush manually and that has no automatic eviction policy.

提交回复
热议问题