If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: github.com/python/cpython/pull/98796/files - gh-85267: Improvements to insp.

site address: github.com/python/cpython/pull/98796/files redirected to: github.com/python/cpython/pull/98796/files

site title: gh-85267: Improvements to inspect.signature __text_signature__ handling by hauntsaninja · Pull Request #98796 · python/cpython · GitHub

Our opinion (on Sunday 29 November 2026 19:55:24 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:
description=This makes a couple related changes to inspect.signature s behaviour when parsing a signature from __text_signature__. First, inspect.signature is documented as only raising ValueError or TypeError. However, in some cases, we could raise RuntimeError. This PR changes that, thereby fixing #83685. (Note that the new ValueErrors in RewriteSymbolics are caught and then reraised with a message) Second, inspect.signature could randomly drop parameters that it didn t understand (corresponding to return None in the p function). This is the core issue in #85267. I think this is very surprising behaviour and it seems better to fail outright. Third, adding this new failure broke a couple tests. To fix them (and to e.g. allow inspect.signature(select.epoll.register) as in #85267), I add constant folding of a couple binary operations to RewriteSymbolics. (There s some discussion of making signature expression evaluation arbitrary powerful in #68155. I think that s out of scope. The additional constant folding here is pretty straightforward, useful, and not much of a slippery slope) Fourth, while #85267 is incorrect about the cause of the issue, it turns out if you had consecutive newlines in __text_signature__, you d get tokenize.TokenError. Finally, the if name is invalid: code path was dead, since parse_name never returned invalid. Issue: gh-85267;

Headings (most frequently used words):

uh, oh, navigation, gh, 85267, improvements, to, inspect, signature, __text_signature__, handling, 98796, there, for, footer, loading, this, diff, view, menu, repository, are, no, files, selected, viewing, filter, by, extension, hauntsaninja, oct, 28, 2022, edited, was, an, error, while, please, reload, page, choose, reason, hiding, comment,

Text of the page (most frequently used words):
self (30), file (25), this (24), signature (24), #inspect (22), func (19), github (16), and (16), valueerror (13), #reload (13), line (12), 2022 (12), ast (12), value (12), for (12), applied (11), while (11), the (11), all (11), raise (11), there (11), loading (11), hauntsaninja (11), expand (10), def (10), error (10), __text_signature__ (10), node (10), that (9), please (9), show (9), hidden (9), characters (9), unicode (9), was (9), comment (9), sig (9), resolved (8), code (8), diff (8), page (8), assertequal (8), return (8), you (7), suggestion (7), cannot (7), right (7), suggestions (7), changes (7), open (7), 85267 (7), lib (7), constant (7), isinstance (7), sign (7), not (6), improvements (6), number (6), bidirectional (6), learn (6), issue (6), test (6), default (6), default_node (6), left (6), security (5), comments (5), from (5), add (5), exc (5), parameters (5), handling (5), more (5), about (5), view (5), with (5), str (5), name (5), test_inspect (5), none (5), support (5), commits (5), your (5), can (4), pull (4), marked (4), change (4), lines (4), runtimeerror (4), fixes (4), text (4), what (4), review (4), next (4), rst (4), down (4), conversation (4), thread (4), sys (4), args (4), kwargs (4), hide (4), quality (4), split (4), files (4), nov (4), another (4), copilot (4), community (3), navigation (3), now (3), request (3), batch (3), commit (3), only (3), tokenize (3), original (3), contains (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), misc (3), news (3), library (3), xuy_wm (3), additions (3), assertraises (3), append (3), visit (3), wrap_value (3), reason (3), oct (3), whitespace (3), filter (3), 98796 (3), merged (3), python (3), account (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), merge (2), has (2), outdated (2), single (2), one (2), viewing (2), invalid (2), toggle (2), raised (2), these (2), binary (2), operations (2), case (2), where (2), deletions (2), see (2), 4246 (2), exp (2), maxsize (2), 2480 (2), empty (2), except (2), rewritesymbolics (2), try (2), name_node (2), elif (2), 2223 (2), 2213 (2), visit_attribute (2), message (2), choose (2), hiding (2), copy (2), 2199 (2), generator (2), encode (2), ascii (2), 2100 (2), selected (2), apply (2), unified (2), failed (2), load (2), retry (2), jump (2), nbsp (2), extension (2), jellezijlstra (2), dec (2), main (2), into (2), update (2), select (2), tree (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), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, 2026, inc, check, back, later, queued, multi, pending, reviews, been, must, existing, order, create, valid, applying, deleted, supported, per, subset, closed, because, were, made, annotations, notes, removed, dead, path, documented, raising, typeerror, but, sometimes, cases, allows, understand, defaults, involving, constants, tokenerror, dropped, several, __text_signature, ann_module7, import, bufferedreader, 43118, test_base_class_have_text_signature, 123, does_not_exist, assertisnotnone, test_callable, object, assertnotin, local, false, deletion, non, keyword, parameter, kind, annotation, builtin, format, obj, literal_eval, _empty, parse_name, bitor, sub, commonly, used, define, values, signatures, folding, couple, simple, visit_binop, visit_name, join, reversed, attr, class, nodetransformer, int, float, bytes, bool, type, reactions, sorry, something, went, wrong, get, caught, l2254, acquire, low, duplicate, off, topic, abuse, spam, will, displayed, describe, others, problem, author, contributor, markdown, link, edited, nameerror, eval, sys_module_dict, token_stream, iter, __next__, last_positional_only, self_parameter, _signature_strip_non_python_syntax, are, conversations, clear, filters, viewed, types, branch, fef9787, 126b8c3, runtime, 7f9f257, ea41f40, dd2e08f, blurb, bot, added, blurb_it, b60fb02, 16ae02e, 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, 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, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, 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,
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

Verified site has: 67 subpage(s). Do you want to verify them? Verify pages:

1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
51-55 56-60 61-65 66-67


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/1.1 301 Moved Permanently
Content-Length 0
Location htt????/github.com/python/cpython/pull/98796/files
connection close
HTTP/2 200
date Sun, 29 Nov 2026 19:55:24 GMT
content-type text/html; charset=utf-8
vary X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, X-GitHub-Client-Version, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With
cache-control no-cache
etag W/ e50f59426be59b87250f318d171c99f5
strict-transport-security max-age=31536000; includeSubdomains; preload
x-frame-options deny
x-content-type-options nosniff
x-xss-protection 0
referrer-policy no-referrer-when-downgrade
content-security-policy default-src none ; base-uri self ; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src self uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net productionresultssa1.blob.core.windows.net productionresultssa2.blob.core.windows.net productionresultssa3.blob.core.windows.net productionresultssa4.blob.core.windows.net productionresultssa5.blob.core.windows.net productionresultssa6.blob.core.windows.net productionresultssa7.blob.core.windows.net productionresultssa8.blob.core.windows.net productionresultssa9.blob.core.windows.net productionresultssa10.blob.core.windows.net productionresultssa11.blob.core.windows.net productionresultssa12.blob.core.windows.net productionresultssa13.blob.core.windows.net productionresultssa14.blob.core.windows.net productionresultssa15.blob.core.windows.net productionresultssa16.blob.core.windows.net productionresultssa17.blob.core.windows.net productionresultssa18.blob.core.windows.net productionresultssa19.blob.core.windows.net productionresultssa30.blob.core.windows.net productionresultssa31.blob.core.windows.net productionresultssa32.blob.core.windows.net github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com wss://*.wps.githubcopilot.com wss://production-copilot-host.webpubsub.azure.com wss://production-copilot-host-centralus.webpubsub.azure.com wss://production-copilot-host-centralus-02.webpubsub.azure.com wss://production-copilot-host-westus.webpubsub.azure.com wss://production-copilot-host-westus3.webpubsub.azure.com wss://production-copilot-host-eastasia.webpubsub.azure.com wss://production-copilot-host-austriaeast.webpubsub.azure.com api.github.com/cmc_internal/api/; font-src github.githubassets.com; form-action self github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors none ; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src self data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com user-images.githubusercontent.com private-user-images.githubusercontent.com opengraph.githubassets.com repository-images.githubusercontent.com marketplace-screenshots.githubusercontent.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com explore-feed.github.com *.googleusercontent.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src self ; media-src github.com user-images.githubusercontent.com secured-user-images.githubusercontent.com private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com sha256-6nkh0w49y4npXaU0CPIq0z+XDtPnpaDFECgj6Y9vmx4= ; style-src unsafe-inline github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server github.com
content-encoding gzip
accept-ranges bytes
set-cookie _gh_sess=pEpGdganY%2FM12hfVGf7bE1sqokMN8WyCOjLfISwf2n%2BVIz5tEBrHS2QdLNnuO2yFX%2FF85QDl3WWzoj%2BUY%2BntTmJLyteCNKR7vBQgGbqRpO1Q%2F0FP3FyN3NoHP%2BHOE2BzZnhINCXhKFlR4fJkAYgq6qv5QE66y%2BEUfVJBxyQtnhajEdQ6nBqaAbZ8DsSZDIpQksvX0OitJxHcA5V9r%2FLEWZQ63dbi7KQbqbFsSHeKl4Y5lNVVD7dA4SasT0bKMzqvIbkOZR8VpEJ%2BLrXNf%2FOUCg%3D%3D--ifvoeYAJr%2FHK%2B5kK--npkRMosG7am%2FNc%2BGbNefeA%3D%3D; path=/; HttpOnly; secure; SameSite=Lax
set-cookie _octo=GH1.1.643164629.1795982122; expires=Mon, 29 Nov 2027 19:55:22 GMT; domain=.github.com; path=/; secure; SameSite=Lax
set-cookie logged_in=no; expires=Mon, 29 Nov 2027 19:55:22 GMT; domain=.github.com; path=/; HttpOnly; secure; SameSite=Lax
x-github-request-id A4E0:178D:140EC2D0:1C73C848:6B0C832A
x-github-edge-region fra

Meta Tags

title="gh-85267: Improvements to inspect.signature __text_signature__ handling by hauntsaninja · Pull Request #98796 · python/cpython · GitHub"
charset="utf-8"
name="react-profiling" content="0" data-turbo-transient="true"
name="react-import-map" content="react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322" data-turbo-track="reload"
name="route-pattern" content="/:user_id/:repository/pull/:id/files(.:format)" data-turbo-transient
name="route-controller" content="pull_requests" data-turbo-transient
name="route-action" content="files" data-turbo-transient
name="fetch-nonce" content="v2:fcb29d5a-72ec-06d9-acfe-628eecb4c2d8"
name="current-catalog-service-hash" content="ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b"
name="request-id" content="A4E0:178D:140EC2D0:1C73C848:6B0C832A" data-pjax-transient="true"
name="html-safe-nonce" content="f7ad4b0282c57435d318c49001449594e1d41d090ad14e8d3369601605876ab4" data-pjax-transient="true"
name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEUwOjE3OEQ6MTQwRUMyRDA6MUM3M0M4NDg6NkIwQzgzMkEiLCJ2aXNpdG9yX2lkIjoiMjc2MjM3MTA0OTI5NDk1NTMwNiIsInJlZ2lvbl9lZGdlIjoiZnJhIiwicmVnaW9uX3JlbmRlciI6ImZyYSJ9" data-pjax-transient="true"
name="visitor-hmac" content="a8a5994d6012c8a6362a80382d19973b984581c53596102b16908ee92de28e72" data-pjax-transient="true"
name="hovercard-subject-tag" content="pull_request:1102714806" data-turbo-transient
name="github-keyboard-shortcuts" content="repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot" data-turbo-transient="true"
name="selected-link" value="repo_pulls" data-turbo-transient
name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I"
name="octolytics-url" content="htt????/collector.github.com/github/collect"
name="analytics-location" content="/<user-name>/<repo-name>/pull_requests/show/files" data-turbo-transient="true"
name="user-login" content=""
name="viewport" content="width=device-width"
name="description" content="This makes a couple related changes to inspect.signature's behaviour when parsing a signature from __text_signature__. First, inspect.signature is documented as only raising ValueError or TypeError. However, in some cases, we could raise RuntimeError. This PR changes that, thereby fixing #83685. (Note that the new ValueErrors in RewriteSymbolics are caught and then reraised with a message) Second, inspect.signature could randomly drop parameters that it didn't understand (corresponding to return None in the p function). This is the core issue in #85267. I think this is very surprising behaviour and it seems better to fail outright. Third, adding this new failure broke a couple tests. To fix them (and to e.g. allow inspect.signature(select.epoll.register) as in #85267), I add constant folding of a couple binary operations to RewriteSymbolics. (There's some discussion of making signature expression evaluation arbitrary powerful in #68155. I think that's out of scope. The additional constant folding here is pretty straightforward, useful, and not much of a slippery slope) Fourth, while #85267 is incorrect about the cause of the issue, it turns out if you had consecutive newlines in __text_signature__, you'd get tokenize.TokenError. Finally, the if name is invalid: code path was dead, since parse_name never returned invalid. Issue: gh-85267"
property="fb:app_id" content="1401488693436528"
name="apple-itunes-app" content="app-id=1477376905, app-argument=htt????/github.com/python/cpython/pull/98796/files"
name="twitter:image" content="htt????/avatars.githubusercontent.com/u/12621235?s=400&v=4"
name="twitter:site" content="@github"
name="twitter:card" content="summary_large_image"
name="twitter:title" content="gh-85267: Improvements to inspect.signature __text_signature__ handling by hauntsaninja · Pull Request #98796 · python/cpython"
name="twitter:description" content="This makes a couple related changes to inspect.signature&amp;#39;s behaviour when parsing a signature from __text_signature__. First, inspect.signature is documented as only raising ValueError or T..."
property="og:image" content="htt????/avatars.githubusercontent.com/u/12621235?s=400&v=4"
property="og:image:alt" content="This makes a couple related changes to inspect.signature&#39;s behaviour when parsing a signature from __text_signature__. First, inspect.signature is documented as only raising ValueError or TypeE..."
property="og:site_name" content="GitHub"
property="og:type" content="object"
property="og:title" content="gh-85267: Improvements to inspect.signature __text_signature__ handling by hauntsaninja · Pull Request #98796 · python/cpython"
property="og:url" content="htt????/github.com/python/cpython/pull/98796"
property="og:description" content="This makes a couple related changes to inspect.signature&#39;s behaviour when parsing a signature from __text_signature__. First, inspect.signature is documented as only raising ValueError or TypeE..."
name="hostname" content="github.com"
name="expected-hostname" content="github.com"
http-equiv="x-pjax-version" content="2f26b7b04774dd0cee682313db3d734dc0f103a6fecc57eb6c3ee9f6bdf420da" data-turbo-track="reload"
http-equiv="x-pjax-csp-version" content="adddfd507de4c4b0b130ff1dbf3c31681ba97e7a45dc69da056946fc5370dfd4" data-turbo-track="reload"
http-equiv="x-pjax-css-version" content="6461f87ecae18a405f89b5f5f023d20a05636d0b2938295d444470acca7728a2" data-turbo-track="reload"
http-equiv="x-pjax-js-version" content="7c47183a73008933468557b28d2500e2ea7619094b9fe68a81910d76811eeb3c" data-turbo-track="reload"
name="turbo-cache-control" content="no-preview" data-turbo-transient=""
name="diff-view" content="unified" data-turbo-transient
name="go-import" content="github.com/python/cpython git htt????/github.com/python/cpython.git"
name="octolytics-dimension-user_id" content="1525981"
name="octolytics-dimension-user_login" content="python"
name="octolytics-dimension-repository_id" content="81598961"
name="octolytics-dimension-repository_nwo" content="python/cpython"
name="octolytics-dimension-repository_public" content="true"
name="octolytics-dimension-repository_is_fork" content="false"
name="octolytics-dimension-repository_network_root_id" content="81598961"
name="octolytics-dimension-repository_network_root_nwo" content="python/cpython"
name="robots" content="noindex, nofollow"
name="turbo-body-classes" content="logged-out env-production page-responsive full-width"
name="disable-turbo" content="true"
name="browser-stats-url" content="htt????/api.github.com/_private/browser/stats"
name="browser-errors-url" content="htt????/api.github.com/_private/browser/errors"
name="release" content="206ca5e2e4c7feca284ad1771fa08530fd32785c" data-turbo-track="reload"
name="ui-target" content="full"
name="theme-color" content="#1e2327"
name="color-scheme" content="light dark"

Load Info

page size64239
load time (s)1.75981
redirect count1
speed download36520
server IP 140.82.121.4
* all occurrences of the string "http://" have been changed to "htt???/"