[Python-Dev] Enhancing the shutil module

Anand Balachandran Pillai abpillai at gmail.com
Tue Jan 19 14:37:18 CET 2010

On Mon, Jan 18, 2010 at 1:21 AM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:

> Hello,
> For 2.7/3.2, I am in the process of removing modules in Distutils that
> can be replaced by calls to existing functions in stdlib. For
> instance, "dir_util" and "file_util" (old modules from the Python 1.x
> era) are going away in favor of calls to shutil (and os), so the
> Distutils package gets lighter.
> Another module I would like to move away from Distutils is
> "archive_util". It contains helpers to build archives, whether they
> are zip or tar files. I propose to move those useful functions into
> shutil, as this seems the most logical place.
> I also propose to maintain this "shutil" module for now on (no one is
> declared as a maintainer in maintainers.rst) since Distutils will
> become a heavy user of its functions.
> Any objections/opinions ?

+1 for this. Just make sure that you change the docstring of shutil
 which now reads as,

" shutil - Utility functions for copying files and directory trees."

 According to this "definition", archives don't fit in there. But the
 functionality does fit right in, so just need to make sure that it
 is reflected in the __doc__ .

> Regards,
> Tarek
> --
> Tarek Ziadé | http://ziade.org
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/abpillai%40gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100119/55892759/attachment-0005.htm>

More information about the Python-Dev mailing list