Pulp Garbage Collection

How does Pulp’s garbage collection/memory management work? The documentation says that every variable is globally scoped, so how does Pulp know what variables are still in use? Will setting a variable to 0 or “” trigger garbage collection?