New os.path.exists() behavior - bug or feature?

klappnase klappnase at web.de
Tue Dec 19 11:52:55 EST 2006


Martin v. Löwis schrieb:
>
> Neither, nor. In both cases, the operating system is asked, and gives
> this answer. However, in the Windows API, there is no "exists" function
> (nor is there on Unix); instead, exists is implemented by calling
> several underlying functions. The precise set of functions used did
> change between 2.4 and 2.5.
>
> It is quite difficult to investigate the precise nature of the change
> that leads to this change in observable behavior. If you think this is
> a bug, it would be best if you could also investigate a patch.
>

I don't know if it is a bug; at least it is backwards incompatible,
which I think is never a good thing.
Unfortunately, I am afraid writing a patch is beyond my expertise :(

Regards

Michael




More information about the Python-list mailing list