René's URL Explorer Experiment


Title: Fix: Correct handling of `import module as alias` in LPython semantic analysis by amritamishra01 · Pull Request #2872 · lcompilers/lpython · GitHub

Open Graph Title: Fix: Correct handling of `import module as alias` in LPython semantic analysis by amritamishra01 · Pull Request #2872 · lcompilers/lpython

X Title: Fix: Correct handling of `import module as alias` in LPython semantic analysis by amritamishra01 · Pull Request #2872 · lcompilers/lpython

Description: Summary This PR fixes an issue where import statements with aliases (e.g., import numpy as np) would load the module correctly but fail to register the alias (np) in the current scope. As a result,...

Open Graph Description: Summary This PR fixes an issue where import statements with aliases (e.g., import numpy as np) would load the module correctly but fail to register the alias (np) in the current scope. As a result,...

X Description: Summary This PR fixes an issue where import statements with aliases (e.g., import numpy as np) would load the module correctly but fail to register the alias (np) in the current scope. As a result,...

Opengraph URL: https://github.com/lcompilers/lpython/pull/2872

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:6217b1b8-42c4-eeb6-1de6-b02edcaae08d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0C8:A39F5:2A81D47:394502F:696AEB58
html-safe-nonce72d66833934151aefe501e163462b6f0c09af84e3ad3660a77efe2cc6631b872
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEM4OkEzOUY1OjJBODFENDc6Mzk0NTAyRjo2OTZBRUI1OCIsInZpc2l0b3JfaWQiOiIyMzQxNzU4MTgwMzQ2NDg5Njg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac89b5ce47d4ea6493e473e52af59b13b47b060b2e6213d6dfd7673d4afe0ced84
hovercard-subject-tagpull_request:3078136980
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/lcompilers/lpython/2872/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6769bd656502998bb3ecef1d8592c821b670f05ef471d8dde9215895b7e805f8/lcompilers/lpython/pull/2872
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6769bd656502998bb3ecef1d8592c821b670f05ef471d8dde9215895b7e805f8/lcompilers/lpython/pull/2872
og:image:altSummary This PR fixes an issue where import statements with aliases (e.g., import numpy as np) would load the module correctly but fail to register the alias (np) in the current scope. As a result,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameamritamishra01
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git
octolytics-dimension-user_id96538276
octolytics-dimension-user_loginlcompilers
octolytics-dimension-repository_id442864346
octolytics-dimension-repository_nwolcompilers/lpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id442864346
octolytics-dimension-repository_network_root_nwolcompilers/lpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lcompilers/lpython/pull/2872#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2872
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2872
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=lcompilers%2Flpython
Reloadhttps://github.com/lcompilers/lpython/pull/2872
Reloadhttps://github.com/lcompilers/lpython/pull/2872
Reloadhttps://github.com/lcompilers/lpython/pull/2872
lcompilers https://github.com/lcompilers
lpythonhttps://github.com/lcompilers/lpython
Notifications https://github.com/login?return_to=%2Flcompilers%2Flpython
Fork 173 https://github.com/login?return_to=%2Flcompilers%2Flpython
Star 1.6k https://github.com/login?return_to=%2Flcompilers%2Flpython
Code https://github.com/lcompilers/lpython
Issues 503 https://github.com/lcompilers/lpython/issues
Pull requests 85 https://github.com/lcompilers/lpython/pulls
Actions https://github.com/lcompilers/lpython/actions
Projects 0 https://github.com/lcompilers/lpython/projects
Wiki https://github.com/lcompilers/lpython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/lcompilers/lpython/security
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2872
Insights https://github.com/lcompilers/lpython/pulse
Code https://github.com/lcompilers/lpython
Issues https://github.com/lcompilers/lpython/issues
Pull requests https://github.com/lcompilers/lpython/pulls
Actions https://github.com/lcompilers/lpython/actions
Projects https://github.com/lcompilers/lpython/projects
Wiki https://github.com/lcompilers/lpython/wiki
Security https://github.com/lcompilers/lpython/security
Insights https://github.com/lcompilers/lpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flcompilers%2Flpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flcompilers%2Flpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/lcompilers/lpython/pull/2872#issue-comment-box
amritamishra01https://github.com/amritamishra01
lcompilers:mainhttps://github.com/lcompilers/lpython/tree/main
amritamishra01:fix/import-aliashttps://github.com/amritamishra01/lpython/tree/fix/import-alias
Fix: Correct handling of import module as alias in LPython semantic analysis https://github.com/lcompilers/lpython/pull/2872#top
amritamishra01https://github.com/amritamishra01
lcompilers:mainhttps://github.com/lcompilers/lpython/tree/main
amritamishra01:fix/import-aliashttps://github.com/amritamishra01/lpython/tree/fix/import-alias
Conversation 2 https://github.com/lcompilers/lpython/pull/2872
Commits 6 https://github.com/lcompilers/lpython/pull/2872/commits
Checks 18 https://github.com/lcompilers/lpython/pull/2872/checks
Files changed https://github.com/lcompilers/lpython/pull/2872/files
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2872
https://github.co/hiddenchars
https://github.com/lcompilers/lpython/pull/{{ revealButtonHref }}
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
Dec 6, 2025https://github.com/lcompilers/lpython/pull/2872#issue-3702362859
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2872
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
Dec 8, 2025https://github.com/lcompilers/lpython/pull/2872#issuecomment-3625527092
@certikhttps://github.com/certik
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2872
amritamishra01https://github.com/amritamishra01
December 11, 2025 12:43https://github.com/lcompilers/lpython/pull/2872#commits-pushed-424107c
https://github.com/amritamishra01
Fix: Support 'import module as alias' in semantic analysishttps://github.com/lcompilers/lpython/pull/2872/commits/424107c10d959f07cd4da36e1ccc7786e6db9186
424107chttps://github.com/lcompilers/lpython/pull/2872/commits/424107c10d959f07cd4da36e1ccc7786e6db9186
https://github.com/amritamishra01
Fix: Restore visit_ImportFrom and finalize aliasing logichttps://github.com/lcompilers/lpython/pull/2872/commits/a802b363b76c7d0d2aefb3d9a53f1f38797209cb
a802b36https://github.com/lcompilers/lpython/pull/2872/commits/a802b363b76c7d0d2aefb3d9a53f1f38797209cb
https://github.com/amritamishra01
Fix: Restore visit_ImportFrom and remove double registrationhttps://github.com/lcompilers/lpython/pull/2872/commits/90b2ce3444ea2f5240e2ad0592f8a1206274afd2
90b2ce3https://github.com/lcompilers/lpython/pull/2872/commits/90b2ce3444ea2f5240e2ad0592f8a1206274afd2
https://github.com/amritamishra01
Fix: Restore visit_ImportFrom and finalize aliasing logichttps://github.com/lcompilers/lpython/pull/2872/commits/b4e6589ff04fd7bd2b1b35b88b04d6ac67752690
b4e6589https://github.com/lcompilers/lpython/pull/2872/commits/b4e6589ff04fd7bd2b1b35b88b04d6ac67752690
https://github.com/amritamishra01
Fix: Clean reset and correct alias patchhttps://github.com/lcompilers/lpython/pull/2872/commits/78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
78abfa6https://github.com/lcompilers/lpython/pull/2872/commits/78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
force-pushedhttps://github.com/lcompilers/lpython/compare/c2a3d4253953fb821655e0783a65e453cc7b46a7..78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
c2a3d42https://github.com/lcompilers/lpython/commit/c2a3d4253953fb821655e0783a65e453cc7b46a7
78abfa6https://github.com/lcompilers/lpython/commit/78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
Compare https://github.com/lcompilers/lpython/compare/c2a3d4253953fb821655e0783a65e453cc7b46a7..78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
December 11, 2025 12:43https://github.com/lcompilers/lpython/pull/2872#event-21503504497
https://github.com/amritamishra01
Update libasr submodule pointerhttps://github.com/lcompilers/lpython/pull/2872/commits/1a78800309ae8301d9e27ead12fa02365ac45ed0
1a78800https://github.com/lcompilers/lpython/pull/2872/commits/1a78800309ae8301d9e27ead12fa02365ac45ed0
https://github.com/amritamishra01
amritamishra01https://github.com/amritamishra01
Dec 11, 2025https://github.com/lcompilers/lpython/pull/2872#issuecomment-3642003546
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2872
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2872
Please reload this pagehttps://github.com/lcompilers/lpython/pull/2872
https://github.com/amritamishra01
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.