← 输入框|github.com|刷新
Skip to content

Fix imports when same symbol is imported in different files - #2049

Merged
certik merged 6 commits into
lcompilers:mainfrom
ubaidsk:fix_imports
Jun 29, 2023
Merged

certik merged 6 commits into
lcompilers:mainfrom
ubaidsk:fix_imports

Conversation

@ubaidsk

@ubaidsk ubaidsk commented Jun 27, 2023 •

Copy link
Copy Markdown
Collaborator

fixes #2032

ubaidsk added 5 commits June 28, 2023 05:40
We pass two new arguments symtab and module_name to python_ast_to_asr().

Where symtab is the original (and only) Translation_Unit symtab and module_name
is the new module to be loaded/imported
@ubaidsk ubaidsk changed the title Fix imports Fix imports when same symbol is imported in different files #2047 Jun 28, 2023
@ubaidsk
ubaidsk marked this pull request as ready for review June 28, 2023 00:47
@ubaidsk

ubaidsk commented Jun 28, 2023

Copy link
Copy Markdown
Collaborator Author

Ready.

@ubaidsk
ubaidsk requested a review from certik June 28, 2023 00:48
@ubaidsk ubaidsk changed the title Fix imports when same symbol is imported in different files #2047 Fix imports when same symbol is imported in different files Jun 28, 2023

@certik certik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this looks good. Thanks @Shaikh-Ubaid !

@certik
certik merged commit 768e809 into lcompilers:main Jun 29, 2023
@ubaidsk
ubaidsk deleted the fix_imports branch July 20, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Imports not working

2 participants