René's URL Explorer Experiment


Title: Implement `DISALLOW_INSTANTIATION` PyTypeFlags by Snowapril · Pull Request #5286 · RustPython/RustPython · GitHub

Open Graph Title: Implement `DISALLOW_INSTANTIATION` PyTypeFlags by Snowapril · Pull Request #5286 · RustPython/RustPython

X Title: Implement `DISALLOW_INSTANTIATION` PyTypeFlags by Snowapril · Pull Request #5286 · RustPython/RustPython

Description: This revision implement DISALLOW_INSTANTIATION PyTypeFlags to prevent several type from instantiating which is not intended.

Open Graph Description: This revision implement DISALLOW_INSTANTIATION PyTypeFlags to prevent several type from instantiating which is not intended.

X Description: This revision implement DISALLOW_INSTANTIATION PyTypeFlags to prevent several type from instantiating which is not intended.

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

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:d8ce830a-2329-864e-2b22-02b1d1919a94
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id84CE:30321C:2478A4:303A55:696B9826
html-safe-nonce9d6608b64b66a20688d0404debcd727adaec3e5329bf18c418f63531a6c2a527
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NENFOjMwMzIxQzoyNDc4QTQ6MzAzQTU1OjY5NkI5ODI2IiwidmlzaXRvcl9pZCI6Ijc4MTI0Nzc5NTMzNTcwOTI5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac16cc237b69cfd1e490205a382f974e7304c86964ed07af12e50dba91817b4a54
hovercard-subject-tagpull_request:1844205497
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/RustPython/RustPython/5286/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d585eb352cf748c45c22c38da8772bb326d7b0de381242f1a2ca00fec3e9dead/RustPython/RustPython/pull/5286
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d585eb352cf748c45c22c38da8772bb326d7b0de381242f1a2ca00fec3e9dead/RustPython/RustPython/pull/5286
og:image:altThis revision implement DISALLOW_INSTANTIATION PyTypeFlags to prevent several type from instantiating which is not intended.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSnowapril
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/5286#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F5286
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%2FRustPython%2FRustPython%2Fpull%2F5286
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=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/5286
Reloadhttps://github.com/RustPython/RustPython/pull/5286
Reloadhttps://github.com/RustPython/RustPython/pull/5286
RustPython https://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Notifications https://github.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.4k https://github.com/login?return_to=%2FRustPython%2FRustPython
Star 21.7k https://github.com/login?return_to=%2FRustPython%2FRustPython
Code https://github.com/RustPython/RustPython
Issues 277 https://github.com/RustPython/RustPython/issues
Pull requests 89 https://github.com/RustPython/RustPython/pulls
Discussions https://github.com/RustPython/RustPython/discussions
Actions https://github.com/RustPython/RustPython/actions
Projects 0 https://github.com/RustPython/RustPython/projects
Wiki https://github.com/RustPython/RustPython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/RustPython/RustPython/security
Please reload this pagehttps://github.com/RustPython/RustPython/pull/5286
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
Wiki https://github.com/RustPython/RustPython/wiki
Security 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
Jump to bottomhttps://github.com/RustPython/RustPython/pull/5286#issue-comment-box
Snowaprilhttps://github.com/Snowapril
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
Snowapril:disallow_instantiationhttps://github.com/Snowapril/RustPython/tree/disallow_instantiation
Implement DISALLOW_INSTANTIATION PyTypeFlags https://github.com/RustPython/RustPython/pull/5286#top
Snowaprilhttps://github.com/Snowapril
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
Snowapril:disallow_instantiationhttps://github.com/Snowapril/RustPython/tree/disallow_instantiation
Conversation 1 https://github.com/RustPython/RustPython/pull/5286
Commits 3 https://github.com/RustPython/RustPython/pull/5286/commits
Checks 13 https://github.com/RustPython/RustPython/pull/5286/checks
Files changed https://github.com/RustPython/RustPython/pull/5286/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/5286
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/{{ revealButtonHref }}
https://github.com/Snowapril
Snowaprilhttps://github.com/Snowapril
Apr 28, 2024https://github.com/RustPython/RustPython/pull/5286#issue-2267326998
Please reload this pagehttps://github.com/RustPython/RustPython/pull/5286
https://github.com/youknowone
youknowonehttps://github.com/youknowone
May 5, 2024 https://github.com/RustPython/RustPython/pull/5286#ref-pullrequest-2279587466
DefaultConstructor impls Constructor; Unconstructible is not anymore #5297 https://github.com/RustPython/RustPython/pull/5297
https://github.com/Snowapril
Snowaprilhttps://github.com/Snowapril
May 15, 2024https://github.com/RustPython/RustPython/pull/5286#issuecomment-2112680780
#5324https://github.com/RustPython/RustPython/pull/5324
Please reload this pagehttps://github.com/RustPython/RustPython/pull/5286
https://github.com/Snowapril
Snowaprilhttps://github.com/Snowapril
force-pushedhttps://github.com/RustPython/RustPython/compare/20aeaccf5638fdb1de2588ed196e87c874746334..9c2caa9192d849f105c1d4a3adfe1b6f6c9f7168
20aeacchttps://github.com/RustPython/RustPython/commit/20aeaccf5638fdb1de2588ed196e87c874746334
9c2caa9https://github.com/RustPython/RustPython/commit/9c2caa9192d849f105c1d4a3adfe1b6f6c9f7168
Compare https://github.com/RustPython/RustPython/compare/20aeaccf5638fdb1de2588ed196e87c874746334..9c2caa9192d849f105c1d4a3adfe1b6f6c9f7168
June 16, 2024 06:34https://github.com/RustPython/RustPython/pull/5286#event-13173790815
https://github.com/youknowone
youknowonehttps://github.com/youknowone
force-pushedhttps://github.com/RustPython/RustPython/compare/9c2caa9192d849f105c1d4a3adfe1b6f6c9f7168..db9f140f2f28ec1069aa388bc1208ad9f1b9d7d6
9c2caa9https://github.com/RustPython/RustPython/commit/9c2caa9192d849f105c1d4a3adfe1b6f6c9f7168
db9f140https://github.com/RustPython/RustPython/commit/db9f140f2f28ec1069aa388bc1208ad9f1b9d7d6
Compare https://github.com/RustPython/RustPython/compare/9c2caa9192d849f105c1d4a3adfe1b6f6c9f7168..db9f140f2f28ec1069aa388bc1208ad9f1b9d7d6
March 30, 2025 05:01https://github.com/RustPython/RustPython/pull/5286#event-17046983582
Snowaprilhttps://github.com/Snowapril
December 15, 2025 18:32https://github.com/RustPython/RustPython/pull/5286#commits-pushed-61d7d66
https://github.com/Snowapril
https://github.com/youknowone
Set tp_new slot when build heap/static typehttps://github.com/RustPython/RustPython/pull/5286/commits/61d7d66624c4acb9b9e8d6a2a5f02a3314e71fbd
61d7d66https://github.com/RustPython/RustPython/pull/5286/commits/61d7d66624c4acb9b9e8d6a2a5f02a3314e71fbd
https://github.com/Snowapril
https://github.com/youknowone
Improve type tp_call impl to check tp_new existence and error if not …https://github.com/RustPython/RustPython/pull/5286/commits/79cd7d17aa5ea8d321a87eb80a48bfeceb79b1a1
79cd7d1https://github.com/RustPython/RustPython/pull/5286/commits/79cd7d17aa5ea8d321a87eb80a48bfeceb79b1a1
https://github.com/Snowapril
https://github.com/youknowone
Set DISALLOW_INSTANTIATION flag on several types according to cpython…https://github.com/RustPython/RustPython/pull/5286/commits/6b2fcbfb74f4c34768ab73ac2fc12f355fc353fc
6b2fcbfhttps://github.com/RustPython/RustPython/pull/5286/commits/6b2fcbfb74f4c34768ab73ac2fc12f355fc353fc
https://github.com/youknowone
youknowonehttps://github.com/youknowone
Dec 15, 2025https://github.com/RustPython/RustPython/pull/5286#event-21561529013
https://github.com/youknowone
youknowonehttps://github.com/youknowone
force-pushedhttps://github.com/RustPython/RustPython/compare/db9f140f2f28ec1069aa388bc1208ad9f1b9d7d6..6b2fcbfb74f4c34768ab73ac2fc12f355fc353fc
db9f140https://github.com/RustPython/RustPython/commit/db9f140f2f28ec1069aa388bc1208ad9f1b9d7d6
6b2fcbfhttps://github.com/RustPython/RustPython/commit/6b2fcbfb74f4c34768ab73ac2fc12f355fc353fc
Compare https://github.com/RustPython/RustPython/compare/db9f140f2f28ec1069aa388bc1208ad9f1b9d7d6..6b2fcbfb74f4c34768ab73ac2fc12f355fc353fc
December 15, 2025 09:35https://github.com/RustPython/RustPython/pull/5286#event-21561529110
https://github.com/youknowone
youknowonehttps://github.com/youknowone
Dec 15, 2025https://github.com/RustPython/RustPython/pull/5286#event-21562764311
https://github.com/youknowone
youknowonehttps://github.com/youknowone
Dec 16, 2025 https://github.com/RustPython/RustPython/pull/5286#ref-pullrequest-3732630185
flag: DISALLOW_INSTANTIATION #6445 https://github.com/RustPython/RustPython/pull/6445
https://github.com/youknowone
youknowonehttps://github.com/youknowone
#6445 https://github.com/RustPython/RustPython/pull/6445
Dec 16, 2025https://github.com/RustPython/RustPython/pull/5286#event-21595298125
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F5286
Please reload this pagehttps://github.com/RustPython/RustPython/pull/5286
https://github.com/Snowapril
https://github.com/youknowone
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.