Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    gx is only the cyclic garbage collector, it won't have an effect here. When a reference count reaches 0 it is freed immediately in CPython, but that is not a language guarantee. For example, this is not the case in the Jython implementation, which uses Javas garbage collector Commented Dec 28, 2018 at 23:37
  • @juanpa.arrivillaga thanks for giving clarifications for some implementations. Commented Jan 2, 2019 at 14:16