Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No completions appear for name/attribute _ #38

Open
dgelessus opened this issue Jun 18, 2016 · 3 comments
Open

No completions appear for name/attribute _ #38

dgelessus opened this issue Jun 18, 2016 · 3 comments

Comments

@dgelessus
Copy link

When typing _ as a name or attribute, the completion list disappears, even if there are names/attributes that start with _. Other combinations, such as __, work fine.

@lukaskollmer
Copy link
Collaborator

@dgelessus I think that's because _ is usually used for private methods or attributes

@dgelessus
Copy link
Author

@lukaskollmer Those still appear in the fuzzy completion or when typing two underscores. For example for False.repr or False.__ there are suggestions starting with underscores, but for False._ nothing appears.

Besides, it would only make sense to hide "private" attributes if the underscore was not typed. If I type False._ that's a good indication that I am trying to access a "private" attribute. This is how IDLE's completion works - (double) undescore names only appear once you type a (double) underscore.

@zrzka
Copy link
Collaborator

zrzka commented Nov 2, 2017

I'm perfectly happy with False. -> show everything, even __. Just tested this in PyCharm (default settings) and it shows everything. This one is pretty subjective and everyone expects little bit different behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants