Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90625

Re: Survey -- Move To Trash function in Python?

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'scripts': 0.03; 'url:pypi': 0.03; '(at': 0.04; 'subject:Python': 0.06; 'subject: -- ': 0.07; 'spec': 0.09; 'to)': 0.09; 'python': 0.11; 'gui': 0.12; '"move': 0.16; 'dependent.': 0.16; 'desktops': 0.16; 'subject:Move': 0.16; 'url:freedesktop': 0.16; 'url:standards': 0.16; 'wrote:': 0.18; 'library': 0.18; 'thu,': 0.19; 'meant': 0.20; 'written': 0.21; '>>>': 0.22; 'library,': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'file': 0.32; 'probably': 0.32; 'linux': 0.33; 'url:python': 0.33; 'implemented': 0.33; 'standards': 0.33; 'actual': 0.34; 'skip:d 20': 0.34; 'could': 0.34; 'requirement': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'others.': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'even': 0.60; 'dave': 0.60; 'is.': 0.60; 'url:5': 0.61; 'show': 0.63; 'more': 0.64; 'url:0': 0.67; 'gain': 0.79; '2015': 0.84; 'actually,': 0.84; 'survey,': 0.84; 'edwards': 0.91; 'subject:Survey': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lW8+WCnBACoPO6UrWWY4m0d3pw84PQEb1Nmdme8ioe8=; b=VxITespJMQsva/Ker7JakgeTKZ7KhuF0tXqx67h32YQwnPNDh25zmP/fn6GhzKwvb9 I+SPGO84y+sWHhOfioDCnWNZcin0hJm6QsLZH6VuwsXbhTalaFR4VgzayhE06GV6/Yl4 FDFnr4QkTn/RvMtZWRvdU4RnDNHZ1zLJ1ysP3+vDeO/MnoS9uK6Ly6+CoEOJEsW/Ewst rzp7AUiTbIgwqMTbRG+18WJ3rXRSICi2BDvjVhCqtfA5ZQ9BVkbVgOSeDjShljeco6wh YiEWMNzhOvNbMquZktqxFcRLrUf30H6P7oMWoV10OIaGsx9VwKR3hnR2jqhA0y5KGmD6 Fd2A==
MIME-Version 1.0
X-Received by 10.152.27.1 with SMTP id p1mr4144634lag.112.1431628991146; Thu, 14 May 2015 11:43:11 -0700 (PDT)
In-Reply-To <mj2ogc$6j$1@reader1.panix.com>
References <5554c318$0$12999$c3e8da3$5496439d@news.astraweb.com> <lfm9la1dlhd2mnothbbbm7cphlc0mjsjtb@4ax.com> <mj2ogc$6j$1@reader1.panix.com>
Date Thu, 14 May 2015 20:43:11 +0200
Subject Re: Survey -- Move To Trash function in Python?
From Chris Warrick <kwpolska@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13.1431628993.17265.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1431628993 news.xs4all.nl 2926 [2001:888:2000:d::a6]:51874
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:90625

Show key headers only | View raw


On Thu, May 14, 2015 at 8:11 PM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2015-05-14, Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> wrote:
>> Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote:
>>
>>>I'd like to do a little survey, and get a quick show of hands.
>>>
>>>How many people have written GUI or text-based applications or scripts where
>>>a "Move file to trash" function would be useful?
>>>
>>>Would you like to see that in the standard library, even if it meant that
>>>the library had feature-freeze and could gain no more functionality?
>>
>> It's bad enough when things are filesystem-dependent but this is
>> OS-dependent or even desktop-version-dependent in the case of Linux
>> distros, so not easy.
>
> Or even file-manager dependent.  I think some desktops support
> multiple file-manager (at least XFCE always used to) -- and there's
> probably no requirement that they all handle "trash" the same way.

Actually, there is. There are actual STANDARDS in Linux desktops. One
of them is the Trash Specification:
http://standards.freedesktop.org/trash-spec/trashspec-1.0.html

This spec is implemented by Xfce, KDE, GNOME, PCManFM and probably many others.

And if you are looking for a mostly-compliant Python library/app (and
a shameless plug): https://pypi.python.org/pypi/trashman/1.5.0

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Survey -- Move To Trash function in Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-15 01:45 +1000
  Re: Survey -- Move To Trash function in Python? Grant Edwards <invalid@invalid.invalid> - 2015-05-14 15:49 +0000
    Re: Survey -- Move To Trash function in Python? Chris Angelico <rosuav@gmail.com> - 2015-05-15 01:59 +1000
      Re: Survey -- Move To Trash function in Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-15 12:28 +1000
    Re: Survey -- Move To Trash function in Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-15 11:37 +1000
      Re: Survey -- Move To Trash function in Python? Chris Angelico <rosuav@gmail.com> - 2015-05-15 11:53 +1000
      Re: Survey -- Move To Trash function in Python? Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-14 20:49 -0600
      Re: Survey -- Move To Trash function in Python? Chris Angelico <rosuav@gmail.com> - 2015-05-15 12:56 +1000
        Re: Survey -- Move To Trash function in Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-15 14:09 +1000
          Re: Survey -- Move To Trash function in Python? Chris Angelico <rosuav@gmail.com> - 2015-05-15 14:25 +1000
          Re: Survey -- Move To Trash function in Python? random832@fastmail.us - 2015-05-15 14:27 -0400
            Re: Survey -- Move To Trash function in Python? sohcahtoa82@gmail.com - 2015-05-15 17:04 -0700
          Re: Survey -- Move To Trash function in Python? Chris Angelico <rosuav@gmail.com> - 2015-05-16 04:33 +1000
  Re: Survey -- Move To Trash function in Python? Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> - 2015-05-14 18:32 +0100
    Re: Survey -- Move To Trash function in Python? Grant Edwards <invalid@invalid.invalid> - 2015-05-14 18:11 +0000
      Re: Survey -- Move To Trash function in Python? Chris Warrick <kwpolska@gmail.com> - 2015-05-14 20:43 +0200
      Re: Survey -- Move To Trash function in Python? Ethan Furman <ethan@stoneleaf.us> - 2015-05-14 12:32 -0700
    Re: Survey -- Move To Trash function in Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-15 12:03 +1000
      Re: Survey -- Move To Trash function in Python? Terry Reedy <tjreedy@udel.edu> - 2015-05-14 22:27 -0400
  Re: Survey -- Move To Trash function in Python? Ethan Furman <ethan@stoneleaf.us> - 2015-05-14 11:29 -0700
  Re: Survey -- Move To Trash function in Python? iMath <redstone-cold@163.com> - 2015-05-18 03:31 -0700
    Re: Survey -- Move To Trash function in Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-05-18 14:46 +0100

csiph-web