Hi Victor,

This week-end I wrote what I suspect to be bad python code

https://github.com/dachary/teuthology/compare/wip-container#diff-24f45fc6782fb342bf422033c01e1b06R37

and I would very much like your opinion. What I really want is a FIFO of shell 
commands. When the caller submits a new command, it returns immediately if 
wait=False or waits for it to complete if wait=True. In case wait=False, the 
caller can call command.wait() later on to pause until the command is complete. 
It's a very simple pattern and I feel my implementation is contorted.

What do you think ?

Cheers

-- 
Loïc Dachary, Artisan Logiciel Libre

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to