|
Meta tags:
description=Modules/_tkinter.c always defines TCL_THREADS:
/* If Tcl is compiled for threads, we must also define TCL_THREAD. We define
it always; if Tcl is not threaded, the thread functions in
Tcl are empty. */
#define TCL_THREADS
But in two places in Modules/_tkinter.c, we check if TCL_THREADS is defined.
#ifdef TCL_THREADS
static Tcl_ThreadDataKey state_key;
typedef PyThreadState *ThreadSpecificData;
#define tcl_tstate \
(*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*)))
#else
static PyThreadState *tcl_tstate = NULL;
#endif
and
#ifndef TCL_THREADS
if (v- threaded)
PyErr_SetString(PyExc_RuntimeError,
Tcl is threaded but _tkinter is not );
Py_DECREF(v);
return 0;
#endif
This PR is a minimal patch that removes the dead code, updates one comment, and fixes one typo in a comment.
Issue: gh-140494;
Headings (most frequently used words):
navigation, uh, oh, gh, 140494, remove, dead, code, ifndef, tcl_threads, which, is, always, defined, 152841, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
github (16), and (14), the (13), for (12), this (11), applied (11), code (11), file (11), tcl (11), all (8), reload (8), tcl_threads (8), #define (8), you (7), suggestion (7), cannot (7), suggestions (7), sign (7), while (6), line (6), loading (6), expand (6), threaded (6), that (5), security (5), changes (5), ifndef (5), always (5), commits (5), your (5), can (4), not (4), please (4), pull (4), there (4), pythreadstate (4), threads (4), diff (4), show (4), files (4), mdehoon (4), 140494 (4), remove (4), dead (4), which (4), defined (4), support (4), copilot (4), community (3), navigation (3), 2026 (3), request (3), merge (3), comments (3), from (3), must (3), add (3), batch (3), single (3), commit (3), closed (3), was (3), error (3), page (3), retry (3), down (3), tcl_lock (3), static (3), tcl_tstate (3), may (3), compiled (3), size_t (3), hidden (3), characters (3), unicode (3), open (3), learn (3), about (3), view (3), whitespace (3), filter (3), 152841 (3), python (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), change (2), one (2), viewing (2), toggle (2), endif (2), _tkinter (2), null (2), const (2), char (2), state_key (2), dispatch (2), different (2), use (2), tls (2), api (2), sufficient (2), since (2), multiple (2), interpreters (2), simultaneously (2), 283 (2), are (2), also (2), size (2), elemsize (2), number (2), bidirectional (2), what (2), review (2), more (2), selected (2), apply (2), hide (2), split (2), unified (2), failed (2), load (2), jump (2), extension (2), jul (2), main (2), into (2), tkinter_remove_dead_code (2), select (2), issue (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, inc, right, now, check, back, later, queued, multi, pending, reviews, has, been, marked, resolved, outdated, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, invalid, because, were, made, annotations, notes, oops, something, went, wrong, pythread_free_lock, don, need, lock, return, py_decref, but, pyerr_setstring, pyexc_runtimeerror, trace, dispatching, 652, 647, tkapp_new, screenname, classname, tstate, pythreadstate_get, enter_tcl, else, tcl_getthreaddata, sizeof, tcl_threaddatakey, ifdef, pythread_type_lock, anymore, addition, global, won, command, invocation, will, block, tkinter_tkinit, tcl_interp, interp, empty, thread, functions, tcl_thread, py_min, int_max, uint_max, check_size, copyright, 1994, steen, lumholt, original, contains, text, interpreted, differently, than, appears, below, editor, reveals, desktop, delete, edit, modules, additions, deletions, conversations, clear, filters, viewed, type, nbsp, branch, 026c331, 54e5fad, hold, shift, click, range, changed, checks, conversation, wants, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|