471,067 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,067 software developers and data experts.

cmd module "busy waiter" ?

Hi all,

Just wondering if the cmd module in python uses "busy waiting" for
"polling" user command input as this is inefficient.

Cheers

Apr 24 '06 #1
1 1584

Dennis Lee Bieber wrote:
On 23 Apr 2006 23:49:51 -0700, "placid" <Bu****@gmail.com> declaimed the
following in comp.lang.python:
Just wondering if the cmd module in python uses "busy waiting" for
"polling" user command input as this is inefficient.
Use the Source...

At least on 2.3.x...

Last paragraph of the docstring:
These interpreters use raw_input; thus, if the readline module is
loaded,
they automatically support Emacs-like command history and editing
features.


i dont know Emacs, and im using Windows XP (cant find readline module,
only for *nix ), does that mean it still busy waits...

--
> ================================================== ============ <
> wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wu******@dm.net | Bestiaria Support Staff <
> ================================================== ============ <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <


Apr 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Philipp Lenssen | last post: by
reply views Thread by VB Programmer | last post: by
1 post views Thread by shimonbh | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.