Bad docs for os.path.isabs()

Francis Avila francisgavila at yahoo.com
Mon Nov 10 02:38:37 EST 2003


"Georgy Pruss" <SEE_AT_THE_END at hotmail.com> wrote in message
news:n9Drb.105819$IA2.3757726 at twister.southeast.rr.com...
>
> "Peter Hansen" <peter at engcorp.com> wrote in message
news:3FAEB530.D67D27BC at engcorp.com...
> >>> os.path.isabs("C:\\foo\\..\\bar")
> True
> >>> os.path.abspath("C:\\foo\\..\\bar")
> 'C:\\bar'
>
> And both are right
> G-:
>
> > (Or some variation on that... i.e. leave the actual specification
> > to the nuts-and-bolts of the platform-dependent code, rather than
> > trying to rewrite it in English and risk duplication/errors.)
> >
> > -Peter

Ugh.

"Return True if path is not relative to the current working directory."

Better:

"Return True if path is not a relative pathname."
--
Francis Avila





More information about the Python-list mailing list