INNER CODE UNIT · Python

_uninstallcmd

probcomp/bayeslite · shell/src/core.py:89

    def _uninstallcmd(self, name):
        if name in self._core_commands:
            raise ValueError('Cannot uninstall core command: %s' % (name,))
        delattr(self, 'do_.%s' % (name,))
        self._cmds.remove(name)

    def cmdloop(self, *args, **kwargs):
        version = bayeslite.__version__
        self.stdout.write('Welcome to the Bayeslite %s shell.\n' % (version,))
        self.stdout.write('Type `.help\' for help.\n')
        while True:
            try:
                cmd.Cmd.cmdloop(self, *args, **kwargs)
            except KeyboardInterrupt:
                self.stdout.write('^C\n')
                continue
            else:
                break

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…