gensim.utils.check_output()

gensim.utils.check_output(*popenargs, **kwargs)[source]

Run command with arguments and return its output as a byte string. Backported from Python 2.7 as it’s implemented as pure python on stdlib. >>> check_output([‘/usr/bin/python’, ‘–version’]) Python 2.6.2 Added extra KeyboardInterrupt handling