René's URL Explorer Experiment


Title: C API type slots by youknowone · Pull Request #8435 · RustPython/RustPython · GitHub

Open Graph Title: C API type slots by youknowone · Pull Request #8435 · RustPython/RustPython

X Title: C API type slots by youknowone · Pull Request #8435 · RustPython/RustPython

Description: A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.

Open Graph Description: @bschoenmaeckers could you check if this is a working design? tried not to increase runtime cost for non-capi path

X Description: @bschoenmaeckers could you check if this is a working design? tried not to increase runtime cost for non-capi path

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:4394c733-1f91-8c41-2001-aa23b373c676
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA38:3A4875:332B7B4:442E6A4:6B01F66F
html-safe-nonce6911e79128c51fca67b447a82dc08ce381c214606d380186028e491e0ad2847a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTM4OjNBNDg3NTozMzJCN0I0OjQ0MkU2QTQ6NkIwMUY2NkYiLCJ2aXNpdG9yX2lkIjoiMjc1ODgxNTEyMTMxNTg1MzkzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9c7bc4b244c7dbd0ff37ec4dc730da61cdcb56eeeb0ac2e5d8b9d948dfb1a797
hovercard-subject-tagpull_request:4190376647
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/RustPython/RustPython/pull/8435/commits
twitter:imagehttps://opengraph.githubassets.com/b1604cb54c54e02d8dc93ffd288ee8d5726f28f3b7ef18e1fd1b9d168f05b9d7/RustPython/RustPython/pull/8435
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b1604cb54c54e02d8dc93ffd288ee8d5726f28f3b7ef18e1fd1b9d168f05b9d7/RustPython/RustPython/pull/8435
og:image:alt@bschoenmaeckers could you check if this is a working design? tried not to increase runtime cost for non-capi path
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyouknowone
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/8435/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8435%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8435%2Fcommits
Sign uphttps://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%2Fcommits&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/8435/commits
Reloadhttps://github.com/RustPython/RustPython/pull/8435/commits
Reloadhttps://github.com/RustPython/RustPython/pull/8435/commits
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
https://github.com/RustPython/RustPython
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:c-api-type-slotshttps://github.com/youknowone/RustPython/tree/c-api-type-slots
Conversationhttps://github.com/RustPython/RustPython/pull/8435
Commits9 (9)https://github.com/RustPython/RustPython/pull/8435/commits
Checkshttps://github.com/RustPython/RustPython/pull/8435/checks
Files changedhttps://github.com/RustPython/RustPython/pull/8435/files
C API type slotshttps://github.com/RustPython/RustPython/pull/8435/commits#top
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:c-api-type-slotshttps://github.com/youknowone/RustPython/tree/c-api-type-slots
capi: pass NULL kwargs to keywordless METH_KEYWORDS callshttps://github.com/RustPython/RustPython/pull/8435/commits/d7170ae6fc40f39af66940ca5e65e97255d69954
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
d7170aehttps://github.com/RustPython/RustPython/pull/8435/commits/d7170ae6fc40f39af66940ca5e65e97255d69954
https://github.com/RustPython/RustPython/tree/d7170ae6fc40f39af66940ca5e65e97255d69954
Allow c functions in tp_new type slothttps://github.com/RustPython/RustPython/pull/8435/commits/5e5918f1fbcd5a36a5a13fdbb93b9a02ba5dc09a
bschoenmaeckershttps://github.com/RustPython/RustPython/commits?author=bschoenmaeckers
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
5e5918fhttps://github.com/RustPython/RustPython/pull/8435/commits/5e5918f1fbcd5a36a5a13fdbb93b9a02ba5dc09a
https://github.com/RustPython/RustPython/tree/5e5918f1fbcd5a36a5a13fdbb93b9a02ba5dc09a
Reach a C tp_new through a per-type C slot tablehttps://github.com/RustPython/RustPython/pull/8435/commits/252ae8ab72c02d63f5a0310b995642715effdb68
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
252ae8ahttps://github.com/RustPython/RustPython/pull/8435/commits/252ae8ab72c02d63f5a0310b995642715effdb68
https://github.com/RustPython/RustPython/tree/252ae8ab72c02d63f5a0310b995642715effdb68
Expose a Rust tp_new to C through PyType_GetSlothttps://github.com/RustPython/RustPython/pull/8435/commits/f680832ab0b2b39308a3b316144fbbd0fe19d5c8
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
f680832https://github.com/RustPython/RustPython/pull/8435/commits/f680832ab0b2b39308a3b316144fbbd0fe19d5c8
https://github.com/RustPython/RustPython/tree/f680832ab0b2b39308a3b316144fbbd0fe19d5c8
capi: test an extension tp_new that calls its base's tp_new with subtypehttps://github.com/RustPython/RustPython/pull/8435/commits/b1241398424c9f46422260fb91fd6e113eedc0b6
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
b124139https://github.com/RustPython/RustPython/pull/8435/commits/b1241398424c9f46422260fb91fd6e113eedc0b6
https://github.com/RustPython/RustPython/tree/b1241398424c9f46422260fb91fd6e113eedc0b6
address review: move type slots into object/pytype.rshttps://github.com/RustPython/RustPython/pull/8435/commits/13f4404920ad096063bff3ce54bbd18ba77f8e1b
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
13f4404https://github.com/RustPython/RustPython/pull/8435/commits/13f4404920ad096063bff3ce54bbd18ba77f8e1b
https://github.com/RustPython/RustPython/tree/13f4404920ad096063bff3ce54bbd18ba77f8e1b
c_slots: hand a tp_new error to C through the raised exception slothttps://github.com/RustPython/RustPython/pull/8435/commits/c6aa44683a45e54139cf5450ac674e02ee3573ab
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
c6aa446https://github.com/RustPython/RustPython/pull/8435/commits/c6aa44683a45e54139cf5450ac674e02ee3573ab
https://github.com/RustPython/RustPython/tree/c6aa44683a45e54139cf5450ac674e02ee3573ab
capi: install Py_tp_new from a type spechttps://github.com/RustPython/RustPython/pull/8435/commits/5e0c80eda79ebac5bfb3302738567007e85cc568
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
5e0c80ehttps://github.com/RustPython/RustPython/pull/8435/commits/5e0c80eda79ebac5bfb3302738567007e85cc568
https://github.com/RustPython/RustPython/tree/5e0c80eda79ebac5bfb3302738567007e85cc568
c_slots: refuse set_tp_new on a type that defines __new__https://github.com/RustPython/RustPython/pull/8435/commits/e5d33e42947211e9137b690eaa4afb328cfcebfe
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
e5d33e4https://github.com/RustPython/RustPython/pull/8435/commits/e5d33e42947211e9137b690eaa4afb328cfcebfe
https://github.com/RustPython/RustPython/tree/e5d33e42947211e9137b690eaa4afb328cfcebfe
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.