René's URL Explorer Experiment


Title: SyntaxError: unmatched ')' with whitespace in lambda? · Issue #105042 · python/cpython · GitHub

Open Graph Title: SyntaxError: unmatched ')' with whitespace in lambda? · Issue #105042 · python/cpython

X Title: SyntaxError: unmatched ')' with whitespace in lambda? · Issue #105042 · python/cpython

Description: Bug report Testing on tip of 3.12 which includes the fix for #105013 (thanks!), I get the following difference in behaviour with Python 3.11 vs tip of Python 3.12: import inspect from hypothesis.internal.reflection import extract_lambda_...

Open Graph Description: Bug report Testing on tip of 3.12 which includes the fix for #105013 (thanks!), I get the following difference in behaviour with Python 3.11 vs tip of Python 3.12: import inspect from hypothesis.in...

X Description: Bug report Testing on tip of 3.12 which includes the fix for #105013 (thanks!), I get the following difference in behaviour with Python 3.11 vs tip of Python 3.12: import inspect from hypothesis.in...

Opengraph URL: https://github.com/python/cpython/issues/105042

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SyntaxError: unmatched ')' with whitespace in lambda?","articleBody":"# Bug report\r\n\r\nTesting on tip of 3.12 which includes the fix for #105013 (thanks!), I get the following difference in behaviour with Python 3.11 vs tip of Python 3.12:\r\n```python\r\nimport inspect\r\n\r\nfrom hypothesis.internal.reflection import extract_lambda_source\r\nfrom hypothesis.strategies import just\r\n\r\n#from hypothesis.strategies import just, one_of\r\n\r\n# This variant doesn't trigger a TypeError mid-callback, but both variants get the same final inspect error\r\n#one_of_nested_strategy_with_filter = one_of(\r\n#    just(0),\r\n#    just(1),\r\n#    one_of(just(2), just(3), one_of(just(4), just(5), one_of(just(6), just(7)))),\r\n#).filter(lambda x: x % 2 == 0)\r\n#x = get_pretty_function_description(one_of_nested_strategy_with_filter)\r\n#print(inspect.getsource(x))\r\n\r\n\r\none_of_nested_strategy_with_filter = (\r\n    just(0)\r\n).filter(lambda x: x % 2 == 0)\r\n\r\nx = extract_lambda_source(one_of_nested_strategy_with_filter)\r\n```\r\n\r\nWith Python 3.12, I get:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1241, in getblock\r\n    for _token in tokens:\r\n  File \"/usr/lib/python3.12/tokenize.py\", line 450, in _tokenize\r\n    for token in _generate_tokens_from_c_tokenizer(source, extra_tokens=True):\r\n  File \"/usr/lib/python3.12/tokenize.py\", line 537, in _generate_tokens_from_c_tokenizer\r\n    for info in c_tokenizer.TokenizerIter(source, extra_tokens=extra_tokens):\r\n  File \"\u003cstring\u003e\", line 1\r\n    ).filter(lambda x: x % 2 == 0)\r\n    ^\r\nSyntaxError: unmatched ')'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/tmp/foo2.py\", line 10, in \u003cmodule\u003e\r\n    x = extract_lambda_source(one_of_nested_strategy_with_filter)\r\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py\", line 305, in extract_lambda_source\r\n    sig = inspect.signature(f)\r\n          ^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 3326, in signature\r\n    return Signature.from_callable(obj, follow_wrapped=follow_wrapped,\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 3070, in from_callable\r\n    return _signature_from_callable(obj, sigcls=cls,\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 2484, in _signature_from_callable\r\n    raise TypeError('{!r} is not a callable object'.format(obj))\r\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/misc.py\", line 39, in __repr__\r\n    suffix = \"\".join(\r\n             ^^^^^^^^\r\n  File \"/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/misc.py\", line 40, in \u003cgenexpr\u003e\r\n    f\".{name}({get_pretty_function_description(f)})\"\r\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py\", line 432, in get_pretty_function_description\r\n    return extract_lambda_source(f)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py\", line 312, in extract_lambda_source\r\n    source = inspect.getsource(f)\r\n             ^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1282, in getsource\r\n    lines, lnum = getsourcelines(object)\r\n                  ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1274, in getsourcelines\r\n    return getblock(lines[lnum:]), lnum + 1\r\n           ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1248, in getblock\r\n    _, *_token_info = _token\r\n                      ^^^^^^\r\nUnboundLocalError: cannot access local variable '_token' where it is not associated with a value\r\n```\r\n\r\nBut with Python 3.11, I get:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/tmp/foo2.py\", line 10, in \u003cmodule\u003e\r\n    x = extract_lambda_source(one_of_nested_strategy_with_filter)\r\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.11/site-packages/hypothesis/internal/reflection.py\", line 305, in extract_lambda_source\r\n    sig = inspect.signature(f)\r\n          ^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.11/inspect.py\", line 3279, in signature\r\n    return Signature.from_callable(obj, follow_wrapped=follow_wrapped,\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.11/inspect.py\", line 3027, in from_callable\r\n    return _signature_from_callable(obj, sigcls=cls,\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.11/inspect.py\", line 2447, in _signature_from_callable\r\n    raise TypeError('{!r} is not a callable object'.format(obj))\r\nTypeError: just(0).filter(lambda x: \u003cunknown\u003e) is not a callable object\r\n```\r\n\r\nIf I change the program to drop the whitespace, it works in 3.12 too:\r\n```\r\nimport inspect\r\n\r\nfrom hypothesis.internal.reflection import extract_lambda_source\r\nfrom hypothesis.strategies import just\r\n\r\none_of_nested_strategy_with_filter = (just(0)).filter(lambda x: x % 2 == 0)\r\n\r\nx = extract_lambda_source(one_of_nested_strategy_with_filter)\r\n```\r\n\r\nI noticed this w/ a test failure in priority (the output is huge, so just a snippet here)\r\n```\r\nERROR collecting test/test_priority.py ____________________________________________________________________________________\r\n/usr/lib/python3.12/inspect.py:1241: in getblock\r\n    for _token in tokens:\r\n[...]\r\n/usr/lib/python3.12/tokenize.py:537: in _generate_tokens_from_c_tokenizer\r\n    for info in c_tokenizer.TokenizerIter(source, extra_tokens=extra_tokens):\r\nE     File \"\u003cstring\u003e\", line 1\r\nE       ).map(lambda blocked: (blocked, active_readme_streams_from_filter(blocked)))\r\nE       ^\r\nE   SyntaxError: unmatched ')'\r\n        c_tokenizer = \u003cmodule '_tokenize' (built-in)\u003e\r\n        extra_tokens = True\r\n        source     = (').map(lambda blocked: (blocked, '\r\n 'active_readme_streams_from_filter(blocked)))\\n'\r\n[...]\r\nERROR test/test_priority.py - UnboundLocalError: cannot access local variable '_token' where it is not associated with a value\r\n```\r\n\r\nand a perhaps more useful test failure in hypothesis, which priority uses:\r\n```\r\ntest_one_of_flattens_filter_branches_2 ____________________________________________________________________________________\r\n[gw14] linux -- Python 3.12.0 /var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/bin/python3.12\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1241, in getblock\r\n    for _token in tokens:\r\n  File \"/usr/lib/python3.12/tokenize.py\", line 450, in _tokenize\r\n    for token in _generate_tokens_from_c_tokenizer(source, extra_tokens=True):\r\n  File \"/usr/lib/python3.12/tokenize.py\", line 537, in _generate_tokens_from_c_tokenizer\r\n    for info in c_tokenizer.TokenizerIter(source, extra_tokens=extra_tokens):\r\n  File \"\u003cstring\u003e\", line 1\r\n    ).filter(lambda x: x % 2 == 0)\r\n    ^\r\nSyntaxError: unmatched ')'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python/tests/quality/test_discovery_ability.py\", line 101, in run_test\r\n    runner.run()\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/engine.py\", line 474, in run\r\n    self._run()\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/engine.py\", line 880, in _run\r\n    self.generate_new_examples()\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/engine.py\", line 684, in generate_new_examples\r\n    minimal_example = self.cached_test_function(\r\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/engine.py\", line 1065, in cached_test_function\r\n    self.test_function(data)\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/engine.py\", line 209, in test_function\r\n    self.__stoppable_test_function(data)\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/engine.py\", line 185, in __stoppable_test_function\r\n    self._test_function(data)\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python/tests/quality/test_discovery_ability.py\", line 79, in test_function\r\n    value = data.draw(specifier)\r\n            ^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/data.py\", line 956, in draw\r\n    return strategy.do_draw(self)\r\n           ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/strategies.py\", line 942, in do_draw\r\n    result = self.do_filtered_draw(data)\r\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/strategies.py\", line 956, in do_filtered_draw\r\n    value = data.draw(self.filtered_strategy)\r\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/data.py\", line 951, in draw\r\n    return strategy.do_draw(self)\r\n           ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/strategies.py\", line 666, in do_draw\r\n    return data.draw(strategy)\r\n           ^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/conjecture/data.py\", line 951, in draw\r\n    return strategy.do_draw(self)\r\n           ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/strategies.py\", line 532, in do_draw\r\n    data.mark_invalid(f\"Aborted test because unable to satisfy {self!r}\")\r\n                                                               ^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/misc.py\", line 39, in __repr__\r\n    suffix = \"\".join(\r\n             ^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/misc.py\", line 40, in \u003cgenexpr\u003e\r\n    f\".{name}({get_pretty_function_description(f)})\"\r\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py\", line 432, in get_pretty_function_description\r\n    return extract_lambda_source(f)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/var/tmp/portage/dev-python/hypothesis-6.75.6/work/hypothesis-hypothesis-python-6.75.6/hypothesis-python-python3_12/install/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py\", line 312, in extract_lambda_source\r\n    source = inspect.getsource(f)\r\n             ^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1282, in getsource\r\n    lines, lnum = getsourcelines(object)\r\n                  ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1274, in getsourcelines\r\n    return getblock(lines[lnum:]), lnum + 1\r\n           ^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/usr/lib/python3.12/inspect.py\", line 1248, in getblock\r\n    _, *_token_info = _token\r\n                      ^^^^^^\r\nUnboundLocalError: cannot access local variable '_token' where it is not associated with a value\r\n```\r\n\r\nSee also https://github.com/python/cpython/issues/105013.\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: 3.11.3, tip of 3.12\r\n- Operating system and architecture: Gentoo Linux, amd64\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105061\n* gh-105120\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/thesamesam","@type":"Person","name":"thesamesam"},"datePublished":"2023-05-28T15:07:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/105042/cpython/issues/105042"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8a5dd438-f358-de0f-598f-53bad1d0d071
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD1BE:38BF1A:1008B59:15721A3:69699299
html-safe-nonce2ec6fa67a89652c62df69e9131e2938c1d4b64d8edd40c1d8d2185cb6c5f351a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUJFOjM4QkYxQToxMDA4QjU5OjE1NzIxQTM6Njk2OTkyOTkiLCJ2aXNpdG9yX2lkIjoiNzY5NDYyMjg3MzkzMzY4MTMwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfdcbf0bc8d71883f295c4e7831becf84aea71b740d21d6db86a0db63e857b678
hovercard-subject-tagissue:1729514090
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/105042/issue_layout
twitter:imagehttps://opengraph.githubassets.com/018108720fc2a01100bc14e558ed145a50bcc472f8a7c70afcd36c97336f9222/python/cpython/issues/105042
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/018108720fc2a01100bc14e558ed145a50bcc472f8a7c70afcd36c97336f9222/python/cpython/issues/105042
og:image:altBug report Testing on tip of 3.12 which includes the fix for #105013 (thanks!), I get the following difference in behaviour with Python 3.11 vs tip of Python 3.12: import inspect from hypothesis.in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethesamesam
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/105042#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F105042
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F105042
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/105042
Reloadhttps://github.com/python/cpython/issues/105042
Reloadhttps://github.com/python/cpython/issues/105042
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/105042
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/105042
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/105042
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/105042
SyntaxError: unmatched ')' with whitespace in lambda?https://github.com/python/cpython/issues/105042#top
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/thesamesam
https://github.com/thesamesam
thesamesamhttps://github.com/thesamesam
on May 28, 2023https://github.com/python/cpython/issues/105042#issue-1729514090
#105013https://github.com/python/cpython/issues/105013
#105013https://github.com/python/cpython/issues/105013
gh-105042: Disable unmatched parens syntax error in python tokenize #105061https://github.com/python/cpython/pull/105061
[3.12] gh-105042: Disable unmatched parens syntax error in python tokenize (GH-105061) #105120https://github.com/python/cpython/pull/105120
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.