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
Py3 Python console: tab completion no longer shows private attributes #9918
Comments
I do not reproduce on latest threshold snapshot (18031 - ae3747a). IMHO, if we have something to fix here, an ideal behavior would be as follows:
|
Threshold is still python 2, this is related to py3_staging.
|
My bad. I indeed reproduce - and quite like it - on latest threshold_py3_staging snapshot (18054 - 92458e9). +1 for keeping this behavior and documenting it as an improvement. |
cc @feerrenrut |
+1 for leaving it as-is, with added changelog entry.
|
Yes, I'm happy with this also. Happy to take a suggestion for the changelog. Does the userguide/devguide need an update? |
The userGuide only points to the devGuide: No impact needed IMHO. Proposed changelog entry: Section: Changes for developpers |
In the Python console, the tab-completion is smarter with Python 3. Auto complete does not suggest attribute names starting with underscore until an underscore is typed, or a double underscore for attributes with two. Fixes #9918
Is your feature request related to a problem? Please describe.
In python 2, pressing tab in the python console gives us auto completion for an object. For example, typing
nav.
followed with tab gives us all the properties on the cached navigator object, including the ones starting with one or two underscores. In python 3 however, these attributes are hidden.Describe the solution you'd like
I think I like this new approach, but it should be documented as a change in the section of changes for developers.
Describe alternatives you've considered
Restore the python 2 behavior.
The text was updated successfully, but these errors were encountered: