'Print info about all registrations to stdout.'

def _dump(self):

    self.initialize()
    handles = []
    self._lock.acquire()
    try:
        if (not hasattr(self._module, '__dict__')):
            print ('Module    %s.py    does    not    exist.' % self._modname)
        elif (not self._registrations):
            print ('No    registrations    for    %s.py.' % self._modname)
        else:
            print ('Registrations    in    %s.py:' % self._modname)
            print ('-' * 40)
            handles = self._registrations.items()
    finally:
        self._lock.release()
    for (_, handle) in sorted(handles):
        handle._dump()
