Skip to content

Alias to qualified module does not work #3669

Closed
@JukkaL

Description

@JukkaL

This program generates an unexpected error:

import os.path
x = os.path
x.isdir('/') # Module has no attribute "isdir"

However, this works:

from os import path
x = path
x.isdir('/') # Ok

Module aliasing was implemented in #3435.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions