Bad python code : any advice ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux