René's URL Explorer Experiment


Title: Introduce slot wrapper to __init__ by youknowone · Pull Request #4884 · RustPython/RustPython · GitHub

Open Graph Title: Introduce slot wrapper to __init__ by youknowone · Pull Request #4884 · RustPython/RustPython

X Title: Introduce slot wrapper to __init__ by youknowone · Pull Request #4884 · RustPython/RustPython

Description: Summary by CodeRabbit New Features Added wrapper-descriptor and method-wrapper types with full descriptor semantics: binding, callable behavior, readable representations, hashing/comparison, and standard attributes (name, qualname, objclass, self, reduce). Bug Fixes Improved init error messages to show the actual returned type. Tightened validation of excess arguments during object initialization. Refactor Adjusted initialization lifecycle and how init entry points are exposed for built-ins. ✏️ Tip: You can customize this high-level summary in your review settings.

Open Graph Description: Summary by CodeRabbit New Features Added wrapper-descriptor and method-wrapper types with full descriptor semantics: binding, callable behavior, readable representations, hashing/comparison, and...

X Description: Summary by CodeRabbit New Features Added wrapper-descriptor and method-wrapper types with full descriptor semantics: binding, callable behavior, readable representations, hashing/comparison, and...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3024557f-d4b2-1350-90a7-df2c9e1b2384
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE934:1860A8:2318181:3012FAF:696ABD7B
html-safe-nonce23de9d83cf35bfe29df03293c36e37b3054e30c71954641bad1d59306166f015
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTM0OjE4NjBBODoyMzE4MTgxOjMwMTJGQUY6Njk2QUJEN0IiLCJ2aXNpdG9yX2lkIjoiMTk5NDM4MjIzOTA1ODI3OTgwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac99bab94d343e79e7dd29fda32ce25de3352407f1ff95d0ced2e29fdd53dc0025
hovercard-subject-tagpull_request:1317265980
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/4884/files
twitter:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
og:image:altSummary by CodeRabbit New Features Added wrapper-descriptor and method-wrapper types with full descriptor semantics: binding, callable behavior, readable representations, hashing/comparison, and...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
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
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/4884/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F4884%2Ffiles
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%2F4884%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/4884/files
Reloadhttps://github.com/RustPython/RustPython/pull/4884/files
Reloadhttps://github.com/RustPython/RustPython/pull/4884/files
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 278 https://github.com/RustPython/RustPython/issues
Pull requests 92 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/4884/files
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
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:init-slot-callerhttps://github.com/youknowone/RustPython/tree/init-slot-caller
Conversation 4 https://github.com/RustPython/RustPython/pull/4884
Commits 1 https://github.com/RustPython/RustPython/pull/4884/commits
Checks 12 https://github.com/RustPython/RustPython/pull/4884/checks
Files changed https://github.com/RustPython/RustPython/pull/4884/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/4884/files
Introduce slot wrapper to __init__ https://github.com/RustPython/RustPython/pull/4884/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/4884/files
1f9df15 introduce slot_wrapper youknowone Apr 18, 2023 https://github.com/RustPython/RustPython/pull/4884/commits/1f9df1512401ad1a8fffa01f7af21648b0fbc473
Clear filters https://github.com/RustPython/RustPython/pull/4884/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/4884/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/4884/files
test_descr.py https://github.com/RustPython/RustPython/pull/4884/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
test_inspect.py https://github.com/RustPython/RustPython/pull/4884/files#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
test_types.py https://github.com/RustPython/RustPython/pull/4884/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
test_weakref.py https://github.com/RustPython/RustPython/pull/4884/files#diff-937b32719db22ef614ad443f33d3c274ccc905bb58badd4167d6720e0e45d575
descriptor.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
object.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-ec7721ead0f46e1973ab4e3083a62519b403b8cf2503e4a94d82e00cee8d521b
weakref.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-020cc7f97369cc44897d6701bf55623beecc2cb6eb62578c59456f17e2e79046
class.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-ea8866550ea2830f83d804b5bc2a03456c7eaa2308b786b0aa71a984ca25b8fe
io.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-4535792dadc3acb6b6f66f9220e61553918c1468a58dcf3f1d1473e3032b1446
slot.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-1b5587c15bdfe9ff552fbc35e014eef20d6b7934fbb31b922cf35d87e8837b7b
zoo.rs https://github.com/RustPython/RustPython/pull/4884/files#diff-2fdb52e66f0a034357567f379d931971d8a0b8542c585548957a2d1a7ebedd56
Lib/test/test_descr.pyhttps://github.com/RustPython/RustPython/pull/4884/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/Lib/test/test_descr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/RustPython/RustPython/pull/4884/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
Lib/test/test_inspect/test_inspect.pyhttps://github.com/RustPython/RustPython/pull/4884/files#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/Lib/test/test_inspect/test_inspect.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
https://github.com/RustPython/RustPython/pull/4884/files#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
https://github.com/RustPython/RustPython/pull/4884/files#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
https://github.com/RustPython/RustPython/pull/4884/files#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
Lib/test/test_types.pyhttps://github.com/RustPython/RustPython/pull/4884/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/Lib/test/test_types.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
https://github.com/RustPython/RustPython/pull/4884/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
https://github.com/RustPython/RustPython/pull/4884/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
Lib/test/test_weakref.pyhttps://github.com/RustPython/RustPython/pull/4884/files#diff-937b32719db22ef614ad443f33d3c274ccc905bb58badd4167d6720e0e45d575
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/Lib/test/test_weakref.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-937b32719db22ef614ad443f33d3c274ccc905bb58badd4167d6720e0e45d575
https://github.com/RustPython/RustPython/pull/4884/files#diff-937b32719db22ef614ad443f33d3c274ccc905bb58badd4167d6720e0e45d575
crates/vm/src/builtins/descriptor.rshttps://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/crates/vm/src/builtins/descriptor.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
https://github.com/RustPython/RustPython/pull/4884/files#diff-7c8850ad317bf0c33b339610ec3e80a4038cd37545ba20746f8e680d87931b8e
crates/vm/src/builtins/object.rshttps://github.com/RustPython/RustPython/pull/4884/files#diff-ec7721ead0f46e1973ab4e3083a62519b403b8cf2503e4a94d82e00cee8d521b
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/crates/vm/src/builtins/object.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-ec7721ead0f46e1973ab4e3083a62519b403b8cf2503e4a94d82e00cee8d521b
https://github.com/RustPython/RustPython/pull/4884/files#diff-ec7721ead0f46e1973ab4e3083a62519b403b8cf2503e4a94d82e00cee8d521b
crates/vm/src/builtins/weakref.rshttps://github.com/RustPython/RustPython/pull/4884/files#diff-020cc7f97369cc44897d6701bf55623beecc2cb6eb62578c59456f17e2e79046
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/crates/vm/src/builtins/weakref.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-020cc7f97369cc44897d6701bf55623beecc2cb6eb62578c59456f17e2e79046
https://github.com/RustPython/RustPython/pull/4884/files#diff-020cc7f97369cc44897d6701bf55623beecc2cb6eb62578c59456f17e2e79046
https://github.com/RustPython/RustPython/pull/4884/files#diff-020cc7f97369cc44897d6701bf55623beecc2cb6eb62578c59456f17e2e79046
https://github.com/RustPython/RustPython/pull/4884/files#diff-020cc7f97369cc44897d6701bf55623beecc2cb6eb62578c59456f17e2e79046
crates/vm/src/class.rshttps://github.com/RustPython/RustPython/pull/4884/files#diff-ea8866550ea2830f83d804b5bc2a03456c7eaa2308b786b0aa71a984ca25b8fe
View file https://github.com/youknowone/RustPython/blob/1f9df1512401ad1a8fffa01f7af21648b0fbc473/crates/vm/src/class.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/4884/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/4884/files#diff-ea8866550ea2830f83d804b5bc2a03456c7eaa2308b786b0aa71a984ca25b8fe
https://github.com/RustPython/RustPython/pull/4884/files#diff-ea8866550ea2830f83d804b5bc2a03456c7eaa2308b786b0aa71a984ca25b8fe
https://github.com/RustPython/RustPython/pull/4884/files#diff-ea8866550ea2830f83d804b5bc2a03456c7eaa2308b786b0aa71a984ca25b8fe
Please reload this pagehttps://github.com/RustPython/RustPython/pull/4884/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/4884/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.