[Python-ideas] Adding `pathlib.Path` method that would send file to recycle bin

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jan 3 09:07:47 CET 2015


On 03/01/2015 02:18, Chris Angelico wrote:
> On Sat, Jan 3, 2015 at 12:50 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>> Otherwise, consider that the great bulk of scripts that are written in
>> Python don't do any file management at all, other than perhaps reading
>> or writing a few files. So even if Python gained this functionality, it
>> wouldn't have any impact on most scripts and applications.[1]
>
> I've always thought of a trash can as an inherently human-controlled
> feature.

As, for example, holding down the SHIFT key on Windows and skipping the 
recycle bin completely?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Python-ideas mailing list