Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions