INNER CODE UNIT · Python

dot_open

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

    def dot_open(self, line):
        '''close existing database and open new one
        <pathname>|-m

        Open the given filename, or a fresh memory-only database with -m.

        WARNING: Discards all existing state.
        '''
        # Need a completely new bdb object. Hope no one aliased it.
        if line == '-m':
            line = None
        self._bdb = bayeslite.bayesdb_open(pathname=line,
            builtin_backends=False)

    def dot_pythexec(self, line):
        '''execute a Python statement
        <statement>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…