Title: crash caused by unimplemented code feature · Issue #8695 · pylint-dev/pylint · GitHub
Open Graph Title: crash caused by unimplemented code feature · Issue #8695 · pylint-dev/pylint
X Title: crash caused by unimplemented code feature · Issue #8695 · pylint-dev/pylint
Description: Bug description I created a python class EntryExit that implements enter(...) and exit(...). when I use with EntryExit() as e_e: I would assume that the variable e_e is instantiated, but that does not happen, e_e remains None pylint cras...
Open Graph Description: Bug description I created a python class EntryExit that implements enter(...) and exit(...). when I use with EntryExit() as e_e: I would assume that the variable e_e is instantiated, but that does ...
X Description: Bug description I created a python class EntryExit that implements enter(...) and exit(...). when I use with EntryExit() as e_e: I would assume that the variable e_e is instantiated, but that does ...
Opengraph URL: https://github.com/pylint-dev/pylint/issues/8695
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"crash caused by unimplemented code feature","articleBody":"### Bug description\n\nI created a python class EntryExit that implements __enter__(...) and __exit__(...).\r\nwhen I use \r\n with EntryExit() as e_e:\r\n\r\nI would assume that the variable e_e is instantiated, but that does not happen, e_e remains None\r\n\r\npylint crashes on this code\r\npython causes an AttributeError \r\n\r\nsee also the uploaded file\n\n### Configuration\n\n_No response_\n\n### Command used\n\n```shell\n.../pylint.exe tester.py\n```\n\n\n### Pylint output\n\n```shell\nException on node \u003cCall l.44 at 0x1fd8c99fc80\u003e in file 'C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\tester.py'\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\venv\\Lib\\site-packages\\astroid\\decorators.py\", line 143, in raise_if_nothing_inferred\r\n yield next(generator)\r\n ^^^^^^^^^^^^^^^\r\nStopIteration\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 \"C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\venv\\Lib\\site-packages\\pylint\\utils\\ast_walker.py\", line 91, in walk\r\n callback(astroid)\r\n File \"C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\venv\\Lib\\site-packages\\pylint\\checkers\\base\\basic_checker.py\", line 713, in visit_call\r\n if utils.is_terminating_func(node):\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\venv\\Lib\\site-packages\\pylint\\checkers\\utils.py\", line 2202, in is_terminating_func\r\n return True\r\n ^^^^\r\n File \"C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\venv\\Lib\\site-packages\\astroid\\nodes\\node_ng.py\", line 171, in infer\r\n yield from self._infer(context=context, **kwargs)\r\n File \"C:\\Users\\hsalo\\source\\repos\\Buku Pintar\\2020\\Python_312\\tester\\venv\\Lib\\site-packages\\astroid\\decorators.py\", line 149, in raise_if_nothing_inferred\r\n raise InferenceError(\r\nastroid.exceptions.InferenceError: StopIteration raised without any error information.\n```\n\n\n### Expected behavior\n\nsomething about unsupported code or that the variable is None\n\n### Pylint version\n\n```shell\npython 3.12 (also on version 3.11)\n```\n\n\n### OS / Environment\n\nWindows, using Pycharm 2023.1.1\n\n### Additional dependencies\n\nnone\r\n[pylint-crash-2023-05-17-14-01-33.txt](https://github.com/pylint-dev/pylint/files/11497824/pylint-crash-2023-05-17-14-01-33.txt)\r\n","author":{"url":"https://github.com/Pippin555","@type":"Person","name":"Pippin555"},"datePublished":"2023-05-17T12:08:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/8695/pylint/issues/8695"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fdbfad9c-9aed-89cc-1bef-b8f3162699f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 865C:1DA1E5:1D65AB:28DE98:6997420E |
| html-safe-nonce | 12263df6756a556ee7ec72b810200ac84d0ef82e6183ec823d0660fd18bd2a02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjVDOjFEQTFFNToxRDY1QUI6MjhERTk4OjY5OTc0MjBFIiwidmlzaXRvcl9pZCI6Ijc2NTU1NzEwNzcwNzEzMjM2NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ec79022560437e02fb54f91710499f0e20d81eb175d7bd12b97b3d58d620ea17 |
| hovercard-subject-tag | issue:1713762514 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pylint-dev/pylint/8695/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3054df6c4ac669c013ee2bc27a5d835fabc577985a90b30c9f1a524b0a1f1896/pylint-dev/pylint/issues/8695 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3054df6c4ac669c013ee2bc27a5d835fabc577985a90b30c9f1a524b0a1f1896/pylint-dev/pylint/issues/8695 |
| og:image:alt | Bug description I created a python class EntryExit that implements enter(...) and exit(...). when I use with EntryExit() as e_e: I would assume that the variable e_e is instantiated, but that does ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Pippin555 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4051f96c6e8abed71a9051f31a91e56a5b78dbd22af9b86a5de9e4493e4ac468 |
| turbo-cache-control | no-preview |
| go-import | github.com/pylint-dev/pylint git https://github.com/pylint-dev/pylint.git |
| octolytics-dimension-user_id | 121692054 |
| octolytics-dimension-user_login | pylint-dev |
| octolytics-dimension-repository_id | 47671127 |
| octolytics-dimension-repository_nwo | pylint-dev/pylint |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47671127 |
| octolytics-dimension-repository_network_root_nwo | pylint-dev/pylint |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 842afcb83d8006175f81238b3e8b0b446952f8e0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width