* Bad python code : any advice ?
@ 2014-11-16 20:15 Loic Dachary
0 siblings, 0 replies; only message in thread
From: Loic Dachary @ 2014-11-16 20:15 UTC (permalink / raw)
To: Victor Stinner; +Cc: Ceph Development
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-16 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-16 20:15 Bad python code : any advice ? Loic Dachary
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.