Title: Add the @cached_property decorator · Issue #65344 · python/cpython · GitHub
Open Graph Title: Add the @cached_property decorator · Issue #65344 · python/cpython
X Title: Add the @cached_property decorator · Issue #65344 · python/cpython
Description: BPO 21145 Nosy @rhettinger, @ncoghlan, @pitrou, @vstinner, @carljm, @merwok, @alex, @bitdancer, @serhiy-storchaka, @thedrow, @sir-sigurd PRs #6982 Files cached_property.diff: diff to add cached_property decorator, with tests and docscach...
Open Graph Description: BPO 21145 Nosy @rhettinger, @ncoghlan, @pitrou, @vstinner, @carljm, @merwok, @alex, @bitdancer, @serhiy-storchaka, @thedrow, @sir-sigurd PRs #6982 Files cached_property.diff: diff to add cached_pro...
X Description: BPO 21145 Nosy @rhettinger, @ncoghlan, @pitrou, @vstinner, @carljm, @merwok, @alex, @bitdancer, @serhiy-storchaka, @thedrow, @sir-sigurd PRs #6982 Files cached_property.diff: diff to add cached_pro...
Opengraph URL: https://github.com/python/cpython/issues/65344
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add the @cached_property decorator","articleBody":"BPO | [21145](https://bugs.python.org/issue21145)\n--- | :---\nNosy | @rhettinger, @ncoghlan, @pitrou, @vstinner, @carljm, @merwok, @alex, @bitdancer, @serhiy-storchaka, @thedrow, @sir-sigurd\nPRs | \u003cli\u003epython/cpython#6982\u003c/li\u003e\nFiles | \u003cli\u003e[cached_property.diff](https://bugs.python.org/file45431/cached_property.diff \"Uploaded as text/plain at 2016-11-10.21:17:19 by @carljm\"): diff to add cached_property decorator, with tests and docs\u003c/li\u003e\u003cli\u003e[cached_property.diff](https://bugs.python.org/file45450/cached_property.diff \"Uploaded as text/plain at 2016-11-11.20:18:42 by @carljm\"): same as previous, with doc note and better error message for object with __slots__\u003c/li\u003e\u003cli\u003e[cached_property.diff](https://bugs.python.org/file45452/cached_property.diff \"Uploaded as text/plain at 2016-11-11.21:52:11 by @carljm\"): same as previous, but thread-safe\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2018-08-30.14:04:19.713\u003e\ncreated_at = \u003cDate 2014-04-03.10:28:52.512\u003e\nlabels = ['3.8', 'type-feature', 'library']\ntitle = 'Add the @cached_property decorator'\nupdated_at = \u003cDate 2018-10-25.21:06:57.823\u003e\nuser = 'https://github.com/thedrow'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2018-10-25.21:06:57.823\u003e\nactor = 'vstinner'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2018-08-30.14:04:19.713\u003e\ncloser = 'ncoghlan'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2014-04-03.10:28:52.512\u003e\ncreator = 'Omer.Katz'\ndependencies = []\nfiles = ['45431', '45450', '45452']\nhgrepos = []\nissue_num = 21145\nkeywords = ['patch']\nmessage_count = 45.0\nmessages = ['215439', '215488', '215564', '215654', '215655', '218750', '218760', '218761', '218762', '260308', '260312', '260319', '260321', '260322', '260323', '260324', '260326', '280534', '280541', '280542', '280547', '280597', '280601', '280602', '280608', '280609', '280610', '280615', '280616', '280655', '280657', '316535', '316643', '316745', '316760', '316851', '317096', '317097', '317100', '317101', '317103', '324212', '324383', '324386', '328493']\nnosy_count = 13.0\nnosy_names = ['rhettinger', 'ncoghlan', 'pitrou', 'vstinner', 'carljm', 'pydanny', 'eric.araujo', 'alex', 'r.david.murray', 'serhiy.storchaka', 'madison.may', 'Omer.Katz', 'sir-sigurd']\npr_nums = ['6982']\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'enhancement'\nurl = 'https://bugs.python.org/issue21145'\nversions = ['Python 3.8']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/thedrow","@type":"Person","name":"thedrow"},"datePublished":"2014-04-03T10:28:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":45},"url":"https://github.com/65344/cpython/issues/65344"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ddd997ca-03e0-61a1-f6f1-b176bb04d8e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D33E:25572C:264EBA6:3473B55:6A4ED63D |
| html-safe-nonce | 927cee62e976ad8092c5d74c5119c2e9681d2e24705d3caa115137ce806d72a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzNFOjI1NTcyQzoyNjRFQkE2OjM0NzNCNTU6NkE0RUQ2M0QiLCJ2aXNpdG9yX2lkIjoiMTUzNDU5MzU2NDY5NjA0MTAyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aeca69a1dd4619f37ad95299b1454feb5ca27245dc3f1292b3d757e4baabc347 |
| hovercard-subject-tag | issue:1198918618 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/65344/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09ae6b42c78f503af84157d896482749db1f814443d49c0cb54de707ea80bb83/python/cpython/issues/65344 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09ae6b42c78f503af84157d896482749db1f814443d49c0cb54de707ea80bb83/python/cpython/issues/65344 |
| og:image:alt | BPO 21145 Nosy @rhettinger, @ncoghlan, @pitrou, @vstinner, @carljm, @merwok, @alex, @bitdancer, @serhiy-storchaka, @thedrow, @sir-sigurd PRs #6982 Files cached_property.diff: diff to add cached_pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thedrow |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c37fe3e3f5f306900bd5b6bee97463f66c938b2c |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width