René's URL Explorer Experiment


Title: Fix some pyo3 testcase against the c-api by bschoenmaeckers · Pull Request #8349 · RustPython/RustPython · GitHub

Open Graph Title: Fix some pyo3 testcase against the c-api by bschoenmaeckers · Pull Request #8349 · RustPython/RustPython

X Title: Fix some pyo3 testcase against the c-api by bschoenmaeckers · Pull Request #8349 · RustPython/RustPython

Description: Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the imported module object from the runtime module registry (so submodule attributes are accessible). Fixed wrapping of static Rust functions so no-argument functions are handled correctly. Corrected attribute-existence checks to match Python hasattr results. Added a clearer error when requesting capsule context from a capsule with a null pointer. Prevented capsule destructor callbacks from running when the capsule pointer is null. Tests Added coverage for submodule importing, static no-arg wrapping, hasattr behavior, and invalid capsule context/destructor cases.

Open Graph Description: Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the importe...

X Description: Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the importe...

Opengraph URL: https://github.com/RustPython/RustPython/pull/8349

X: @github

direct link

Domain: Github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9d46a45c-528c-5ec3-3022-dc566c7f9b3d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC56C:3BEA31:242B345:31F2ACC:6A631C36
html-safe-nonce80f892b1049ac613fd44099491795c9128e92bf077ab1ed62ff8d822e077f6f7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTZDOjNCRUEzMToyNDJCMzQ1OjMxRjJBQ0M6NkE2MzFDMzYiLCJ2aXNpdG9yX2lkIjoiMjk5MzUyNDIyNjM1NDUxOTA5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbf6291d1c1bdd26deaf9ee509df5e2980a5aa772a5cda0d036906850ed38c811
hovercard-subject-tagpull_request:4110310598
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/8349/files
twitter:imagehttps://avatars.githubusercontent.com/u/7943856?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7943856?s=400&v=4
og:image:altFound some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the importe...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6a93e25585f487ddff9e3996c06d5b869d6e1828
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/RustPython/RustPython/pull/8349/files#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8349%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2FRustPython%2FRustPython%2Fpull%2F8349%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://Github.com/RustPython/RustPython/pull/8349/files
Reloadhttps://Github.com/RustPython/RustPython/pull/8349/files
Reloadhttps://Github.com/RustPython/RustPython/pull/8349/files
Please reload this pagehttps://Github.com/RustPython/RustPython/pull/8349/files
RustPython https://Github.com/RustPython
RustPythonhttps://Github.com/RustPython/RustPython
Notifications https://Github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.5k https://Github.com/login?return_to=%2FRustPython%2FRustPython
Star 22.2k https://Github.com/login?return_to=%2FRustPython%2FRustPython
Code https://Github.com/RustPython/RustPython
Issues 294 https://Github.com/RustPython/RustPython/issues
Pull requests 105 https://Github.com/RustPython/RustPython/pulls
Discussions https://Github.com/RustPython/RustPython/discussions
Actions https://Github.com/RustPython/RustPython/actions
Projects https://Github.com/RustPython/RustPython/projects
Models https://Github.com/RustPython/RustPython/models
Wiki https://Github.com/RustPython/RustPython/wiki
Security and quality 0 https://Github.com/RustPython/RustPython/security
Insights https://Github.com/RustPython/RustPython/pulse
Code https://Github.com/RustPython/RustPython
Issues https://Github.com/RustPython/RustPython/issues
Pull requests https://Github.com/RustPython/RustPython/pulls
Discussions https://Github.com/RustPython/RustPython/discussions
Actions https://Github.com/RustPython/RustPython/actions
Projects https://Github.com/RustPython/RustPython/projects
Models https://Github.com/RustPython/RustPython/models
Wiki https://Github.com/RustPython/RustPython/wiki
Security and quality https://Github.com/RustPython/RustPython/security
Insights https://Github.com/RustPython/RustPython/pulse
Sign up for GitHub https://Github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://Github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
bschoenmaeckershttps://Github.com/bschoenmaeckers
RustPython:mainhttps://Github.com/RustPython/RustPython/tree/main
bschoenmaeckers:c-api-fix-testcasehttps://Github.com/bschoenmaeckers/RustPython/tree/c-api-fix-testcase
Conversation 14 https://Github.com/RustPython/RustPython/pull/8349
Commits 5 https://Github.com/RustPython/RustPython/pull/8349/commits
Checks 25 https://Github.com/RustPython/RustPython/pull/8349/checks
Files changed https://Github.com/RustPython/RustPython/pull/8349/files
Please reload this pagehttps://Github.com/RustPython/RustPython/pull/8349/files
Fix some pyo3 testcase against the c-api https://Github.com/RustPython/RustPython/pull/8349/files#top
Show all changes 5 commits https://Github.com/RustPython/RustPython/pull/8349/files
1b098ec Fix some pyo3 testcase against the c-api bschoenmaeckers Jul 22, 2026 https://Github.com/RustPython/RustPython/pull/8349/commits/1b098ecaf8acb3bc1d28a97d8fd0fc072d21fddf
8160646 Simplify bschoenmaeckers Jul 22, 2026 https://Github.com/RustPython/RustPython/pull/8349/commits/81606464a471c860be177be47cb9fffe2c70cae1
886a448 Spelling bschoenmaeckers Jul 22, 2026 https://Github.com/RustPython/RustPython/pull/8349/commits/886a44813753a51d3f893a89761d56a0326a8e85
947c40a Update crates/vm/src/builtins/capsule.rs bschoenmaeckers Jul 23, 2026 https://Github.com/RustPython/RustPython/pull/8349/commits/947c40a9f0e26f11af92ebea3ed2488457c829cf
36004ef Align with cpython bschoenmaeckers Jul 23, 2026 https://Github.com/RustPython/RustPython/pull/8349/commits/36004ef20f8d6e9a1b6fe3008d6ae8e25a1e595b
Clear filters https://Github.com/RustPython/RustPython/pull/8349/files
Please reload this pagehttps://Github.com/RustPython/RustPython/pull/8349/files
Please reload this pagehttps://Github.com/RustPython/RustPython/pull/8349/files
import.rs https://Github.com/RustPython/RustPython/pull/8349/files#diff-5fc5c066a08a184758c935901fbac5431e8aa176bf503676b07837e2b07988af
methodobject.rs https://Github.com/RustPython/RustPython/pull/8349/files#diff-913609e56f901c63c8e8ef250f7583d583bc35cb30b85c064ecc1125fb27366a
object.rs https://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
pycapsule.rs https://Github.com/RustPython/RustPython/pull/8349/files#diff-6236c420c30a079447a6618b7bfc0aedcc89245d47cde215ddf74f44a367cd97
capsule.rs https://Github.com/RustPython/RustPython/pull/8349/files#diff-9018e111d1d61e96abaa9226407bea5e7c56339a6abe6d9ad519fed2f4198103
crates/capi/src/import.rshttps://Github.com/RustPython/RustPython/pull/8349/files#diff-5fc5c066a08a184758c935901fbac5431e8aa176bf503676b07837e2b07988af
View file https://Github.com/RustPython/RustPython/blob/36004ef20f8d6e9a1b6fe3008d6ae8e25a1e595b/crates/capi/src/import.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/RustPython/RustPython/pull/8349/{{ revealButtonHref }}
https://Github.com/RustPython/RustPython/pull/8349/files#diff-5fc5c066a08a184758c935901fbac5431e8aa176bf503676b07837e2b07988af
https://Github.com/RustPython/RustPython/pull/8349/files#diff-5fc5c066a08a184758c935901fbac5431e8aa176bf503676b07837e2b07988af
https://Github.com/RustPython/RustPython/pull/8349/files#diff-5fc5c066a08a184758c935901fbac5431e8aa176bf503676b07837e2b07988af
crates/capi/src/methodobject.rshttps://Github.com/RustPython/RustPython/pull/8349/files#diff-913609e56f901c63c8e8ef250f7583d583bc35cb30b85c064ecc1125fb27366a
View file https://Github.com/RustPython/RustPython/blob/36004ef20f8d6e9a1b6fe3008d6ae8e25a1e595b/crates/capi/src/methodobject.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/RustPython/RustPython/pull/8349/{{ revealButtonHref }}
https://Github.com/RustPython/RustPython/pull/8349/files#diff-913609e56f901c63c8e8ef250f7583d583bc35cb30b85c064ecc1125fb27366a
https://Github.com/RustPython/RustPython/pull/8349/files#diff-913609e56f901c63c8e8ef250f7583d583bc35cb30b85c064ecc1125fb27366a
https://Github.com/RustPython/RustPython/pull/8349/files#diff-913609e56f901c63c8e8ef250f7583d583bc35cb30b85c064ecc1125fb27366a
crates/capi/src/object.rshttps://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
View file https://Github.com/RustPython/RustPython/blob/36004ef20f8d6e9a1b6fe3008d6ae8e25a1e595b/crates/capi/src/object.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/RustPython/RustPython/pull/8349/{{ revealButtonHref }}
https://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
https://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
https://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
https://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
https://Github.com/RustPython/RustPython/pull/8349/files#diff-fe583114535c5e006ae5797e6bb26bf8ab5a13accf9ab4a0de27b2a99d34b63c
crates/capi/src/pycapsule.rshttps://Github.com/RustPython/RustPython/pull/8349/files#diff-6236c420c30a079447a6618b7bfc0aedcc89245d47cde215ddf74f44a367cd97
View file https://Github.com/RustPython/RustPython/blob/36004ef20f8d6e9a1b6fe3008d6ae8e25a1e595b/crates/capi/src/pycapsule.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/RustPython/RustPython/pull/8349/{{ revealButtonHref }}
https://Github.com/RustPython/RustPython/pull/8349/files#diff-6236c420c30a079447a6618b7bfc0aedcc89245d47cde215ddf74f44a367cd97
https://Github.com/RustPython/RustPython/pull/8349/files#diff-6236c420c30a079447a6618b7bfc0aedcc89245d47cde215ddf74f44a367cd97
https://Github.com/RustPython/RustPython/pull/8349/files#diff-6236c420c30a079447a6618b7bfc0aedcc89245d47cde215ddf74f44a367cd97
https://Github.com/RustPython/RustPython/pull/8349/files#diff-6236c420c30a079447a6618b7bfc0aedcc89245d47cde215ddf74f44a367cd97
crates/vm/src/builtins/capsule.rshttps://Github.com/RustPython/RustPython/pull/8349/files#diff-9018e111d1d61e96abaa9226407bea5e7c56339a6abe6d9ad519fed2f4198103
View file https://Github.com/RustPython/RustPython/blob/36004ef20f8d6e9a1b6fe3008d6ae8e25a1e595b/crates/vm/src/builtins/capsule.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/RustPython/RustPython/pull/8349/{{ revealButtonHref }}
https://Github.com/RustPython/RustPython/pull/8349/files#diff-9018e111d1d61e96abaa9226407bea5e7c56339a6abe6d9ad519fed2f4198103
https://Github.com/RustPython/RustPython/pull/8349/files#diff-9018e111d1d61e96abaa9226407bea5e7c56339a6abe6d9ad519fed2f4198103
Please reload this pagehttps://Github.com/RustPython/RustPython/pull/8349/files
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.