os.remove & os.rmdir

Tim Roberts timr at probo.com
Thu Jan 9 02:29:11 EST 2003


Padraig Brady <padraig.brady at corvil.com> wrote:
>Peter Hansen wrote:
>> Padraig Brady wrote:
>> 
>>>So, should I do a simple patch?
>> 
>> Please don't!
>> 
>>>Advantages I can see are:
>>>
>>>    1. It follows the standard
>> 
>> Which standard?  This is Python, not C.
>
>POSIX and ISO C. Having different functionality than those
>is confusing I think.

ISO C does not say this.  The spec only says that "remove" deletes a file.
In response to a request for interpretation, the behavior when a directory
name is given was officially deemed "unspecified".
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.




More information about the Python-list mailing list