Title: bpo-43950: ensure source_line is present when specializing the traceback by isidentical · Pull Request #27313 · python/cpython · GitHub
Open Graph Title: bpo-43950: ensure source_line is present when specializing the traceback by isidentical · Pull Request #27313 · python/cpython
X Title: bpo-43950: ensure source_line is present when specializing the traceback by isidentical · Pull Request #27313 · python/cpython
Description: There seems to be different cases where the _PyDisplay_Line() function returns 0 without displaying the actual line but also without having any errors raised. cpython/Python/traceback.c Lines 414 to 420 in 4512848 /* use the right encoding to decode the file as unicode */ fd = PyObject_AsFileDescriptor(binary); if (fd < 0) { Py_DECREF(io); Py_DECREF(binary); return 0; } cpython/Python/traceback.c Lines 436 to 446 in 4512848 if (fob == NULL) { PyErr_Clear(); res = _PyObject_CallMethodIdNoArgs(binary, &PyId_close); Py_DECREF(binary); if (res) Py_DECREF(res); else PyErr_Clear(); return 0; } This patch ensures that the line is retrieved and displayed. https://bugs.python.org/issue43950
Open Graph Description: There seems to be different cases where the _PyDisplay_Line() function returns 0 without displaying the actual line but also without having any errors raised. cpython/Python/tracebac...
X Description: There seems to be different cases where the _PyDisplay_Line() function returns 0 without displaying the actual line but also without having any errors raised. cpython/Python/tracebac...
Opengraph URL: https://github.com/python/cpython/pull/27313
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:143a5c52-1791-aa5d-53b9-70b3700da2db |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AB40:27E9DD:B89779:103028C:696A29B7 |
| html-safe-nonce | 3011adc44247d35476fa84e080d32ee91527c56309c33f19c55a3f331f056fe7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjQwOjI3RTlERDpCODk3Nzk6MTAzMDI4Qzo2OTZBMjlCNyIsInZpc2l0b3JfaWQiOiIyNDQxMDMwMzM2NDM5MjY1NzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e6faf9389ceb5e554d03f630e505fff437d14e8e25aa6c05a32eca7498e376aa |
| hovercard-subject-tag | pull_request:696156423 |
| 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/27313/files |
| twitter:image | https://avatars.githubusercontent.com/u/47358913?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/47358913?s=400&v=4 |
| og:image:alt | There seems to be different cases where the _PyDisplay_Line() function returns 0 without displaying the actual line but also without having any errors raised. cpython/Python/tracebac... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| 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 | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width