|
Meta tags:
description=(cherry picked from commit b9bb748)
Co-authored-by: Hai Shi shihai1992@gmail.com
Note: this is a little different from 3.10 and 3.11 because in 3.10+ _Py_IsMainInterpreter takes PyInterpreterState instead of the entire PyThreadState as an argument (see GH-24577 for that).
Also, the new test uses PyModule_AddObjectRef which was only added in Python 3.10 (see GH-23122). I replaced this usage with the old PyModule_AddObject with additional increfs and decrefs per what BPO-42327 prescribes.
htt????/bugs.python.org/issue44050;
Headings (most frequently used words):
extension, navigation, uh, oh, bpo, 44050, modules, can, share, state, when, they, don, support, sub, interpreters, gh, 27794, 28741, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by,
Text of the page (most frequently used words):
file (31), and (18), github (16), this (15), line (15), the (14), that (12), hidden (12), characters (12), unicode (12), applied (11), module (11), show (11), for (11), can (10), support (10), diff (10), bpo (9), 44050 (9), open (9), changes (8), all (8), extension (8), number (8), bidirectional (8), reload (8), you (7), suggestion (7), cannot (7), suggestions (7), code (7), interpreters (7), python (7), modules (7), self (7), sign (7), while (6), comments (6), expand (6), def (6), when (6), learn (6), about (6), view (6), import (6), error (6), state (6), 2021 (6), importlib (6), share (5), security (5), change (5), sub (5), return (5), pyobject (5), what (5), review (5), more (5), test (5), they (5), loading (5), commits (5), your (5), please (4), pull (4), m_size (4), original (4), contains (4), text (4), may (4), interpreted (4), compiled (4), differently (4), than (4), appears (4), below (4), editor (4), reveals (4), desktop (4), delete (4), edit (4), additions (4), spec (4), _testmultiphase (4), next (4), rst (4), util (4), there (4), files (4), ambv (4), don (4), copilot (4), community (3), navigation (3), request (3), from (3), add (3), batch (3), single (3), commit (3), down (3), null (3), pyexc_exception (3), deletions (3), misc (3), news (3), core (3), builtins (3), mfi15u (3), script (3), fullname (3), origin (3), lib (3), test_capi (3), hide (3), whitespace (3), was (3), page (3), nbsp (3), filter (3), oct (3), with (3), 28741 (3), 27794 (3), merged (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), not (2), contact (2), status (2), privacy (2), terms (2), footer (2), one (2), viewing (2), toggle (2), already (2), m_base (2), m_copy (2), _py_ismaininterpreter (2), tstate (2), doesn (2), extensions (2), 710 (2), py_decref (2), pymodule_addobject (2), def_module_state_shared (2), _test_module_state_shared (2), 834 (2), assertequal (2), main_attr_id (2), subinterp_attr_id (2), read (2), 100 (2), ret (2), attr_id (2), loader (2), machinery (2), addcleanup (2), close (2), 680 (2), selected (2), apply (2), split (2), unified (2), failed (2), load (2), retry (2), jump (2), select (2), tree (2), issue (2), insights (2), projects (2), actions (2), repository (2), cpython (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, personal, information, manage, cookies, docs, 2026, inc, right, now, check, back, later, queued, merge, multi, pending, reviews, has, been, marked, resolved, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, somebody, imported, updated, _pyimport_fixupextensionobject, mod, name, deletion, helper, imp, py_incref, pymodule_create, pyinit__test_module_state_shared, pymodinit_func, m_doc, pydoc_str, regression, phase, init, m_name, pymoduledef_head_init, static, pymoduledef, pymoduledef_init, def_meth_state_access, pyinit__testmultiphase_meth_state_access, again, used, multiple, reverts, behavior, indicate, use, global, setting, class, testthreadstate, unittest, testcase, run_in_subinterp, exec, write, str, encode, module_from_spec, spec_from_loader, extensionfileloader, find_spec, textwrap, dedent, pipe, should, shared, between, test_module_state_shared_in_global, assertfalse, hasattr, binascii, foobar, test_mutate_exception, are, conversations, clear, filters, viewed, types, replace, non, existent, pymodule_addobjectref, f53acff, shihai1991, b83a4ff, hold, shift, click, range, changed, checks, conversation, into, backport, b9bb748, 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,
|