René's URL Explorer Experiment


Title: Document sys.exc_info behaviour difference · Issue #594 · PythonCharmers/python-future · GitHub

Open Graph Title: Document sys.exc_info behaviour difference · Issue #594 · PythonCharmers/python-future

X Title: Document sys.exc_info behaviour difference · Issue #594 · PythonCharmers/python-future

Description: Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.

Open Graph Description: Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.

X Description: Easy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.

Opengraph URL: https://github.com/PythonCharmers/python-future

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document sys.exc_info behaviour difference","articleBody":"The following snippet produces different output between python 2 & 3\r\n\r\n```python\r\n# exc_info_test.py\r\nimport sys\r\n\r\ndef f():\r\n    try:\r\n        raise RuntimeError()\r\n    except Exception as e:\r\n        print(\"f:\", sys.exc_info())\r\n    g()\r\n\r\ndef g():\r\n    print(\"g:\", sys.exc_info())\r\n\r\nf()\r\n```\r\n\r\nOutput\r\n```bash\r\n> python2 exc_info_test.py\r\n('f:', (\u003ctype 'exceptions.RuntimeError'>, RuntimeError(), \u003ctraceback object at 0x7f99aa4ccd70>))\r\n('g:', (\u003ctype 'exceptions.RuntimeError'>, RuntimeError(), \u003ctraceback object at 0x7f99aa4ccd70>))\r\n\r\n> python3 exc_info_test.py\r\nf: (\u003cclass 'RuntimeError'>, RuntimeError(), \u003ctraceback object at 0x7fc14fb67d00>)\r\ng: (None, None, None)\r\n```\r\n\r\nThough the behaviour difference is documented, it is too subtle to notice the difference\r\n\r\nhttps://docs.python.org/2/library/sys.html\r\n> Here, “handling an exception” is defined as “executing or having executed an except clause.” For any stack frame, only information about the most recently handled exception is accessible.\r\n\r\nhttps://docs.python.org/3/library/sys.html\r\n> Here, “handling an exception” is defined as “executing an except clause.” For any stack frame, only information about the exception being currently handled is accessible.\r\n\r\nTo make the difference highlighted, I suggest to document the `sys.exc_info` behaviour difference in [Cheat Sheets](http://python-future.org/compatible_idioms.html) or in an appropriate page.","author":{"url":"https://github.com/sivachandran","@type":"Person","name":"sivachandran"},"datePublished":"2021-09-15T08:40:56Z","url":"https://github.com/PythonCharmers/python-future/issues/594"}

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/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:437baba7-59b4-cbaa-81ad-a113f846a7c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFAC:D405E:2D404CD:3AD0CA7:6B041644
html-safe-nonceb8ab45a402247d2ac7a716f1662496f4450439a83c5435cb0bd1b6ee3410f70b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkFDOkQ0MDVFOjJENDA0Q0Q6M0FEMENBNzo2QjA0MTY0NCIsInZpc2l0b3JfaWQiOiI3NTI5NjMwMzM5NDg1MTQ0NjQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfdacd2731057aeed03e6be5ff427d73d1ba5dff2106a908c179fd5fb6b7f2ed8
hovercard-subject-tagrepository:11403699
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PythonCharmers/python-future/issues/594
twitter:imagehttps://opengraph.githubassets.com/ea9840493f00493b0ddcb319049cfd79dd9139d2b4352bbf4a48e00afcda75d2/PythonCharmers/python-future
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ea9840493f00493b0ddcb319049cfd79dd9139d2b4352bbf4a48e00afcda75d2/PythonCharmers/python-future
og:image:altEasy, clean, reliable Python 2/3 compatibility. Contribute to PythonCharmers/python-future development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git
octolytics-dimension-user_id3365815
octolytics-dimension-user_loginPythonCharmers
octolytics-dimension-repository_id11403699
octolytics-dimension-repository_nwoPythonCharmers/python-future
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id11403699
octolytics-dimension-repository_network_root_nwoPythonCharmers/python-future
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PythonCharmers/python-future/issues/594#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonCharmers%2Fpython-future%2Fissues%2F594
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%2FPythonCharmers%2Fpython-future%2Fissues%2F594
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=PythonCharmers%2Fpython-future
Reloadhttps://github.com/PythonCharmers/python-future/issues/594
Reloadhttps://github.com/PythonCharmers/python-future/issues/594
Reloadhttps://github.com/PythonCharmers/python-future/issues/594
https://github.com/PythonCharmers/python-future
New issuehttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/594
New issuehttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/594
Document sys.exc_info behaviour differencehttps://github.com/PythonCharmers/python-future/issues/594#top
https://github.com/sivachandran
sivachandranhttps://github.com/sivachandran
on Sep 15, 2021https://github.com/PythonCharmers/python-future/issues/594#issue-996812714
https://docs.python.org/2/library/sys.htmlhttps://docs.python.org/2/library/sys.html
https://docs.python.org/3/library/sys.htmlhttps://docs.python.org/3/library/sys.html
Cheat Sheetshttp://python-future.org/compatible_idioms.html
Sign up for freehttps://github.com/signup?return_to=https://github.com/PythonCharmers/python-future/issues/594
Sign in to commenthttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/594
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.