eryk sun <eryk...@gmail.com>:

> On Sun, Mar 12, 2017 at 5:48 PM, Steve D'Aprano
> <steve+pyt...@pearwood.info> wrote:
>>
>> Does os.remove work like this under Windows too?
>
> os.remove calls DeleteFile on Windows. [...]

Fascinating info, Eryk.

The difference between file removal in Linux and Windows is a bit like
the difference between object destrution in C++ and Python. In C++, you
destroy an object with a "delete" statement. In Python, you can't
destroy an object, you can simply lose all references to it.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to