When will os.remove fail?

Jon Ribbens jon+usenet at unequivocal.eu
Tue Mar 14 09:30:36 EDT 2017

On 2017-03-14, Chris Angelico <rosuav at gmail.com> wrote:
>> (The bash rm command will ask you before deleting, but Python's os.remove
>> just removes it.)
> (And the rm command won't ask if you say "-f".)

rm does not ask before deleting. However some Linux distributions
take it upon themselves to put "alias rm='rm -i'" in /etc/profile.

More information about the Python-list mailing list