René's URL Explorer Experiment


Title: gh-105751: test_ctypes avoids the operator module by vstinner · Pull Request #105797 · python/cpython · GitHub

Open Graph Title: gh-105751: test_ctypes avoids the operator module by vstinner · Pull Request #105797 · python/cpython

X Title: gh-105751: test_ctypes avoids the operator module by vstinner · Pull Request #105797 · python/cpython

Description: Replace operator.delitem(obj, index) with "del obj[index]". Replace operator.setitem(obj, index, value) with "obj[index] = value". Replace delattr(obj, "attr) with "del obj.attr". Replace grc() with sys.getrefcount() for readability. Issue: gh-105751

Open Graph Description: Replace operator.delitem(obj, index) with "del obj[index]". Replace operator.setitem(obj, index, value) with "obj[index] = value". Replace delattr(obj, "attr) with "de...

X Description: Replace operator.delitem(obj, index) with "del obj[index]". Replace operator.setitem(obj, index, value) with "obj[index] = value". Replace delattr(obj, &quot...

Opengraph URL: https://github.com/python/cpython/pull/105797

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e5700334-ed53-7c49-2c9e-a3d1301280d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB50:DC558:16FE47E:1EC4B70:6969BB2E
html-safe-nonceca03b3060050afc7520f25ee48dbd2fd180a0bec99751e1ea82a7f9923727844
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjUwOkRDNTU4OjE2RkU0N0U6MUVDNEI3MDo2OTY5QkIyRSIsInZpc2l0b3JfaWQiOiI3MjMwNjA5NDAyNDI3Njc4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac47e0b7c99ce6d0113802ba275bd86199160ce4172a3e3fb94bec6c06f91e33cc
hovercard-subject-tagpull_request:1392955564
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/python/cpython/pull/105797/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altReplace operator.delitem(obj, index) with "del obj[index]". Replace operator.setitem(obj, index, value) with "obj[index] = value". Replace delattr(obj, "attr) with "de...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/105797/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F105797%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%2Fpython%2Fcpython%2Fpull%2F105797%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=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/105797/files
Reloadhttps://github.com/python/cpython/pull/105797/files
Reloadhttps://github.com/python/cpython/pull/105797/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/105797/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/105797/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
zwarehttps://github.com/zware
python:mainhttps://github.com/python/cpython/tree/main
vstinner:test_ctypes_replacehttps://github.com/vstinner/cpython/tree/test_ctypes_replace
Conversation 1 https://github.com/python/cpython/pull/105797
Commits 1 https://github.com/python/cpython/pull/105797/commits
Checks 0 https://github.com/python/cpython/pull/105797/checks
Files changed https://github.com/python/cpython/pull/105797/files
Please reload this pagehttps://github.com/python/cpython/pull/105797/files
gh-105751: test_ctypes avoids the operator module https://github.com/python/cpython/pull/105797/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/105797/files
1ecbc7f gh-105751: test_ctypes avoids the operator module vstinner Jun 14, 2023 https://github.com/python/cpython/pull/105797/commits/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46
Clear filters https://github.com/python/cpython/pull/105797/files
Please reload this pagehttps://github.com/python/cpython/pull/105797/files
Please reload this pagehttps://github.com/python/cpython/pull/105797/files
test_arrays.py https://github.com/python/cpython/pull/105797/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa
test_callbacks.py https://github.com/python/cpython/pull/105797/files#diff-23e4c416aa48510fd9837e1f68c38ee3b975251726ec1519b1abdd90d462b239
test_delattr.py https://github.com/python/cpython/pull/105797/files#diff-c9e9b1e0409dac633b3a0e06ac77fc6c00c36629a6576ad3ab442cef86968473
test_internals.py https://github.com/python/cpython/pull/105797/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c
test_keeprefs.py https://github.com/python/cpython/pull/105797/files#diff-a7b2b28916dc723af1ac7465f6ba8fa7176c3ff635e79ee4de131419eec869b3
test_pointers.py https://github.com/python/cpython/pull/105797/files#diff-cd32760edc17f1e3dfbb86c112da79eec66db41f27b0b3618d8740ea777b192e
test_python_api.py https://github.com/python/cpython/pull/105797/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8
test_refcounts.py https://github.com/python/cpython/pull/105797/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
test_slicing.py https://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
test_stringptr.py https://github.com/python/cpython/pull/105797/files#diff-69a9153e6914f5428e5ec54c46325c47b4ccb437e68cdf2e2c733f51a058cbe3
Lib/test/test_ctypes/test_arrays.pyhttps://github.com/python/cpython/pull/105797/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_arrays.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa
https://github.com/python/cpython/pull/105797/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa
https://github.com/python/cpython/pull/105797/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa
https://github.com/python/cpython/pull/105797/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa
Lib/test/test_ctypes/test_callbacks.pyhttps://github.com/python/cpython/pull/105797/files#diff-23e4c416aa48510fd9837e1f68c38ee3b975251726ec1519b1abdd90d462b239
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_callbacks.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-23e4c416aa48510fd9837e1f68c38ee3b975251726ec1519b1abdd90d462b239
https://github.com/python/cpython/pull/105797/files#diff-23e4c416aa48510fd9837e1f68c38ee3b975251726ec1519b1abdd90d462b239
https://github.com/python/cpython/pull/105797/files#diff-23e4c416aa48510fd9837e1f68c38ee3b975251726ec1519b1abdd90d462b239
Lib/test/test_ctypes/test_delattr.pyhttps://github.com/python/cpython/pull/105797/files#diff-c9e9b1e0409dac633b3a0e06ac77fc6c00c36629a6576ad3ab442cef86968473
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_delattr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-c9e9b1e0409dac633b3a0e06ac77fc6c00c36629a6576ad3ab442cef86968473
https://github.com/python/cpython/pull/105797/files#diff-c9e9b1e0409dac633b3a0e06ac77fc6c00c36629a6576ad3ab442cef86968473
Lib/test/test_ctypes/test_internals.pyhttps://github.com/python/cpython/pull/105797/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_internals.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c
https://github.com/python/cpython/pull/105797/files#diff-c0fb8353bb97bb7c7cb2c4ff398a6c2442ee7c19a8fff01d21fa71a5bdd36c6c
Lib/test/test_ctypes/test_keeprefs.pyhttps://github.com/python/cpython/pull/105797/files#diff-a7b2b28916dc723af1ac7465f6ba8fa7176c3ff635e79ee4de131419eec869b3
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_keeprefs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-a7b2b28916dc723af1ac7465f6ba8fa7176c3ff635e79ee4de131419eec869b3
https://github.com/python/cpython/pull/105797/files#diff-a7b2b28916dc723af1ac7465f6ba8fa7176c3ff635e79ee4de131419eec869b3
https://github.com/python/cpython/pull/105797/files#diff-a7b2b28916dc723af1ac7465f6ba8fa7176c3ff635e79ee4de131419eec869b3
Lib/test/test_ctypes/test_pointers.pyhttps://github.com/python/cpython/pull/105797/files#diff-cd32760edc17f1e3dfbb86c112da79eec66db41f27b0b3618d8740ea777b192e
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_pointers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-cd32760edc17f1e3dfbb86c112da79eec66db41f27b0b3618d8740ea777b192e
https://github.com/python/cpython/pull/105797/files#diff-cd32760edc17f1e3dfbb86c112da79eec66db41f27b0b3618d8740ea777b192e
https://github.com/python/cpython/pull/105797/files#diff-cd32760edc17f1e3dfbb86c112da79eec66db41f27b0b3618d8740ea777b192e
Lib/test/test_ctypes/test_python_api.pyhttps://github.com/python/cpython/pull/105797/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_python_api.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8
https://github.com/python/cpython/pull/105797/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8
https://github.com/python/cpython/pull/105797/files#diff-ac7b0c264c623e779d9ba7cb97a6d9c4ef75f5b890b14acf9ddf593f85a5abd8
Lib/test/test_ctypes/test_refcounts.pyhttps://github.com/python/cpython/pull/105797/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_refcounts.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
https://github.com/python/cpython/pull/105797/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
https://github.com/python/cpython/pull/105797/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
Lib/test/test_ctypes/test_slicing.pyhttps://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
View file https://github.com/vstinner/cpython/blob/1ecbc7f73eb7c494dc63b8d0f759c437231e7b46/Lib/test/test_ctypes/test_slicing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105797/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
https://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
https://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
https://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
https://github.com/python/cpython/pull/105797/files#diff-a9b8473174312f2fa7a1639e276c8065288bd5b8091fd4889ad41561af74f3b6
Please reload this pagehttps://github.com/python/cpython/pull/105797/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.