Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'subject: -- ': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'shutil': 0.09; 'python': 0.11; 'jan': 0.12; 'desktop.': 0.16; 'filesystem': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:Move': 0.16; 'wrote:': 0.18; 'library': 0.18; 'seems': 0.21; 'import': 0.22; 'header:User-Agent:1': 0.23; '(or': 0.24; 'supported': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'code': 0.31; "d'aprano": 0.31; 'os,': 0.31; 'steven': 0.31; 'skip:s 30': 0.35; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'complexity': 0.84; 'enhancement.': 0.84; 'received:fios.verizon.net': 0.84; 'verb,': 0.84; 'subject:Survey': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Survey -- Move To Trash function in Python? Date: Thu, 14 May 2015 22:27:00 -0400 References: <5554c318$0$12999$c3e8da3$5496439d@news.astraweb.com> <555553e8$0$12985$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: <555553e8$0$12985$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431657747 news.xs4all.nl 2829 [2001:888:2000:d::a6]:45778 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90641 On 5/14/2015 10:03 PM, Steven D'Aprano wrote: > The idea is that the library will hide that complexity from you, so your > python code will just say: > > import shutil > shutil.move_to_trash(filename) Since 'trash' is (or is used as) a verb, shutil.trash(filename) seems sufficient. > and it will work on any supported OS, filesystem and desktop. This seems like a plausible enhancement. -- Terry Jan Reedy