os.readlink() doco snafu?

Miles semanticist at gmail.com
Wed Aug 20 16:48:56 EDT 2008


Fredrik Lundh wrote:
> JBW wrote:
>> I'm not sure readlink() lives up to its documentation. ...
>> The result makes sense, but it belies the documentation. Should I report
>> this?  Or is there another plausible interpretation?
>
> the part about joining with dirname(path) assumes that you pass in an
> absolute path to the readlink function.

That documentation should probably say, "if it is relative, it may be
converted to a pathname valid from the current working directory using
..."

-Miles



More information about the Python-list mailing list