def remove(self, key):
        path = os.path.join(self._path, str(key))
        try:
            f = open(path, 'rb+')
        except IOError, e:
            if e.errno == errno.ENOENT:
                raise KeyError('No message with key: %s' % key)
            else:
                raise
        try:
            if self._locked:
                _lock_file(f)
            try:
                f.close()
                os.remove(os.path.join(self._path, str(key)))
            finally:
                if self._locked:
                    _unlock_file(f)
        finally:
            f.close()
Sample from a PG augmented multinomial distribution
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/MH.remove--crossover with--dataset/ETHPy150Open HIPS/pgmult/pgmult/distributions.py/PGMultinomial.rvs