René's URL Explorer Experiment


Title: bpo-45756: do not execute `@property` descrs while creating mock autospecs by sobolevn · Pull Request #29901 · python/cpython · GitHub

Open Graph Title: bpo-45756: do not execute `@property` descrs while creating mock autospecs by sobolevn · Pull Request #29901 · python/cpython

X Title: bpo-45756: do not execute `@property` descrs while creating mock autospecs by sobolevn · Pull Request #29901 · python/cpython

Description: In this PR I am trying to solve this corner case with inspect.getattr_static, so atrtibutes won't be actually resolved. I guess @property is special enough to skip it there. Any other similar cases...

Open Graph Description: In this PR I am trying to solve this corner case with inspect.getattr_static, so atrtibutes won't be actually resolved. I guess @property is special enough to skip it there. Any other similar c...

X Description: In this PR I am trying to solve this corner case with inspect.getattr_static, so atrtibutes won't be actually resolved. I guess @property is special enough to skip it there. Any other simil...

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

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:df5b1cec-1328-5b2a-30d3-d6e24ff4877e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AD0:178041:21A5D28:2E141D2:696ABB06
html-safe-nonce129a8cf70643892cea0522ee4d1e57a81b54e2dea98d7bd600d0435b4c0f77fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUQwOjE3ODA0MToyMUE1RDI4OjJFMTQxRDI6Njk2QUJCMDYiLCJ2aXNpdG9yX2lkIjoiNTY3MzU1NDMyNTUwMTgxOTY1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccbc59e0b6208ef09338e986cd02d7c1e34162faab48d8dc5be2bc69a3e0f1b18
hovercard-subject-tagpull_request:794371493
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/python/cpython/29901/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/926c1bad3e1489a74dc58ce1d51a69bf384a2fec58f2f9d3208869ed378d7e1e/python/cpython/pull/29901
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/926c1bad3e1489a74dc58ce1d51a69bf384a2fec58f2f9d3208869ed378d7e1e/python/cpython/pull/29901
og:image:altIn this PR I am trying to solve this corner case with inspect.getattr_static, so atrtibutes won't be actually resolved. I guess @property is special enough to skip it there. Any other similar c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesobolevn
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
turbo-cache-controlno-preview
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
disable-turbofalse
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/python/cpython/pull/29901#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29901
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%2F29901
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=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/29901
Reloadhttps://github.com/python/cpython/pull/29901
Reloadhttps://github.com/python/cpython/pull/29901
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/29901
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/29901
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
Jump to bottomhttps://github.com/python/cpython/pull/29901#issue-comment-box
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
sobolevn:issue-45756https://github.com/sobolevn/cpython/tree/issue-45756
bpo-45756: do not execute @property descrs while creating mock autospecs https://github.com/python/cpython/pull/29901#top
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
sobolevn:issue-45756https://github.com/sobolevn/cpython/tree/issue-45756
Conversation 9 https://github.com/python/cpython/pull/29901
Commits 4 https://github.com/python/cpython/pull/29901/commits
Checks 0 https://github.com/python/cpython/pull/29901/checks
Files changed https://github.com/python/cpython/pull/29901/files
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Dec 3, 2021https://github.com/python/cpython/pull/29901#issue-1070334804
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://bugs.python.org/issue45756https://bugs.python.org/issue45756
https://bugs.python.org/issue41768https://bugs.python.org/issue41768
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.com/sobolevn
bpo-45756: do not execute @property descrs while creating mock auto…https://github.com/python/cpython/pull/29901/commits/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c
1c545e5https://github.com/python/cpython/pull/29901/commits/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
cjw296https://github.com/cjw296
code ownerhttps://github.com/python/cpython/blob/99fcf1505218464c489d419d4500f126b6d6dc28/.github/CODEOWNERS#L95
December 3, 2021 08:22https://github.com/python/cpython/pull/29901#event-5710587566
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Dec 3, 2021https://github.com/python/cpython/pull/29901#event-5710587734
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Dec 3, 2021https://github.com/python/cpython/pull/29901#event-5710587866
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Dec 11, 2021https://github.com/python/cpython/pull/29901#issuecomment-991700261
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.com/hongweipeng
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29901
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Dec 30, 2021https://github.com/python/cpython/pull/29901#issuecomment-1003179617
@corona10https://github.com/corona10
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jan 12, 2022 https://github.com/python/cpython/pull/29901#pullrequestreview-850130996
View reviewed changes https://github.com/python/cpython/pull/29901/files/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c
kumaraditya303https://github.com/kumaraditya303
https://github.com/python/cpython/pull/29901#pullrequestreview-850130996
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29901
Misc/NEWS.d/next/Library/2021-12-03-11-19-44.bpo-45756.nSDJWj.rsthttps://github.com/python/cpython/pull/29901/files/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c#diff-cf33b41eb678d117861ce8e8ed5d3864eff71d629a477c581aed1c2a7e50ea04
kumaraditya303https://github.com/kumaraditya303
Jan 12, 2022https://github.com/python/cpython/pull/29901#discussion_r782822171
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29901
Misc/NEWS.d/next/Library/2021-12-03-11-19-44.bpo-45756.nSDJWj.rsthttps://github.com/python/cpython/pull/29901/files/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c#diff-cf33b41eb678d117861ce8e8ed5d3864eff71d629a477c581aed1c2a7e50ea04
kumaraditya303https://github.com/kumaraditya303
Jan 12, 2022https://github.com/python/cpython/pull/29901#discussion_r782822588
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/29901
Lib/unittest/mock.pyhttps://github.com/python/cpython/pull/29901/files/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 12, 2022https://github.com/python/cpython/pull/29901#event-5878594552
sobolevnhttps://github.com/sobolevn
January 12, 2022 11:55https://github.com/python/cpython/pull/29901#commits-pushed-49a5451
https://github.com/sobolevn
https://github.com/kumaraditya303
Update Lib/unittest/mock.pyhttps://github.com/python/cpython/pull/29901/commits/49a5451fdd9082433e2fc12fb782174720cf10d2
49a5451https://github.com/python/cpython/pull/29901/commits/49a5451fdd9082433e2fc12fb782174720cf10d2
https://github.com/sobolevn
Update 2021-12-03-11-19-44.bpo-45756.nSDJWj.rsthttps://github.com/python/cpython/pull/29901/commits/345c3f419f88d7dd1195b630e055d17c45d3371d
345c3f4https://github.com/python/cpython/pull/29901/commits/345c3f419f88d7dd1195b630e055d17c45d3371d
https://github.com/sobolevn
Update 2021-12-03-11-19-44.bpo-45756.nSDJWj.rsthttps://github.com/python/cpython/pull/29901/commits/78cbfc63796601499a06dce97d072b4c36c3fb0b
78cbfc6https://github.com/python/cpython/pull/29901/commits/78cbfc63796601499a06dce97d072b4c36c3fb0b
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 12, 2022https://github.com/python/cpython/pull/29901#event-5879003433
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 12, 2022https://github.com/python/cpython/pull/29901#event-5879003718
https://github.com/hongweipeng
hongweipenghttps://github.com/hongweipeng
Feb 15, 2022 https://github.com/python/cpython/pull/29901#ref-pullrequest-1138249517
bpo-45756: Fix mock triggers dynamic lookup via the descriptor protocol. #31348 https://github.com/python/cpython/pull/31348
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
voidspacehttps://github.com/voidspace
May 10, 2022 17:44https://github.com/python/cpython/pull/29901#event-6583997955
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
May 10, 2022https://github.com/python/cpython/pull/29901#issuecomment-1122694681
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.com/python/cpython/pull/29901
kjamiesonhttps://github.com/python/cpython/pull/29901
Apr 10, 2022 https://github.com/python/cpython/pull/29901#ref-issue-1199068950
mock raises exception when using a spec with an attribute that raises exception on access #89917 https://github.com/python/cpython/issues/89917
https://github.com/ezio-melotti
ezio-melottihttps://github.com/ezio-melotti
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Jul 13, 2022https://github.com/python/cpython/pull/29901#event-6988865696
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Aug 28, 2022https://github.com/python/cpython/pull/29901#event-7273163120
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Oct 16, 2022 https://github.com/python/cpython/pull/29901#ref-issue-1410290104
unittest.mock.create_autospec() can crash when accessing properties from objects #98301 https://github.com/python/cpython/issues/98301
https://github.com/f0k
f0khttps://github.com/f0k
Feb 22, 2023 https://github.com/python/cpython/pull/29901#ref-issue-1199043536
unittest.mock spec calls class properties #85934 https://github.com/python/cpython/issues/85934
https://github.com/carljm
carljmhttps://github.com/carljm
May 19, 2023https://github.com/python/cpython/pull/29901#issuecomment-1554809137
@rhettingerhttps://github.com/rhettinger
#85934https://github.com/python/cpython/issues/85934
#22209https://github.com/python/cpython/pull/22209
Please reload this pagehttps://github.com/python/cpython/pull/29901
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F29901
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/29901/files/1c545e5fc54391a4c2ca8e6e3747d8f7baf8671c
https://github.com/cjw296
cjw296 https://github.com/cjw296
https://github.com/voidspace
voidspace https://github.com/voidspace
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/29901
https://github.com/sobolevn
https://github.com/hongweipeng
https://github.com/rhettinger
https://github.com/carljm
https://github.com/kumaraditya303
https://github.com/the-knights-who-say-ni
https://github.com/ezio-melotti
https://github.com/bedevere-bot
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.