Title: REPL does not show completions for some members of the Enum module · Issue #139398 · python/cpython · GitHub
Open Graph Title: REPL does not show completions for some members of the Enum module · Issue #139398 · python/cpython
X Title: REPL does not show completions for some members of the Enum module · Issue #139398 · python/cpython
Description: Bug report Bug description: While working on improving the Enum documentation, I noticed that all Enum _sunder_ names are not shown in the completion suggestions. Some examples: Enum._add_alias_ Enum._add_value_alias_ $ ./python Python 3...
Open Graph Description: Bug report Bug description: While working on improving the Enum documentation, I noticed that all Enum _sunder_ names are not shown in the completion suggestions. Some examples: Enum._add_alias_ En...
X Description: Bug report Bug description: While working on improving the Enum documentation, I noticed that all Enum _sunder_ names are not shown in the completion suggestions. Some examples: Enum._add_alias_ En...
Opengraph URL: https://github.com/python/cpython/issues/139398
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"REPL does not show completions for some members of the Enum module","articleBody":"# Bug report\n\n### Bug description:\n\nWhile working on improving the Enum documentation, I noticed that all [Enum \\_sunder\\_ names](https://docs.python.org/3/library/enum.html#supported-sunder-names) are not shown in the completion suggestions. Some examples:\n\n* [`Enum._add_alias_`](https://docs.python.org/3/library/enum.html#enum.Enum._add_alias_)\n* [`Enum._add_value_alias_`](https://docs.python.org/3/library/enum.html#enum.Enum._add_value_alias_)\n\n\n```python\n$ ./python\nPython 3.15.0a0 (heads/main:e18dda96c9, Sep 28 2025, 18:14:51) [GCC 13.3.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\nCtrl click to launch VS Code Native REPL\n\u003e\u003e\u003e from enum import Enum\n\u003e\u003e\u003e Enum._\nEnum._add_member_( Enum._convert_( Enum._find_data_repr_( Enum._find_new_(\nEnum._check_for_existing_members_( Enum._create_( Enum._find_data_type_( Enum._get_mixins_(\n\u003e\u003e\u003e Enum._add_alias_\n\u003cfunction Enum._add_alias_ at 0x7d38f05fc1d0\u003e\n```\n\nI don't know if this also affects other modules... but I guess it would be great to have a test that checks the completion coverage of the REPL across the stdlib - or is there already a test like this?\n\nEither way, I'm happy to help fix this issue and create a PR if one could guide me to the place where the REPL builds the \"completion database\" 🙂 \n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139418\n* gh-139985\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/RafaelWO","@type":"Person","name":"RafaelWO"},"datePublished":"2025-09-28T16:33:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/139398/cpython/issues/139398"}
| 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:c8b3e4b8-bc29-ae56-799f-d984b44b7447 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D702:2C1C1A:2432C7:32410E:6A5333BD |
| html-safe-nonce | d03f243b5860265047bf73e3dcb0dcf1944b1a236352a34d34dbb67f2855841a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzAyOjJDMUMxQToyNDMyQzc6MzI0MTBFOjZBNTMzM0JEIiwidmlzaXRvcl9pZCI6IjI4ODE3MDM0NDcxMzIwNTg1NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7385b4f6a5bad5baf1f1b0aec6d1bfea7f7d59357dc0b891cf66dcbd37f7ebdf |
| hovercard-subject-tag | issue:3462194207 |
| 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/python/cpython/139398/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9bd7d61ee8ac99311f7a3839d173cbb50e28a21712a6ee8cf427b1d42607f391/python/cpython/issues/139398 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9bd7d61ee8ac99311f7a3839d173cbb50e28a21712a6ee8cf427b1d42607f391/python/cpython/issues/139398 |
| og:image:alt | Bug report Bug description: While working on improving the Enum documentation, I noticed that all Enum _sunder_ names are not shown in the completion suggestions. Some examples: Enum._add_alias_ En... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RafaelWO |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width