Given a class that keeps a registry of its Objects:
class Person(object): __registry = [] def __init__(self, name): self.__registry.append(self
you can do it with:
for item in Person.__registry: print(item)