René's URL Explorer Experiment


Title: Mark Shannon's presentation at the 2017 Language Summit · Issue #432 · python/typing · GitHub

Open Graph Title: Mark Shannon's presentation at the 2017 Language Summit · Issue #432 · python/typing

X Title: Mark Shannon's presentation at the 2017 Language Summit · Issue #432 · python/typing

Description: @ilevkivskyi @markshannon. Mark observed that the typing module uses classes to represent types. This can be expensive, since e.g. the type List[int] really ought to be the tuple (List, int) but it's actually a class object which has a f...

Open Graph Description: @ilevkivskyi @markshannon. Mark observed that the typing module uses classes to represent types. This can be expensive, since e.g. the type List[int] really ought to be the tuple (List, int) but it...

X Description: @ilevkivskyi @markshannon. Mark observed that the typing module uses classes to represent types. This can be expensive, since e.g. the type List[int] really ought to be the tuple (List, int) but it...

Opengraph URL: https://github.com/python/typing/issues/432

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mark Shannon's presentation at the 2017 Language Summit","articleBody":"@ilevkivskyi @markshannon.\r\n\r\nMark observed that the typing module uses classes to represent types. This can be expensive, since e.g. the type List[int] really ought to be the tuple (List, int) but it's actually a class object which has a fair amount of overhead (though not as much as early versions of typing.py, since we now cache these class objects).\r\n\r\nIf we changed to tuples (or at least objects simpler than class object), we'd have a problem: The simpler object couldn't be subclassed from. But who subclasses List[int]? Then again, maybe simpler objects aren't the point?\r\n\r\nMark also pointed out that after\r\n```python\r\nfrom typing import List\r\nclass C(List[int]): pass\r\nprint(C.__mro__)\r\n```\r\nWe find that `C.__mro__` has 17 items!\r\n\r\nI confirmed this. The roughly equivalent code using collections.abc\r\n```python\r\nfrom collections.abc import MutableMapping\r\nclass C(MutableMapping): pass\r\nprint(C.__mro__)\r\n```\r\nhas only 7 items. And subclassing builtins.list\r\n```python\r\nclass C(list): pass\r\nprint(C.__mro__)\r\n```\r\nhas only three.\r\n\r\nThis affects performance, e.g. which is faster?\r\n```python\r\nclass C(list, Sequence[int]): pass\r\nC().append(1)\r\nclass D(Sequence[int], list): pass\r\nD().append(1)\r\n```\r\nOne append() call is 10% faster than the other.\r\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2017-05-17T23:02:14Z","url":"https://github.com/python/typing/issues/432"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a4d57e62-acf9-7420-12a9-89fd1e8ed4e3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB888:18FDF5:3B4F93:4F9904:6B002908
html-safe-nonce03ae4c34e5659b87a09d51d873b5542fef41cfe2808370565190a6c5e29905c3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODg4OjE4RkRGNTozQjRGOTM6NEY5OTA0OjZCMDAyOTA4IiwidmlzaXRvcl9pZCI6IjY4NzQ3MzAzNTQ2NDE0Nzk5NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac01ea78e7c36ac91d4de0c3de29ef9133245709736b0c3a92444d71d6e6c36e0c
hovercard-subject-tagissue:229511112
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typing/432/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fa3facbffcb08ec8ccfdc1ebd90f34b07c568720450922e9b1f577b12aa46f79/python/typing/issues/432
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fa3facbffcb08ec8ccfdc1ebd90f34b07c568720450922e9b1f577b12aa46f79/python/typing/issues/432
og:image:alt@ilevkivskyi @markshannon. Mark observed that the typing module uses classes to represent types. This can be expensive, since e.g. the type List[int] really ought to be the tuple (List, int) but it...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typing/issues/432#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F432
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F432
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftyping
Reloadhttps://github.com/python/typing/issues/432
Reloadhttps://github.com/python/typing/issues/432
Reloadhttps://github.com/python/typing/issues/432
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
https://github.com/python/typing
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/432
New issuehttps://github.com/login?return_to=https://github.com/python/typing/issues/432
Mark Shannon's presentation at the 2017 Language Summithttps://github.com/python/typing/issues/432#top
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on May 17, 2017https://github.com/python/typing/issues/432#issue-229511112
@ilevkivskyihttps://github.com/ilevkivskyi
@markshannonhttps://github.com/markshannon
Nexthttps://github.com/python/typing/issues/432?timeline_page=1
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302470461
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302471859
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302481733
https://github.com/markshannon
markshannonhttps://github.com/markshannon
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302490277
Zuliphttps://github.com/zulip/zulip
https://lgtm.com/query/1957210066/project:140750185/lang:python/https://lgtm.com/query/1957210066/project:140750185/lang:python/
https://github.com/dmoisset
dmoissethttps://github.com/dmoisset
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302491775
https://github.com/markshannon
markshannonhttps://github.com/markshannon
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302502170
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302514654
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302524606
https://github.com/markshannon
markshannonhttps://github.com/markshannon
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302527835
@JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/markshannon
markshannonhttps://github.com/markshannon
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302530795
@JukkaLhttps://github.com/JukkaL
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302537442
@markshannonhttps://github.com/markshannon
@gvanrossumhttps://github.com/gvanrossum
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302562112
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on May 18, 2017https://github.com/python/typing/issues/432#issuecomment-302564027
https://github.com/markshannon
markshannonhttps://github.com/markshannon
on May 19, 2017https://github.com/python/typing/issues/432#issuecomment-302574655
@gvanrossumhttps://github.com/gvanrossum
@JukkaLhttps://github.com/JukkaL
@ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on May 19, 2017https://github.com/python/typing/issues/432#issuecomment-302623031
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316373457
@gvanrossumhttps://github.com/gvanrossum
@ncoghlanhttps://github.com/ncoghlan
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316383257
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316389571
@ncoghlanhttps://github.com/ncoghlan
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316402803
hackhttp://bugs.python.org/issue28339
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316405157
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316410978
@ncoghlanhttps://github.com/ncoghlan
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316431488
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316497853
@gvanrossumhttps://github.com/gvanrossum
Reference implementation of __class_getitem__ and __mro_entries__ ilevkivskyi/cpython#2https://github.com/ilevkivskyi/cpython/pull/2
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316508554
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 19, 2017https://github.com/python/typing/issues/432#issuecomment-316510720
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
on Jul 20, 2017https://github.com/python/typing/issues/432#issuecomment-316582380
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jul 20, 2017https://github.com/python/typing/issues/432#issuecomment-316703852
@ncoghlanhttps://github.com/ncoghlan
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
on Jul 20, 2017https://github.com/python/typing/issues/432#issuecomment-316706377
@ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jun 4, 2018https://github.com/python/typing/issues/432#issuecomment-394316328
ilevkivskyihttps://github.com/ilevkivskyi
completedhttps://github.com/python/typing/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 4, 2018https://github.com/python/typing/issues/432#event-1661006154
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typing/issues/432
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typing/issues/432
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.