[Python-ideas] shutil.trash()

Gregory P. Smith greg at krypto.org
Sun Apr 7 00:25:54 CEST 2013


Is it widely used?

I think it sounds useful for someone but is the kind of thing that should
be fine as an extension module on PyPI for most people's needs.  It seems
like the kind of functionality that would go along with a GUI library.
 Other software is unlikely to care about an OSes concept of trash and
simply rm/del/unlink things.

otherwise, yes, shutil is a reasonable place if it were to be added.



On Sat, Apr 6, 2013 at 8:21 AM, Virgil Dupras <hsoft at hardcoded.net> wrote:

> Hi all,
>
> A while ago, I've developed this library, send2trash (
> https://bitbucket.org/hsoft/**send2trash<https://bitbucket.org/hsoft/send2trash>), which can send files to trash on Mac OS X, Windows, and any platform
> that conforms to FreeDesktop.
>
> The current version uses ctypes, but earlier versions were straight C
> modules.
>
> I was wondering if you think this has a place in the stdlib, maybe as
> "shutil.trash()"?
>
> Virgil Dupras
> ______________________________**_________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/**mailman/listinfo/python-ideas<http://mail.python.org/mailman/listinfo/python-ideas>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130406/5fafe97b/attachment.html>


More information about the Python-ideas mailing list