Skip to content

Incorrect details for os.path.abspath() documentation #130527

Closed as not planned
Closed as not planned
@calestyo

Description

@calestyo

Documentation

Return a normalized absolutized version of the pathname *path*. On most
platforms, this is equivalent to calling the function :func:`normpath` as
follows: ``normpath(join(os.getcwd(), path))``.

claim is wrong, because normpath(join(os.getcwd(), path)) is only called when the pathname is not absolute.

If the claim would be true, every absolute pathname would get the cwd prepended.

Cheers,
Chris.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions