[Python-Dev] If you thought there were too many PEPs... (original) (raw)

Guido van Rossum guido@beopen.com
Mon, 28 Aug 2000 06:16:18 -0500


> from SUSv2: > > int remove(const char *path); > > If path does not name a directory, remove(path) > is equivalent to unlink(path). > > If path names a directory, remove(path) is equi- > valent to rmdir(path). > > should I fix this?

1. Yes. 2. After the feature freeze.

Agreed. Note that the correct fix is to use remove() if it exists and emulate it if it doesn't.

On Windows, I believe remove() exists but probably not with the above semantics so it should be emulated.

--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)