Fix import multi module #24

Merged
kaizhi-singtown merged 1 commit from patch-1 into main 2024-05-25 10:36:16 +02:00
kaizhi-singtown commented 2024-05-25 03:24:04 +02:00 (Migrated from github.com)

Python's import is very flexible and can cover the following situations:

import a
import a, b
import a as b
import a as b, c as d
import a.b
import a.b, c.d
import a.b as c
import a.b as c, d as e

from . import a
from . import a as b
from .a import b
from .a import b as c
from a import *
from a import b
from a import b, c
from a import (b, c)
from a import b as c
from a import b as c, d as e
from a.b import *
from a.b import c
from a.b import c as d
from a.b import c as d, e as f

Python's import is very flexible and can cover the following situations: import a import a, b import a as b import a as b, c as d import a.b import a.b, c.d import a.b as c import a.b as c, d as e from . import a from . import a as b from .a import b from .a import b as c from a import * from a import b from a import b, c from a import (b, c) from a import b as c from a import b as c, d as e from a.b import * from a.b import c from a.b import c as d from a.b import c as d, e as f
marijnh commented 2024-05-25 10:36:22 +02:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/python!24
No description provided.