A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-May/099893.html below:

[Python-Dev] Alias for distutils.file_util.write_file in e.g. shutils

[Python-Dev] Alias for distutils.file_util.write_file in e.g. shutils [Python-Dev] Alias for distutils.file_util.write_file in e.g. shutilsTarek Ziadé ziade.tarek at gmail.com
Sun May 2 20:36:55 CEST 2010
On Sun, May 2, 2010 at 8:15 PM, Olemis Lang <olemis at gmail.com> wrote:
> Hello !
>
> Often I have the contents to be written in a file at a given path that
> I know as well. I recently tried to find a function in stdlib to do
> that and to my surprise this is what I found :
>
>  - Such function exists
>  - It's `distutils.file_util.write_file`
>
> IMO the last place where people'd look for such a function is inside
> `distutils` package. Besides I reviewed modules listed under `File and
> directory access` category in `Library Reference` and found nothing
> even similar.
>
> Q:
>  - Is it a good idea to provide a similar function in
>    e.g. shutils module ?

A: Yes :)

Basically, anything useful in distutils.file_util and
distutils.dir_util can maove in Shutil.
That's why I added make_archive (and unpack_archive)

Please add an issue, I'll work on adding this function,

Thanks
Tarek

-- 
Tarek Ziadé | http://ziade.org
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4