Would you prefer using del or reassigning to None (garbage collecting)

There is no difference for garbage collection — in both cases a reference to object pointed to by self.fps_display will be released. Which one you should use depends on whether you want the name to still exist (albeit now pointing to a different object, None), or not.

Leave a Comment