It's absolutely not the same. The JVM uses GC for all object collection. Python uses reference counting and only relies on GC to clean up cycles.