Thanks for sharing -- it is indeed a possible workaround but not an
ultimate solution (collisions might still occur, and you better of
delaying for different amount of time for that purpose, e.g.
import random
...
time.sleep(random.random())
as far as I see reliable solution -- all processCmd should be
queued up/ran by a single thread, so there is a guarantee that none of
them would be invoked "in parallel"
if only someone took the burden/time of suggesting such a patch ;-)
anyone up for the contribution? ;-)
On Mon, 08 Aug 2011, [email protected] wrote:
> def __processCmd(self, cmd, showRet = True):
> beautifier = Beautifier()
> for c in cmd:
> time.sleep(0.2)
> beautifier.setInputCmd(c)
--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]