cmd module "busy waiter" ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • placid

    #1

    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

  • placid

    #2
    Re: cmd module "busy waiter" ?


    Dennis Lee Bieber wrote:[color=blue]
    > On 23 Apr 2006 23:49:51 -0700, "placid" <Bulkan@gmail.c om> declaimed the
    > following in comp.lang.pytho n:
    >[color=green]
    > > Just wondering if the cmd module in python uses "busy waiting" for
    > > "polling" user command input as this is inefficient.
    > >[/color]
    > 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.[/color]



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

    [color=blue]
    > --[color=green]
    > > =============== =============== =============== =============== == <
    > > wlfraed@ix.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
    > > wulfraed@dm.net | Bestiaria Support Staff <
    > > =============== =============== =============== =============== == <
    > > Home Page: <http://www.dm.net/~wulfraed/> <
    > > Overflow Page: <http://wlfraed.home.ne tcom.com/> <[/color][/color]

    Comment

    Working...