Skip to content

bpo-29630: don't run code on tab-completion #248

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

Closed
wants to merge 1 commit into from
Closed

bpo-29630: don't run code on tab-completion #248

wants to merge 1 commit into from

Conversation

franciscod
Copy link

On rlcompleter.py, instead of using getattr directly, check if dealing with a property with inspect.getattr_static, so tab-completion doesn't trigger properties' getter execution.

Trivia: here's a silly gist with some links while I was tracking down this thing.

Use inspect.getattr_static to check if dealing with a property,
and avoid calling getattr on it.
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow these steps to rectify the issue:

  1. Sign the PSF contributor agreement
  2. Wait at least one US business day and then check "Your Details" on bugs.python.org to see if your account has been marked as having signed the CLA (the delay is due to a person having to manually check your signed CLA)
  3. Reply here saying you have completed the above steps

Thanks again to your contribution and we look forward to looking at it!

@franciscod
Copy link
Author

Closing, not a bug!

@franciscod franciscod closed this Feb 23, 2017
akruis pushed a commit to akruis/cpython that referenced this pull request May 21, 2021
Mention, that module "stackless" must be imported, to enable the
extended pickling capabilities.

(cherry picked from commit c5cabba)
akruis pushed a commit to akruis/cpython that referenced this pull request May 27, 2021
Mention, that module "stackless" must be imported, to enable the
extended pickling capabilities.
jaraco pushed a commit that referenced this pull request Dec 2, 2022
jaraco added a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
jaraco added a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
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.

2 participants