Title: Modules/_tkinter.c uses legacy macros TCL_WIN_SOCKET, TCL_UNIX_FD from Tcl 7.x · Issue #140001 · python/cpython · GitHub
Open Graph Title: Modules/_tkinter.c uses legacy macros TCL_WIN_SOCKET, TCL_UNIX_FD from Tcl 7.x · Issue #140001 · python/cpython
X Title: Modules/_tkinter.c uses legacy macros TCL_WIN_SOCKET, TCL_UNIX_FD from Tcl 7.x · Issue #140001 · python/cpython
Description: The macro TCL_WIN_SOCKET used in Modules/_tkinter.c is a Tcl 7.x legacy macro that is no longer defined in Tcl ≥ 8.0. As Python now requires Tcl 8.5.12, the code path is now unreachable, and can safely be removed. The macro FHANDLETYPE d...
Open Graph Description: The macro TCL_WIN_SOCKET used in Modules/_tkinter.c is a Tcl 7.x legacy macro that is no longer defined in Tcl ≥ 8.0. As Python now requires Tcl 8.5.12, the code path is now unreachable, and can sa...
X Description: The macro TCL_WIN_SOCKET used in Modules/_tkinter.c is a Tcl 7.x legacy macro that is no longer defined in Tcl ≥ 8.0. As Python now requires Tcl 8.5.12, the code path is now unreachable, and can sa...
Opengraph URL: https://github.com/python/cpython/issues/140001
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modules/_tkinter.c uses legacy macros TCL_WIN_SOCKET, TCL_UNIX_FD from Tcl 7.x","articleBody":"\nThe macro `TCL_WIN_SOCKET` used in `Modules/_tkinter.c` is a Tcl 7.x legacy macro that is no longer defined in Tcl ≥ 8.0.\nAs Python now requires Tcl 8.5.12, the code path is now unreachable, and can safely be removed.\n\nThe macro `FHANDLETYPE` defined in `Modules/_tkinter.c` then always evaluates to `TCL_UNIX_FD`, and can also be removed.\n\nSee https://www.tcl-lang.org/man/tcl7.6/TclLib/GetFile.3.html for a description of these macros in Tcl 7.6.\nThe macros `TCL_WIN_SOCKET` and `TCL_UNIX_FD` were used in Tcl_GetFile, which was removed in Tcl 8.0.\n\nSee `generic/tcl.h` in the Tcl 7.6 source code for the definition of these two macros:\n```\n#define TCL_UNIX_FD\t1\n#define TCL_WIN_SOCKET\t6\n```\nThese macros are not defined in `generic/tcl.h` of Tcl 8.0, or mentioned anywhere else in the Tcl 8.0 source code.\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-139998\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/mdehoon","@type":"Person","name":"mdehoon"},"datePublished":"2025-10-12T15:17:56Z","url":"https://github.com/python/cpython/issues/140001"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c50f631-3160-734c-5683-287ec912bea7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC0A:2C4BED:48B7D25:5C1F099:6B024A56 |
| html-safe-nonce | a822d5ee7e1713cdb9a71e3ce91cdb68ea087e469f327ce4520599a0668fa9c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzBBOjJDNEJFRDo0OEI3RDI1OjVDMUYwOTk6NkIwMjRBNTYiLCJ2aXNpdG9yX2lkIjoiODA5ODMwNDcxNTUxMjc2MDkxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70ea0858b51117c98ffe15e5b89016b7dd76ddbb43712a70d0745cc7f1ac1a5b |
| hovercard-subject-tag | issue:3507358215 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/140001/issue_layout |
| twitter:image | https://opengraph.githubassets.com/931e62dfc14a5e4cafed53111879f12a72002ea513031e013892500aef12b8cc/python/cpython/issues/140001 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/931e62dfc14a5e4cafed53111879f12a72002ea513031e013892500aef12b8cc/python/cpython/issues/140001 |
| og:image:alt | The macro TCL_WIN_SOCKET used in Modules/_tkinter.c is a Tcl 7.x legacy macro that is no longer defined in Tcl ≥ 8.0. As Python now requires Tcl 8.5.12, the code path is now unreachable, and can sa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdehoon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width