New submission from John Wiseman:
The documentation for the multiprocessing.dummy module says that it "replicates
the API of multiprocessing." In Python 2.7, I can import multiprocessing.dummy
and use the cpu_count function:
$ python2
Python 2.7.12 (default, Oct 29 2016, 19:21:06)
New submission from John Wiseman jjwise...@gmail.com:
In python 2.5.2, I believe pipes.quote gives the wrong result for zero-
length arguments.
from pipes import quote
args = ['arg1', '', 'arg3']
print 'mycommand %s' % (' '.join(quote(arg) for arg in args))
mycommand arg1 arg3
I think