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: Python compiler. Contribute to lcompilers/lpython development by creating an account on GitHub.

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: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:a50a1dbf-bd3e-eaac-055c-f980b0a17e1b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B22:1E48CC:F7C793:14B5481:6977F777
html-safe-nonce1a2da2710976a7251d5b07ff684e647d3b38f4c36bdd4c4715560f9dfd9486fc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjIyOjFFNDhDQzpGN0M3OTM6MTRCNTQ4MTo2OTc3Rjc3NyIsInZpc2l0b3JfaWQiOiIzNzczMDgwNzg3OTMwODM4OTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac00e07e992366bc31414e4bd773efdf99d8417ec72dc18671f22494411dd749ee
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lcompilers/lpython/pull/2872/commits
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
None9306bf4a8c8a88a5945f83e25033fc5e6fb7a05f40c5fca300ac67db7fee56ae
turbo-cache-controlno-cache
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
releasec586ac0f2edbf5b31f9ca03622220a4285e2def8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2872%2Fcommits
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Flcompilers%2Flpython%2Fpull%2F2872%2Fcommits
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=lcompilers%2Flpython
Reloadhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits
Reloadhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits
Reloadhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits
lcompilers https://patch-diff.githubusercontent.com/lcompilers
lpythonhttps://patch-diff.githubusercontent.com/lcompilers/lpython
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython
Fork 173 https://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Flcompilers%2Flpython
Code https://patch-diff.githubusercontent.com/lcompilers/lpython
Issues 503 https://patch-diff.githubusercontent.com/lcompilers/lpython/issues
Pull requests 85 https://patch-diff.githubusercontent.com/lcompilers/lpython/pulls
Actions https://patch-diff.githubusercontent.com/lcompilers/lpython/actions
Projects 0 https://patch-diff.githubusercontent.com/lcompilers/lpython/projects
Wiki https://patch-diff.githubusercontent.com/lcompilers/lpython/wiki
Security 0 https://patch-diff.githubusercontent.com/lcompilers/lpython/security
Insights https://patch-diff.githubusercontent.com/lcompilers/lpython/pulse
Code https://patch-diff.githubusercontent.com/lcompilers/lpython
Issues https://patch-diff.githubusercontent.com/lcompilers/lpython/issues
Pull requests https://patch-diff.githubusercontent.com/lcompilers/lpython/pulls
Actions https://patch-diff.githubusercontent.com/lcompilers/lpython/actions
Projects https://patch-diff.githubusercontent.com/lcompilers/lpython/projects
Wiki https://patch-diff.githubusercontent.com/lcompilers/lpython/wiki
Security https://patch-diff.githubusercontent.com/lcompilers/lpython/security
Insights https://patch-diff.githubusercontent.com/lcompilers/lpython/pulse
amritamishra01https://patch-diff.githubusercontent.com/amritamishra01
lcompilers:mainhttps://patch-diff.githubusercontent.com/lcompilers/lpython/tree/main
amritamishra01:fix/import-aliashttps://patch-diff.githubusercontent.com/amritamishra01/lpython/tree/fix/import-alias
Conversationhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872
Commits6 (6)https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits
Checkshttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/checks
Files changedhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/changes
Fix: Correct handling of import module as alias in LPython semantic analysishttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits#top
amritamishra01https://patch-diff.githubusercontent.com/amritamishra01
lcompilers:mainhttps://patch-diff.githubusercontent.com/lcompilers/lpython/tree/main
amritamishra01:fix/import-aliashttps://patch-diff.githubusercontent.com/amritamishra01/lpython/tree/fix/import-alias
Fix: Support 'import module as alias' in semantic analysishttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/424107c10d959f07cd4da36e1ccc7786e6db9186
https://patch-diff.githubusercontent.com/amritamishra01
amritamishra01https://patch-diff.githubusercontent.com/lcompilers/lpython/commits?author=amritamishra01
424107chttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/424107c10d959f07cd4da36e1ccc7786e6db9186
https://patch-diff.githubusercontent.com/lcompilers/lpython/tree/424107c10d959f07cd4da36e1ccc7786e6db9186
Fix: Restore visit_ImportFrom and finalize aliasing logichttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/a802b363b76c7d0d2aefb3d9a53f1f38797209cb
https://patch-diff.githubusercontent.com/amritamishra01
amritamishra01https://patch-diff.githubusercontent.com/lcompilers/lpython/commits?author=amritamishra01
a802b36https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/a802b363b76c7d0d2aefb3d9a53f1f38797209cb
https://patch-diff.githubusercontent.com/lcompilers/lpython/tree/a802b363b76c7d0d2aefb3d9a53f1f38797209cb
Fix: Restore visit_ImportFrom and remove double registrationhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/90b2ce3444ea2f5240e2ad0592f8a1206274afd2
https://patch-diff.githubusercontent.com/amritamishra01
amritamishra01https://patch-diff.githubusercontent.com/lcompilers/lpython/commits?author=amritamishra01
90b2ce3https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/90b2ce3444ea2f5240e2ad0592f8a1206274afd2
https://patch-diff.githubusercontent.com/lcompilers/lpython/tree/90b2ce3444ea2f5240e2ad0592f8a1206274afd2
Fix: Restore visit_ImportFrom and finalize aliasing logichttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/b4e6589ff04fd7bd2b1b35b88b04d6ac67752690
https://patch-diff.githubusercontent.com/amritamishra01
amritamishra01https://patch-diff.githubusercontent.com/lcompilers/lpython/commits?author=amritamishra01
b4e6589https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/b4e6589ff04fd7bd2b1b35b88b04d6ac67752690
https://patch-diff.githubusercontent.com/lcompilers/lpython/tree/b4e6589ff04fd7bd2b1b35b88b04d6ac67752690
Fix: Clean reset and correct alias patchhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
https://patch-diff.githubusercontent.com/amritamishra01
amritamishra01https://patch-diff.githubusercontent.com/lcompilers/lpython/commits?author=amritamishra01
78abfa6https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
https://patch-diff.githubusercontent.com/lcompilers/lpython/tree/78abfa61a7d0576e21c8f4d4ba3a6ee1805a44b8
Update libasr submodule pointerhttps://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/1a78800309ae8301d9e27ead12fa02365ac45ed0
https://patch-diff.githubusercontent.com/amritamishra01
amritamishra01https://patch-diff.githubusercontent.com/lcompilers/lpython/commits?author=amritamishra01
1a78800https://patch-diff.githubusercontent.com/lcompilers/lpython/pull/2872/commits/1a78800309ae8301d9e27ead12fa02365ac45ed0
https://patch-diff.githubusercontent.com/lcompilers/lpython/tree/1a78800309ae8301d9e27ead12fa02365ac45ed0
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.