|
Meta tags:
description=On Windows, EventHook in _tkinter.c will hang on Windows if Python is run with stdin redirected to a pipe. The reason is that on Windows, EventHook checks for data availability on stdin by calling _kbhit, which reports if a key was hit on the keyboard. With this patch, EventHook first checks whether stdin is a console or a pipe, and then calls either _kbhit or PeekNamedPipe, respectively, to establish if input is available on stdin.
Issue: gh-140146;
Headings (most frequently used words):
uh, oh, for, navigation, gh, 140146, fix, stdin, redirection, to, pipe, with, interactive, tkinter, on, windows, 148819, footer, diff, view, menu, repository, there, are, no, files, selected, viewing, filter, by, extension,
Text of the page (most frequently used words):
file (25), stdin (20), stdout (20), proc (19), this (17), github (16), for (16), 2026 (15), and (14), line (12), applied (11), the (11), write (11), #mdehoon (11), while (10), reload (10), pipe (10), subprocess (10), that (9), all (9), show (9), hidden (9), characters (9), unicode (9), tkinter (9), test (9), loading (8), diff (8), windows (8), 140146 (8), support (8), you (7), suggestion (7), cannot (7), suggestions (7), code (7), changes (7), ms_windows (7), open (7), issue (7), jun (7), sign (7), please (6), from (6), add (6), there (6), number (6), bidirectional (6), self (6), hello (6), import (6), test_tkinter_pipe (6), security (5), comments (5), was (5), error (5), page (5), else (5), type (5), stdin_ready (5), int (5), static (5), learn (5), about (5), view (5), interactive (5), next (5), print (5), lib (5), test_tkinter (5), commits (5), with (5), your (5), can (4), pull (4), change (4), endif (4), break (4), hstdin (4), null (4), ifdef (4), void (4), tfile (4), ifndef (4), what (4), review (4), more (4), _tkinter (4), session (4), misc (4), news (4), rst (4), unittest (4), assertequal (4), goodbye (4), decode (4), stderr (4), args (4), files (4), update (4), fix (4), copilot (4), community (3), navigation (3), request (3), resolved (3), batch (3), commit (3), one (3), retry (3), expand (3), available (3), original (3), contains (3), text (3), may (3), interpreted (3), compiled (3), differently (3), than (3), appears (3), below (3), editor (3), reveals (3), desktop (3), delete (3), edit (3), modules (3), additions (3), deletions (3), cpython (3), tacuha (3), main (3), strip (3), sys (3), split (3), hide (3), whitespace (3), nbsp (3), filter (3), apr (3), 148819 (3), redirection (3), merged (3), python (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), not (2), contact (2), status (2), privacy (2), terms (2), footer (2), merge (2), marked (2), single (2), viewing (2), toggle (2), file_type_disk (2), dword (2), conversation (2), serhiy (2), storchaka (2), _kbhit (2), myfileproc (2), errorincmd (2), event_tstate (2), 3465 (2), 3443 (2), communicate (2), timeout (2), short_timeout (2), quit (2), again (2), readline (2), flush (2), interpreter (2), tcl (2), popen (2), executable (2), def (2), selected (2), apply (2), unified (2), failed (2), load (2), jump (2), extension (2), into (2), issue140146_fix_for_windows_pipe (2), select (2), tree (2), insights (2), projects (2), actions (2), repository (2), signed (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, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, oops, something, went, wrong, down, getlasterror, error_broken_pipe, peeknamedpipe, comment, thread, file_type_pipe, file_type_char, result, py_intptr_t, tcl_createfilehandler, tcl_readable, fileno, getfiletype, getstdhandle, std_input_handle, pyeval_restorethread, handle, eventhook, pythreadstate, clientdata, mask, wait_for_stdin, pymethoddef, modulemethods, script, example, part, suite, helpful, testing, usage, prevent, mod, hanging, redirected, __name__, __main__, test_tkinter_pipe_unbuffered, test_tkinter_pipe_buffered, class, tkinterpipetest, testcase, skipunless, has_subprocess_support, requires, are, conversations, clear, filters, viewed, types, ab8a136, 475b737, e71f6ba, arm, b524821, remove, 5bc255b, branch, 004b0cd, ea84b7b, blurb, 00962ca, cdec347, hold, shift, click, range, changed, checks, 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, 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,
|