Why is the shutil module called shutil?
flt.johnson at gmail.com
Sat Sep 24 06:58:58 CEST 2011
On Sep 23, 11:58 pm, Chris Rebert <c... at rebertia.com> wrote:
> On Fri, Sep 23, 2011 at 8:36 PM, Fletcher Johnson <flt.john... at gmail.com> wrote:
> > The topic says it all:
> > Why is shutil named shutil? What does it stand for? This is just a
> > mild curiosity of mine.
> "sh" is short for "shell", in line with Unix convention, where the
> default shell is located at /bin/sh.http://en.wikipedia.org/wiki/Shell_(computing)http://en.wikipedia.org/wiki/Unix_shell
> "util" is short for "utilities".
> shutil is a utility module used to accomplish tasks which one often
> does when in the shell, such as copying, moving, or removing directory
> trees. But shutil (to my knowledge) is not implemented using shell
> commands or by running external programs, so it thus avoids a whole
> host of shell-related issues.
> It's not the best name, but what with backwards compatibility and all,
> it's unlikely to change any time soon.
I had a hunch it might have been that.
More information about the Python-list