Skip to content

Import causes unhandled exception #2828

@swamishiju

Description

@swamishiju
import string
print(string.ascii_uppercase)

The above code runs without any issue but

import string

simply importing causes an unhandled exception

$ lpython issue/main.py
ASR verify pass error: Module __main__ dependencies must contain string because a function present in it is getting called in __main__.
Internal Compiler Error: Unhandled exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions