Christopher Spears wrote:
> I just completed an assignment out of Learning Python
> in which I used the Cmd class from the cmd module to
> create a little shell:
> My main question concerns the naming of functions such
> as:
>
> def do_ls(self, line):
> if line == '': dirs = [os.curdir]
>
>I just completed an assignment out of Learning Python
> in which I used the Cmd class from the cmd module to
> create a little shell:
> Originally, I called the function 'ls', but when I did
> that, the function didn't work when I typed 'ls' at
> the prompt. When I looked in the back of the boo