\
        Display symbols.
            p               Display names of inspectable objects.
            p <id>          Display the content of an object.

def _do_print(self, cmd, args):
        """\
        Display symbols.
            p               Display names of inspectable objects.
            p <id>          Display the content of an object.
        """
        name = args[0].strip()
        if not name:
            self.stderr.write('TODO: Display names of inspectable objects.\n')
            return
        try:
            code = textwrap.dedent(r'''
                    self.stdout.write(name + ':\n' + textwrap.indent(pprint.pformat({}), '    ') + '\n')
                    ''').format(name).strip()
            eval(code, globals(), locals())
        except NameError:
            self.stderr.write("p: name '{}' is not defined\n".format(name))
        self.stdout.flush()