René's URL Explorer Experiment


Title: pylint is broken with CPython main · Issue #101914 · python/cpython · GitHub

Open Graph Title: pylint is broken with CPython main · Issue #101914 · python/cpython

X Title: pylint is broken with CPython main · Issue #101914 · python/cpython

Description: Bug report pylint currently crashes with CPython main. I noticed this when I noticed the pylint benchmark in Pyston's benchmark suite was no longer working. The first bad commit is 4a1c58d (@markshannon), issue #96793, PR #98772. I don't...

Open Graph Description: Bug report pylint currently crashes with CPython main. I noticed this when I noticed the pylint benchmark in Pyston's benchmark suite was no longer working. The first bad commit is 4a1c58d (@marksh...

X Description: Bug report pylint currently crashes with CPython main. I noticed this when I noticed the pylint benchmark in Pyston's benchmark suite was no longer working. The first bad commit is 4a1c58d (@ma...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pylint is broken with CPython main","articleBody":"# Bug report\r\n\r\n`pylint` currently crashes with CPython main.  I noticed this when I noticed the `pylint` benchmark in Pyston's benchmark suite was no longer working.\r\n\r\nThe first bad commit is 4a1c58d504a49eeb9be7beef3ca861a9d6b28ede (@markshannon), issue #96793, PR #98772.\r\n\r\nI don't know whether this is the result of expected breakage (and `pylint` or `astroid` needs to modify their code) or there is a specialization failure here.\r\n\r\n# Your environment\r\n\r\nLinux\r\n\r\n# To reproduce\r\n\r\n`pip install pylint==2.16.2`\r\n\r\nDownload the example Python file from [the pyston macrobenchmark suite](https://github.com/pyston/python-macrobenchmarks/blob/main/benchmarks/bm_pylint/data/pylint_target/dist.py)\r\n\r\n`pylint dist.py`\r\n\r\nBacktrace:\r\n\r\n```pytb\r\nException on node \u003cCall l.430 at 0x7ff062d76ae0\u003e in file '/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/data/pylint_target/dist.py'\r\nTraceback (most recent call last):\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/inference.py\", line 450, in infer_subscript\r\n    assigned = value.getitem(index_value, context)\r\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/nodes/node_classes.py\", line 2466, in getitem\r\n    raise AstroidIndexError(index)\r\nastroid.exceptions.AstroidIndexError: \u003cexception str() failed\u003e\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/pylint/utils/ast_walker.py\", line 91, in walk\r\n    callback(astroid)\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/pylint/checkers/base/basic_checker.py\", line 705, in visit_call\r\n    if utils.is_terminating_func(node):\r\n       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/pylint/checkers/utils.py\", line 2181, in is_terminating_func\r\n    return True\r\n           ^^^^\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/nodes/node_ng.py\", line 171, in infer\r\n    yield from self._infer(context=context, **kwargs)\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/decorators.py\", line 142, in raise_if_nothing_inferred\r\n    yield next(generator)\r\n          ^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/decorators.py\", line 119, in wrapped\r\n    yielded.add(ares)\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/inference.py\", line 380, in infer_attribute\r\n    context.boundnode = old_boundnode\r\n    ^^^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/nodes/node_ng.py\", line 184, in infer\r\n    for i, result in enumerate(self._infer(context=context, **kwargs)):\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/decorators.py\", line 142, in raise_if_nothing_inferred\r\n    yield next(generator)\r\n          ^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/decorators.py\", line 119, in wrapped\r\n    yielded.add(ares)\r\n  File \"/home/mdboom/Work/builds/python-macrobenchmarks/benchmarks/bm_pylint/venv/lib/python3.12/site-packages/astroid/inference.py\", line 458, in infer_subscript\r\n    raise InferenceError(node=self, context=context) from exc\r\nastroid.exceptions.InferenceError: Inference failed for \u003cSubscript l.430 at 0x7ff062d76b40\u003e.\r\n************* Module pylint_target.dist\r\ndata/pylint_target/dist.py:1:0: C0302: Too many lines in module (1261/1000) (too-many-lines)\r\ndata/pylint_target/dist.py:22:0: E0401: Unable to import 'distutils.errors' (import-error)\r\ndata/pylint_target/dist.py:22:0: W4901: Deprecated module 'distutils.errors' (deprecated-module)\r\ndata/pylint_target/dist.py:22:0: W0401: Wildcard import distutils.errors (wildcard-import)\r\ndata/pylint_target/dist.py:23:0: E0401: Unable to import 'distutils.fancy_getopt' (import-error)\r\ndata/pylint_target/dist.py:23:0: W4901: Deprecated module 'distutils.fancy_getopt' (deprecated-module)\r\ndata/pylint_target/dist.py:24:0: E0401: Unable to import 'distutils.util' (import-error)\r\ndata/pylint_target/dist.py:24:0: W4901: Deprecated module 'distutils.util' (deprecated-module)\r\ndata/pylint_target/dist.py:25:0: E0401: Unable to import 'distutils' (import-error)\r\ndata/pylint_target/dist.py:25:0: W4901: Deprecated module 'distutils' (deprecated-module)\r\ndata/pylint_target/dist.py:26:0: E0401: Unable to import 'distutils.debug' (import-error)\r\ndata/pylint_target/dist.py:26:0: W4901: Deprecated module 'distutils.debug' (deprecated-module)\r\ndata/pylint_target/dist.py:49:0: R0902: Too many instance attributes (27/7) (too-many-instance-attributes)\r\ndata/pylint_target/dist.py:278:26: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)\r\ndata/pylint_target/dist.py:141:4: R0912: Too many branches (18/12) (too-many-branches)\r\ndata/pylint_target/dist.py:141:4: R0915: Too many statements (60/50) (too-many-statements)\r\ndata/pylint_target/dist.py:305:8: W0622: Redefining built-in 'dict' (redefined-builtin)\r\ndata/pylint_target/dist.py:310:4: C0116: Missing function or method docstring (missing-function-docstring)\r\ndata/pylint_target/dist.py:311:8: C0415: Import outside toplevel (pprint.pformat) (import-outside-toplevel)\r\ndata/pylint_target/dist.py:328:30: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)\r\ndata/pylint_target/dist.py:331:30: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)\r\ndata/pylint_target/dist.py:382:26: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)\r\ndata/pylint_target/dist.py:386:4: C0116: Missing function or method docstring (missing-function-docstring)\r\ndata/pylint_target/dist.py:387:8: C0415: Import outside toplevel (configparser.ConfigParser) (import-outside-toplevel)\r\ndata/pylint_target/dist.py:410:30: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)\r\ndata/pylint_target/dist.py:424:12: C2801: Unnecessarily calls dunder method __init__. Instantiate class directly. (unnecessary-dunder-call)\r\ndata/pylint_target/dist.py:1:0: F0002: data/pylint_target/dist.py: Fatal error while checking 'data/pylint_target/dist.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/mdboom/.cache/pylint/pylint-crash-2023-02-14-15-25-33.txt'. (astroid-error)\r\n\r\n------------------------------------------------------------------\r\nYour code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)\r\n```\r\n","author":{"url":"https://github.com/mdboom","@type":"Person","name":"mdboom"},"datePublished":"2023-02-14T20:30:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/101914/cpython/issues/101914"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:476073a0-9cf3-47a4-3ae3-1d891a32bec6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD2FA:1672C1:4B0797:622D82:696AE241
html-safe-noncec7afe63242ab26fe6c7513031b1e1480a1ab11de581abbc6f1da2c04b01f9377
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkZBOjE2NzJDMTo0QjA3OTc6NjIyRDgyOjY5NkFFMjQxIiwidmlzaXRvcl9pZCI6IjUyNTY5NTYxMTI4MzYxNTgwMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9cc861745dc63cbcbc41a828e79afde178fdd1e8c99232f0e8c11f9c33f1c41b
hovercard-subject-tagissue:1584785769
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/101914/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fea85f7292e9951191221dd9730e1398bf886b67c4f1fd2207305f474b917169/python/cpython/issues/101914
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fea85f7292e9951191221dd9730e1398bf886b67c4f1fd2207305f474b917169/python/cpython/issues/101914
og:image:altBug report pylint currently crashes with CPython main. I noticed this when I noticed the pylint benchmark in Pyston's benchmark suite was no longer working. The first bad commit is 4a1c58d (@marksh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemdboom
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release3d84d50b3c75fa36755c3cf392edbc09e626f979
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/101914#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F101914
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%2F101914
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/101914
Reloadhttps://github.com/python/cpython/issues/101914
Reloadhttps://github.com/python/cpython/issues/101914
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/101914
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/101914
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/101914
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/101914
pylint is broken with CPython mainhttps://github.com/python/cpython/issues/101914#top
https://github.com/markshannon
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/mdboom
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Feb 14, 2023https://github.com/python/cpython/issues/101914#issue-1584785769
4a1c58dhttps://github.com/python/cpython/commit/4a1c58d504a49eeb9be7beef3ca861a9d6b28ede
@markshannonhttps://github.com/markshannon
#96793https://github.com/python/cpython/issues/96793
#98772https://github.com/python/cpython/pull/98772
the pyston macrobenchmark suitehttps://github.com/pyston/python-macrobenchmarks/blob/main/benchmarks/bm_pylint/data/pylint_target/dist.py
markshannonhttps://github.com/markshannon
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
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.