René's URL Explorer Experiment


Title: Compare native signatures and docstrings in whats_left.py by leehanjeong · Pull Request #8751 · RustPython/RustPython · GitHub

Open Graph Title: Compare native signatures and docstrings in whats_left.py by leehanjeong · Pull Request #8751 · RustPython/RustPython

X Title: Compare native signatures and docstrings in whats_left.py by leehanjeong · Pull Request #8751 · RustPython/RustPython

Description: Related #8383 This PR follows our AI policy Summary whats_left.py skipped signatures and docstrings for everything written in Rust, and looked at a module one level deep, so a native class counted as present whatever its methods were. It now compares native functions and methods, including the members of classes a module owns, as discussed on #8725. before after items compared for signature and docstring 3,193 6,647 signature mismatches --signature reports 101 1,151 docstring mismatches --doc reports 93 1,497 modules counted as implemented 184 148 These numbers come from a default-feature Linux build. With --features sqlite, which the weekly data job uses, sqlite3 imports and they shift a little: 1,177 items in --signature, 1,541 docstring mismatches, and three unimportable modules instead of four. What changed A module's docstring mismatches are recorded on their own. They were kept only when the module also had missing items or signature mismatches, so annotationlib, base64, ntpath and _ctypes reported none. A builtin type method that differs is a mismatch, not a missing method. Such a method was listed under "builtin items", the section the website's builtin_items.csv is built from, with both extra_info dicts as the reason. Without this, lifting the skip below turns that section's single line into 455. Native functions and methods are compared. The _signature_is_builtin skip dates from cc2c46b (2021, #2410), when RustPython had no __text_signature__ for builtins. Native classes are opened. 438 classes and 4,062 members, compared as Class.member. A class counts as native when it has no __firstlineno__, which a class statement records, and no Python functions of its own, which rules out namedtuple-style classes made by type(). RustPython follows the CPython list instead of deciding again; a member it only inherits, and that reads differently, is listed with (inherited), and a name implemented as something else, such as _sha3's hash functions, is left to its own line. Ownership comes from the class dictionary. Comparing values, as attr_is_not_inherited() did, dropped 394 of CPython's own class attributes before RustPython was asked about them, 94 of them None-valued like ast.FunctionDef.returns, and took every inherited classmethod, __subclasshook__ for one, for a class's own. An inherited member that reads the same as CPython's own one, like dict_items.__doc__, now counts as present. A module that exists but cannot be imported is reported as such. dir_of_mod_or_error() ran dir() on the exception import_module() returns, so sqlite3 alone filled 198 "missing item" lines and CPython's _ios_support was compared as a module holding ImportError's attributes. Notes The # builtin items section is unchanged and # modules only gains the four "exists but not importable" lines, so both CSVs the weekly job builds are identical. # stdlib items gains 156 class-member lines and loses the 533 that came from those four modules. __builtins__ is no longer compared. inspect.signature() evals defaults in the owning module's namespace and eval() adds __builtins__ there, so CPython's builtins gained one once list.index had been inspected. CPython's __annotations_cache__ and __vectorcalloffset__ are left out as implementation details. The first alone accounts for 112 members on ast nodes. 54 of the new lines are (inherited): members RustPython inherits with a different signature or docstring, __sizeof__ for 13 of them. A full run takes two to three times as long, about 5s to about 12s here, and the generated file grows from 1.2 MB to 2.0 MB. Assisted-by: Claude Code:claude-opus-5 Summary by CodeRabbit Bug Fixes Improved API comparison results by distinguishing missing methods from signature and documentation mismatches. Expanded native and inherited member inspection for more complete compatibility checks. Included built-in callable signatures in comparison results. Improved handling and reporting of module inspection failures. Skipped non-class entries that are not applicable to API comparisons. Modules are now marked complete only when no missing or signature mismatches remain.

Open Graph Description: Related #8383 This PR follows our AI policy Summary whats_left.py skipped signatures and docstrings for everything written in Rust, and looked at a module one level deep, so a native class counte...

X Description: Related #8383 This PR follows our AI policy Summary whats_left.py skipped signatures and docstrings for everything written in Rust, and looked at a module one level deep, so a native class counte...

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

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3255b233-0502-f22d-ac18-01279dc49a8d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F7A:1F927B:1B8E0E4:244D372:6B021B8B
html-safe-nonce04e5d7a00b6ef2f9e126475c0fae485452cd2d1a693e89c8ae464efcfddb3ee4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjdBOjFGOTI3QjoxQjhFMEU0OjI0NEQzNzI6NkIwMjFCOEIiLCJ2aXNpdG9yX2lkIjoiODI5OTk3MjY5NzI4MzIzODc5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac481a824b5da888470b66611c32a9a8057b318939432a54d3e6e8e39353a091df
hovercard-subject-tagpull_request:4582708474
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/8751/files
twitter:imagehttps://avatars.githubusercontent.com/u/54920378?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/54920378?s=400&v=4
og:image:altRelated #8383 This PR follows our AI policy Summary whats_left.py skipped signatures and docstrings for everything written in Rust, and looked at a module one level deep, so a native class counte...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/8751/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8751%2Ffiles
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%2F8751%2Ffiles
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%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/8751/files
Reloadhttps://github.com/RustPython/RustPython/pull/8751/files
Reloadhttps://github.com/RustPython/RustPython/pull/8751/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests130 (130)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
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
leehanjeong:whats-left-native-signatureshttps://github.com/leehanjeong/RustPython/tree/whats-left-native-signatures
Conversation 7 https://github.com/RustPython/RustPython/pull/8751
Commits 7 https://github.com/RustPython/RustPython/pull/8751/commits
Checks 19 https://github.com/RustPython/RustPython/pull/8751/checks
Files changed https://github.com/RustPython/RustPython/pull/8751/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8751/files
Compare native signatures and docstrings in whats_left.py https://github.com/RustPython/RustPython/pull/8751/files#top
Show all changes 7 commits https://github.com/RustPython/RustPython/pull/8751/files
3306e12 Record a module's docstring mismatches on their own leehanjeong Sep 17, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/3306e1224a72c3366f55301058ea0c5357d08223
9c710e6 Report a builtin type method that differs as a mismatch leehanjeong Sep 17, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/9c710e617c5f64ba45caefe4da43b248da70d2bb
8011e62 Compare signatures and docstrings of native callables leehanjeong Sep 17, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/8011e62491416e173de90dce0365e2806ada8b8b
f8365e1 Scan the members of native classes in each module leehanjeong Sep 17, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/f8365e19777e044a1321452355644fe14485c678
ae94481 Report a module that exists but cannot be imported leehanjeong Sep 20, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/ae94481e4c88720f756ac2eb0b4b37af38cc96e4
ee0eb10 Compare a module's own docstring leehanjeong Sep 20, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/ee0eb10a55870129ca6337ec84260ce6673247cc
d16284d Decide a member's ownership by the class dictionary leehanjeong Sep 20, 2026 https://github.com/RustPython/RustPython/pull/8751/commits/d16284d1d17c32a4da28ed394805fa3b786452f7
Clear filters https://github.com/RustPython/RustPython/pull/8751/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8751/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8751/files
scripts/whats_left.pyhttps://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
View file https://github.com/leehanjeong/RustPython/blob/d16284d1d17c32a4da28ed394805fa3b786452f7/scripts/whats_left.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8751/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
https://github.com/RustPython/RustPython/pull/8751/files#diff-6e88a6122e5b94119ffb0cc3fe03d9f086409bffe796cbd30af4e44a4e69edf5
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8751/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.