Skip to content

[3.9] bpo-44752: Make rlcompleter not call @property methods (GH-27401) #27445

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

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 29, 2021

  • rlcompleter was calling these methods to identify whether to add
    parenthesis to the completion, based on if the attribute is callable.
  • for property objects, completion with parenthesis are never desirable.
  • property methods with print statements behaved very strangely, which
    was especially unfriendly to language newcomers. could suddenly
    produce output unexpectedly.
    (cherry picked from commit 50de8f7)

Co-authored-by: Jack DeVries 58614260+jdevries3133@users.noreply.github.com

https://bugs.python.org/issue44752

)

* rlcompleter was calling these methods to identify whether to add
  parenthesis to the completion, based on if the attribute is callable.
* for property objects, completion with parenthesis are never desirable.
* property methods with print statements behaved very strangely, which
  was especially unfriendly to language newcomers. <tab> could suddenly
  produce output unexpectedly.
(cherry picked from commit 50de8f7)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
@miss-islington
Copy link
Contributor Author

@jdevries3133 and @ambv: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@jdevries3133 and @ambv: Status check is done, and it's a success ✅ .

@ambv ambv merged commit acaf3b9 into python:3.9 Jul 29, 2021
@bedevere-bot
Copy link

@ambv: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington miss-islington deleted the backport-50de8f7-3.9 branch July 29, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants