René's URL Explorer Experiment


Title: stack_data, executing, and pure_eval · Issue #748 · getsentry/sentry-python · GitHub

Open Graph Title: stack_data, executing, and pure_eval · Issue #748 · getsentry/sentry-python

X Title: stack_data, executing, and pure_eval · Issue #748 · getsentry/sentry-python

Description: Hi! I've recently created a few libraries that are helpful for extracting information from frames and tracebacks, and I think they could be very useful to sentry. executing can identify the exact AST node being executed by a frame in man...

Open Graph Description: Hi! I've recently created a few libraries that are helpful for extracting information from frames and tracebacks, and I think they could be very useful to sentry. executing can identify the exact A...

X Description: Hi! I've recently created a few libraries that are helpful for extracting information from frames and tracebacks, and I think they could be very useful to sentry. executing can identify the exa...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/748

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stack_data, executing, and pure_eval","articleBody":"Hi! I've recently created a few libraries that are helpful for extracting information from frames and tracebacks, and I think they could be very useful to sentry.\r\n\r\n- [`executing`](https://github.com/alexmojaki/executing) can identify the exact AST node being executed by a frame in many cases. It's always disappointed me that Python only points to a line in each frame in tracebacks, especially when the expression/statement at fault spans many lines. Sometimes it can be really hard to interpret. Currently [executing is used in IPython](https://github.com/ipython/ipython/pull/12150) (in master, unreleased) to highlight the node, here's what it looks like:\r\n\r\n![ipython](https://user-images.githubusercontent.com/3627481/75476425-3e6b9280-59a3-11ea-9b6c-b9e099475a45.png)\r\n\r\n- `executing` can also infer a function `__qualname__` from a code object, meaning your traceback can say `lorem/ipsum.py in MyClass.__init__ at line 123` instead of just `__init__`, which is much more informative.\r\n- [`pure_eval`](https://github.com/alexmojaki/pure_eval) can safely evaluate certain AST nodes without side effects, so that if the source for a frame contains expressions like `self.foo` and `bar[key]` their values can often be shown alongside plain variables.\r\n- [`stack_data`](https://github.com/alexmojaki/stack_data) collects data from tracebacks for the purpose of formatting and displaying them. It uses `executing` and `pure_eval` and also provides a lot of functionality of its own. For example, in this frame:\r\n\r\n![Screen Shot 2020-06-27 at 19 57 57](https://user-images.githubusercontent.com/3627481/85928853-94e4d100-b8b0-11ea-93e9-3eb8915e333b.png)\r\n\r\nthere are lines from `complex_filter` which the user doesn't need to see, and `stack_data` knows how to filter those out by only collecting lines which belong in the current scope. [I integrated`stack_data` into IPython](https://github.com/ipython/ipython/pull/11886) which allowed removing a lot of flaky custom introspection code, fixing several bugs and making the code more maintainable.\r\n- `stack_data` identifies the locations of variables and evaluated expressions in the source lines. An intelligent UI could use this, for example, to allow the user to hover over a variable in source code to see its value rather than scroll through a list to find it.\r\n\r\nOverall there are lots of possibilities. What would interest you? I'm willing to make a PR and make any necessary changes to the libraries.","author":{"url":"https://github.com/alexmojaki","@type":"Person","name":"alexmojaki"},"datePublished":"2020-06-27T18:14:53Z","url":"https://github.com/getsentry/sentry-python/issues/748"}

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:6cf5b4b0-bfe2-2ca1-5503-85ee81d0bfdc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC624:12285C:555353:728304:6B00912B
html-safe-nonceee6aeff61fc7f24a97d4824f529a34fa44b029b46522f4243f851ee0ffa2830f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjI0OjEyMjg1Qzo1NTUzNTM6NzI4MzA0OjZCMDA5MTJCIiwidmlzaXRvcl9pZCI6IjIxNTgxMTc5MTE1MTA2ODM5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac72078b2d255161542a1f803d73ba8590182a15d4540b07e528ad9caaf1af007a
hovercard-subject-tagissue:646729023
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/getsentry/sentry-python/748/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2dfd6feb61f103f50247b72c91ccc86024f01989e780be93f6346c8b73f1984c/getsentry/sentry-python/issues/748
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2dfd6feb61f103f50247b72c91ccc86024f01989e780be93f6346c8b73f1984c/getsentry/sentry-python/issues/748
og:image:altHi! I've recently created a few libraries that are helpful for extracting information from frames and tracebacks, and I think they could be very useful to sentry. executing can identify the exact A...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexmojaki
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
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
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/748#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F748
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%2Fgetsentry%2Fsentry-python%2Fissues%2F748
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=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/748
Reloadhttps://github.com/getsentry/sentry-python/issues/748
Reloadhttps://github.com/getsentry/sentry-python/issues/748
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests41 (41)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/748
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/748
stack_data, executing, and pure_evalhttps://github.com/getsentry/sentry-python/issues/748#top
https://github.com/alexmojaki
alexmojakihttps://github.com/alexmojaki
on Jun 27, 2020https://github.com/getsentry/sentry-python/issues/748#issue-646729023
executinghttps://github.com/alexmojaki/executing
executing is used in IPythonhttps://github.com/ipython/ipython/pull/12150
https://user-images.githubusercontent.com/3627481/75476425-3e6b9280-59a3-11ea-9b6c-b9e099475a45.png
pure_evalhttps://github.com/alexmojaki/pure_eval
stack_datahttps://github.com/alexmojaki/stack_data
https://user-images.githubusercontent.com/3627481/85928853-94e4d100-b8b0-11ea-93e9-3eb8915e333b.png
I integratedstack_data into IPythonhttps://github.com/ipython/ipython/pull/11886
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jun 28, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-650780686
@alexmojakihttps://github.com/alexmojaki
https://github.com/alexmojaki
alexmojakihttps://github.com/alexmojaki
on Jun 28, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-650819651
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jul 9, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-656202834
#749https://github.com/getsentry/sentry-python/pull/749
untitakerhttps://github.com/untitaker
enhancementhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Jul 13, 2020https://github.com/getsentry/sentry-python/issues/748#event-3539124539
untitakerhttps://github.com/untitaker
on Jul 13, 2020https://github.com/getsentry/sentry-python/issues/748#event-3539143243
Use executing to infer code qualname (#749)https://github.com/getsentry/sentry-python/commit/5c34ead273b7c0467142200eb7a32b116c4c2a32
#749https://github.com/getsentry/sentry-python/pull/749
5c34eadhttps://github.com/getsentry/sentry-python/commit/5c34ead273b7c0467142200eb7a32b116c4c2a32
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jul 15, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-658689334
@alexmojakihttps://github.com/alexmojaki
https://github.com/alexmojaki
alexmojakihttps://github.com/alexmojaki
on Jul 15, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-658690206
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jul 15, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-658690697
https://github.com/alexmojaki
alexmojakihttps://github.com/alexmojaki
on Jul 18, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-660471520
untitakerhttps://github.com/untitaker
on Jul 19, 2020https://github.com/getsentry/sentry-python/issues/748#event-3562474953
Add setup.py extra for pure_eval (#763)https://github.com/getsentry/sentry-python/commit/b117955792a6d017355febb5b646f2d65e1b1d13
#763https://github.com/getsentry/sentry-python/pull/763
b117955https://github.com/getsentry/sentry-python/commit/b117955792a6d017355febb5b646f2d65e1b1d13
https://github.com/untitaker
untitakerhttps://github.com/untitaker
on Jul 19, 2020https://github.com/getsentry/sentry-python/issues/748#issuecomment-660632608
untitakerhttps://github.com/untitaker
on Jul 22, 2020https://github.com/getsentry/sentry-python/issues/748#event-3575886156
Add page for pure_eval integration (#1907)https://github.com/getsentry/sentry-docs/commit/6067f53249dee1ae3a758b93cd9d9c961ec4e28a
#1907https://github.com/getsentry/sentry-docs/pull/1907
6067f53https://github.com/getsentry/sentry-docs/commit/6067f53249dee1ae3a758b93cd9d9c961ec4e28a
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Dec 23, 2021https://github.com/getsentry/sentry-python/issues/748#issuecomment-1000367513
github-actionshttps://github.com/apps/github-actions
Status: Stalehttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Dec 23, 2021https://github.com/getsentry/sentry-python/issues/748#event-5810423472
github-actionshttps://github.com/apps/github-actions
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 30, 2021https://github.com/getsentry/sentry-python/issues/748#event-5828332816
sl0thentr0pyhttps://github.com/sl0thentr0py
on Jan 21, 2022https://github.com/getsentry/sentry-python/issues/748#event-5932425576
sl0thentr0pyhttps://github.com/sl0thentr0py
Status: Backloghttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
Status: Stalehttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Status%3A%20Stale%22
on Jan 21, 2022https://github.com/getsentry/sentry-python/issues/748#event-5932439835
sl0thentr0pyhttps://github.com/sl0thentr0py
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 21, 2022https://github.com/getsentry/sentry-python/issues/748#event-5932521937
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/748
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/748
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.