Title: Generic.__new__ is too slow · Issue #196 · python/typing · GitHub
Open Graph Title: Generic.__new__ is too slow · Issue #196 · python/typing
X Title: Generic.__new__ is too slow · Issue #196 · python/typing
Description: We shouldn't need to slow down the construction of instances of a generic type. Probably GenericMeta can pre-compute next_in_mro and then just set __new__ of the class to that. (Though fixing #192 would make this a little more complicated.)
Open Graph Description: We shouldn't need to slow down the construction of instances of a generic type. Probably GenericMeta can pre-compute next_in_mro and then just set __new__ of the class to that. (Though fixing #192 ...
X Description: We shouldn't need to slow down the construction of instances of a generic type. Probably GenericMeta can pre-compute next_in_mro and then just set __new__ of the class to that. (Though fixing #...
Opengraph URL: https://github.com/python/typing/issues/196
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generic.__new__ is too slow","articleBody":"We shouldn't need to slow down the construction of instances of a generic type.\n\nProbably GenericMeta can pre-compute next_in_mro and then just set `__new__` of the class to that.\n\n(Though fixing #192 would make this a little more complicated.)\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-04-01T13:31:16Z","url":"https://github.com/python/typing/issues/196"}
| 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:168966e7-5c38-cdcd-cf40-54275cdee8f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FD0:1914F5:102D1A4:15065F8:6AFFF6D8 |
| html-safe-nonce | 983329b98d0cab59f9922814dcf8f404083a555709bfe6bad3ad364c955b8d82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkQwOjE5MTRGNToxMDJEMUE0OjE1MDY1Rjg6NkFGRkY2RDgiLCJ2aXNpdG9yX2lkIjoiNzA4MzM5MjAwNzc1MzY5Mjg4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10bf8dd0b8973b3c3148c873b75b284038b19e04fb358db33696910131ec97f8 |
| hovercard-subject-tag | issue:145181303 |
| 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/typing/196/issue_layout |
| twitter:image | https://opengraph.githubassets.com/412fea6181fd8376e77d45da2a86a28c0ede70783381707995f9030c08110314/python/typing/issues/196 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/412fea6181fd8376e77d45da2a86a28c0ede70783381707995f9030c08110314/python/typing/issues/196 |
| og:image:alt | We shouldn't need to slow down the construction of instances of a generic type. Probably GenericMeta can pre-compute next_in_mro and then just set __new__ of the class to that. (Though fixing #192 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width