Title: bpo-29400: sys.settracestate. by gwk · Pull Request #3236 · python/cpython · GitHub
Open Graph Title: bpo-29400: sys.settracestate. by gwk · Pull Request #3236 · python/cpython
X Title: bpo-29400: sys.settracestate. by gwk · Pull Request #3236 · python/cpython
Description: This patch adds a new pair of functions to sys: settracestate and gettracestate. The old settrace/gettrace pair are now equivalent to calling settracestate with trace_instructions=False; when set to True, the tracer callback is called for every bytecode instruction. This is useful for observing and instrumenting bytecode, e.g. for intraline code coverage. gettracestate returns a dictionary that completely represents the tracing state. The old gettrace now raises an exception if trace_instructions=True, because it is no longer capturing the complete state. This guards against subtle failure for existing code that uses the old = gettrace(); ... ; settrace(old) idiom. https://bugs.python.org/issue29400
Open Graph Description: This patch adds a new pair of functions to sys: settracestate and gettracestate. The old settrace/gettrace pair are now equivalent to calling settracestate with trace_instructions=False; when set t...
X Description: This patch adds a new pair of functions to sys: settracestate and gettracestate. The old settrace/gettrace pair are now equivalent to calling settracestate with trace_instructions=False; when set t...
Opengraph URL: https://github.com/python/cpython/pull/3236
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c613005a-fe4d-4f70-617c-b1a1e7791dbb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A778:2C9FC7:1BC14C2:25343FC:6A536865 |
| html-safe-nonce | 52c95698c6c3346076a5a366118cf5ab4c1be0d48cabe5c279800d78558ac87f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzc4OjJDOUZDNzoxQkMxNEMyOjI1MzQzRkM6NkE1MzY4NjUiLCJ2aXNpdG9yX2lkIjoiMjk0Njk5NjE1ODQ0MTE1NDY2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca451183a519f1ef8c1ed7e588a02c20e7ef2847d7d5a2e212023e9ec32cfe61 |
| hovercard-subject-tag | pull_request:138216705 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/3236/files |
| twitter:image | https://avatars.githubusercontent.com/u/406380?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/406380?s=400&v=4 |
| og:image:alt | This patch adds a new pair of functions to sys: settracestate and gettracestate. The old settrace/gettrace pair are now equivalent to calling settracestate with trace_instructions=False; when set t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width