Title: Add support of SimpleNamespace in copy.replace() · Issue #109174 · python/cpython · GitHub
Open Graph Title: Add support of SimpleNamespace in copy.replace() · Issue #109174 · python/cpython
X Title: Add support of SimpleNamespace in copy.replace() · Issue #109174 · python/cpython
Description: Feature or enhancement SimpleNamespace is used as a simple data record type, a simpler alternative to named tuples and dataclasses. Although it is easy to create a copy of a SimpleNamespace instance with modified attributes (SimpleNamesp...
Open Graph Description: Feature or enhancement SimpleNamespace is used as a simple data record type, a simpler alternative to named tuples and dataclasses. Although it is easy to create a copy of a SimpleNamespace instanc...
X Description: Feature or enhancement SimpleNamespace is used as a simple data record type, a simpler alternative to named tuples and dataclasses. Although it is easy to create a copy of a SimpleNamespace instanc...
Opengraph URL: https://github.com/python/cpython/issues/109174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support of SimpleNamespace in copy.replace()","articleBody":"# Feature or enhancement\n\nSimpleNamespace is used as a simple data record type, a simpler alternative to named tuples and dataclasses. Although it is easy to create a copy of a SimpleNamespace instance with modified attributes (`SimpleNamespace(**vars(ns), attr=newvalue)`), it would be convenient if SimpleNamespace be supported in `copy.replace()` which already supports named tuples and dataclasses.\n\nhttps://github.com/python/cpython/issues/108751\nhttps://discuss.python.org/t/generalize-replace-function/28511\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-109175\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2023-09-09T06:03:45Z","url":"https://github.com/python/cpython/issues/109174"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:9f3484b3-3f5c-7950-c654-bddd2e12e367 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED7E:44D65:DF13F9:12B8F6B:6B00588F |
| html-safe-nonce | c102f4d002d495af462abb8646b9a2e1a573d54905bc9fe72563de730fa39eea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDdFOjQ0RDY1OkRGMTNGOToxMkI4RjZCOjZCMDA1ODhGIiwidmlzaXRvcl9pZCI6IjE2NDkwMzg0ODczNDI1Njk2MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a4f7cca91984009be1a9736e3a017d4337c28d2bc52a62b532065e79636c2d1c |
| hovercard-subject-tag | issue:1888594049 |
| 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/109174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab48a70ec84a81d307f77c400d0c036864d2e46373da8bf4dd6e8aedcbb179c3/python/cpython/issues/109174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab48a70ec84a81d307f77c400d0c036864d2e46373da8bf4dd6e8aedcbb179c3/python/cpython/issues/109174 |
| og:image:alt | Feature or enhancement SimpleNamespace is used as a simple data record type, a simpler alternative to named tuples and dataclasses. Although it is easy to create a copy of a SimpleNamespace instanc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width