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


Groups > comp.lang.python > #90609

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

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'scripts': 0.03; '(at': 0.04; 'subject:Python': 0.06; 'context': 0.07; 'subject: -- ': 0.07; 'assuming': 0.09; 'feature,': 0.09; "system's": 0.09; 'undefined': 0.09; 'api': 0.11; 'cc:addr:python-list': 0.11; 'gui': 0.12; '"move': 0.16; 'deletion': 0.16; 'dumps': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'low.': 0.16; 'subject:Move': 0.16; 'tool.': 0.16; 'varies': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'file,': 0.19; "hasn't": 0.19; 'written': 0.21; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'changes,': 0.26; 'define': 0.26; 'header:In-Reply- To:1': 0.27; 'function': 0.29; 'specifically': 0.29; 'am,': 0.29; 'generally': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'usually': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'way?': 0.31; 'file': 0.32; 'fri,': 0.33; "i'd": 0.34; 'something': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'disk': 0.36; 'much.': 0.36; 'subject:?': 0.36; 'server': 0.38; 'manager': 0.38; 'files': 0.38; 'little': 0.38; 'bad': 0.39; 'though,': 0.39; 'delete': 0.39; 'either': 0.39; 'space': 0.40; 'how': 0.40; 'even': 0.60; 'future': 0.60; "you're": 0.61; 'times': 0.62; 'show': 0.63; 'costs': 0.63; 'such': 0.63; 'more': 0.64; 'talking': 0.65; 'useful.': 0.68; 'felt': 0.74; '2015': 0.84; 'survey,': 0.84; 'edwards': 0.91; 'subject:Survey': 0.91; 'to:none': 0.92
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:cc :content-type; bh=coxQ8oJcTHws9yVYSMETpj8L4u1KZ8T228XvshSKEek=; b=nT4K9nCjRt9mPC3+T9pufKPDSqvwjK9PWRqD56zs5itXBBufLmYJwvblkw4/17+B9Q MhYPe7Mt62wEV6ANszC6d4b5h58SVeIxk1cGM6GUYn/69qZoHaYo8ZG3dzjj+M0GEGba ukw6Uus7AplaFZNQDwLLQj5wZ2DefLReCc1++qgKq6KGIePML1lUsvN+FAtu4X9T+x3s Dd92G9f7sWafmlvovTU7B689fX1G18fBtyh+CQ51lKlVzpwFAcLHMuLxzLwbmc9YelX+ ukIyOZLUJRS4/rI57G5gQUAdw42HDAiECGYA1lhxP1fsM/MoDQWph1UE+9LwjYGZlByr UEwQ==
MIME-Version 1.0
X-Received by 10.50.176.137 with SMTP id ci9mr6822906igc.2.1431619140834; Thu, 14 May 2015 08:59:00 -0700 (PDT)
In-Reply-To <mj2g70$eij$1@reader1.panix.com>
References <5554c318$0$12999$c3e8da3$5496439d@news.astraweb.com> <mj2g70$eij$1@reader1.panix.com>
Date Fri, 15 May 2015 01:59:00 +1000
Subject Re: Survey -- Move To Trash function in Python?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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.3.1431619149.17265.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1431619149 news.xs4all.nl 2833 [2001:888:2000:d::a6]:59647
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:90609

Show key headers only | View raw


On Fri, May 15, 2015 at 1:49 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2015-05-14, 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?
>
> How would you even define what "move to trash" means in a standard
> way?
>
> Even withing the limited context of something like a mail client, it's
> meaning varies depending on mail store format or which IMAP server
> you're talking to.
>
> Or are you assuming the only thing that can be "moved to trash" is a
> file?

AIUI this is specifically about files.

I have never used such a feature, and generally found them to be more
annoying than useful. The times when I want to mark a file for
deletion either now or at some undefined time in the future (at the
file system's discretion) are approximately zero; either I want the
file, or I can delete it immediately. Given that actually-removed
files can usually be undeleted if their disk space hasn't been
reclaimed, I don't think trash cans really help much.

Plus, I think it's a UI insanity when a console program dumps
something in the trash, which to me has always felt like a GUI file
manager tool.

That said, though, I think a standardized API for trashing files is
not a bad thing; and it's not something that will need huge API
changes, so the costs of feature-freeze would be low.

ChrisA

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