René's URL Explorer Experiment


Title: Possible regression in Python3.12 tokenizer · Issue #105013 · python/cpython · GitHub

Open Graph Title: Possible regression in Python3.12 tokenizer · Issue #105013 · python/cpython

X Title: Possible regression in Python3.12 tokenizer · Issue #105013 · python/cpython

Description: Bug report I have encountered a possible regression while I was testing pyrsistent with python3.12_beta1, see tobgu/pyrsistent#275. Tests fail with following error: /usr/lib/python3.12/site-packages/_pytest/python.py:617: in _importtestm...

Open Graph Description: Bug report I have encountered a possible regression while I was testing pyrsistent with python3.12_beta1, see tobgu/pyrsistent#275. Tests fail with following error: /usr/lib/python3.12/site-package...

X Description: Bug report I have encountered a possible regression while I was testing pyrsistent with python3.12_beta1, see tobgu/pyrsistent#275. Tests fail with following error: /usr/lib/python3.12/site-package...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible regression in Python3.12 tokenizer","articleBody":"# Bug report\r\n\r\nI have encountered a possible regression while I was testing pyrsistent with python3.12_beta1, see https://github.com/tobgu/pyrsistent/issues/275. Tests fail with following error:\r\n```\r\n/usr/lib/python3.12/site-packages/_pytest/python.py:617: in _importtestmodule\r\n    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)\r\n/usr/lib/python3.12/site-packages/_pytest/pathlib.py:564: in import_path\r\n    importlib.import_module(module_name)\r\n/usr/lib/python3.12/importlib/__init__.py:90: in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n\u003cfrozen importlib._bootstrap\u003e:1293: in _gcd_import\r\n    ???\r\n\u003cfrozen importlib._bootstrap\u003e:1266: in _find_and_load\r\n    ???\r\n\u003cfrozen importlib._bootstrap\u003e:1237: in _find_and_load_unlocked\r\n    ???\r\n\u003cfrozen importlib._bootstrap\u003e:841: in _load_unlocked\r\n    ???\r\n/usr/lib/python3.12/site-packages/_pytest/assertion/rewrite.py:178: in exec_module\r\n    exec(co, module.__dict__)\r\ntests/hypothesis_vector_test.py:48: in \u003cmodule\u003e\r\n    PVectorAndLists = st.lists(st.builds(RefCountTracker)).map(\r\n/usr/lib/python3.12/site-packages/hypothesis/strategies/_internal/strategies.py:347: in map\r\n    if is_identity_function(pack):\r\n/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py:638: in is_identity_function\r\n    return bool(re.fullmatch(r\"lambda (\\w+): \\1\", get_pretty_function_description(f)))\r\n/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py:432: in get_pretty_function_description\r\n    return extract_lambda_source(f)\r\n/usr/lib/python3.12/site-packages/hypothesis/internal/reflection.py:312: in extract_lambda_source\r\n    source = inspect.getsource(f)\r\n/usr/lib/python3.12/inspect.py:1274: in getsource\r\n    lines, lnum = getsourcelines(object)\r\n/usr/lib/python3.12/inspect.py:1266: in getsourcelines\r\n    return getblock(lines[lnum:]), lnum + 1\r\n/usr/lib/python3.12/inspect.py:1241: in getblock\r\n    for _token in tokens:\r\n/usr/lib/python3.12/tokenize.py:451: in _tokenize\r\n    for token in _generate_tokens_from_c_tokenizer(source, extra_tokens=True):\r\n/usr/lib/python3.12/tokenize.py:542: 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       lambda l: (l, pvector(l)))\r\nE                                ^\r\nE   SyntaxError: unmatched ')'\r\n```\r\n\r\nIt is triggered for this code (see https://github.com/tobgu/pyrsistent/blob/cc90f3e2b339653fde0df422aaf3ccdb3fc1225d/tests/hypothesis_vector_test.py#L48-L49 )\r\n```python\r\nPVectorAndLists = st.lists(st.builds(RefCountTracker)).map(\r\n    lambda l: (l, pvector(l)))\r\n```\r\nif I concatenate it to one line, everything works. I also tried to backport fix for https://github.com/python/cpython/issues/104866 as it sounds relevant, but it didn't solved the issue.\r\n\r\n# Your environment\r\n\r\n- Gentoo `~amd64`\r\n- Python 3.12.0b1\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105021\n* gh-105032\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/arkamar","@type":"Person","name":"arkamar"},"datePublished":"2023-05-27T09:09:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/105013/cpython/issues/105013"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:48422788-d92c-575e-6575-ae6d44f35fa4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA680:1F92AF:215034:2C572F:6969BF63
html-safe-nonce8ec85564925122e59c0acc871d78f766dfbcb26d57f8545b723cd448542c12b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjgwOjFGOTJBRjoyMTUwMzQ6MkM1NzJGOjY5NjlCRjYzIiwidmlzaXRvcl9pZCI6IjgyMTQ5NjM1NjA2MTc5ODM4NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccd7ec80d3a7905650675ae378d2bf2f5be718b8e52e867b13ace9b1da1a7aaaf
hovercard-subject-tagissue:1728575908
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/105013/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2d99c428bbb7b02399eee666c6cd3cf6a18bdd9e569fd0da7e433165b5f88732/python/cpython/issues/105013
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2d99c428bbb7b02399eee666c6cd3cf6a18bdd9e569fd0da7e433165b5f88732/python/cpython/issues/105013
og:image:altBug report I have encountered a possible regression while I was testing pyrsistent with python3.12_beta1, see tobgu/pyrsistent#275. Tests fail with following error: /usr/lib/python3.12/site-package...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearkamar
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/105013#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F105013
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%2F105013
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/105013
Reloadhttps://github.com/python/cpython/issues/105013
Reloadhttps://github.com/python/cpython/issues/105013
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/105013
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/105013
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/105013
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/105013
Possible regression in Python3.12 tokenizerhttps://github.com/python/cpython/issues/105013#top
https://github.com/pablogsal
https://github.com/lysnikolaou
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/arkamar
https://github.com/arkamar
arkamarhttps://github.com/arkamar
on May 27, 2023https://github.com/python/cpython/issues/105013#issue-1728575908
tobgu/pyrsistent#275https://github.com/tobgu/pyrsistent/issues/275
https://github.com/tobgu/pyrsistent/blob/cc90f3e2b339653fde0df422aaf3ccdb3fc1225d/tests/hypothesis_vector_test.py#L48-L49https://github.com/tobgu/pyrsistent/blob/cc90f3e2b339653fde0df422aaf3ccdb3fc1225d/tests/hypothesis_vector_test.py#L48-L49
#104866https://github.com/python/cpython/issues/104866
gh-105013: Fix inspect.getsource with parenthesized multiline lambdas #105021https://github.com/python/cpython/pull/105021
[3.12] gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (GH-105021) #105032https://github.com/python/cpython/pull/105032
lysnikolaouhttps://github.com/lysnikolaou
pablogsalhttps://github.com/pablogsal
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
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.