OCC.GarbageCollector module

class OCC.GarbageCollector.GarbageCollector

Bases: object

Garbage collector for OCC objects

collect_object(obj_deleted)

This method is called whenever a pythonOCC instance is deleted.

pop_context()
prevent_object(obj)

Prevent an object from being deleted. This object is temporary stored in a list to increase its refecount.

push_context()

Create a new context. When the push context method is called, objects are collected in this new context. When the context is popped, erase the content of the context.

smart_purge()
OCC.GarbageCollector.set_debug()