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

Fix Python console auto-completion #859

Merged
merged 2 commits into from
Apr 15, 2019
Merged

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Apr 15, 2019

No description provided.

jcfr added 2 commits April 15, 2019 17:22
This commit fixes ctkPythonConsoleCompleter. The failure to check the
value returned by PyObject_GetAttrString caused the error flag to be set
and led to an inconsistent completer state. This was a problem only when
built against Python3.

Instead of explicitly checking the type of value returned by "PyObject_GetAttrString()",
the function "PyErr_Print()" could have been called after the call to
"PyObject_GetAttrString". This would have also cleared the internal error
flag was not cleared and printed the following error:

  TypeError: bad argument type for built-in operation
@jcfr jcfr force-pushed the python3-fix-python-autocomplete branch from 5350a2c to 5dc3396 Compare April 15, 2019 21:22
@jcfr jcfr merged commit 2e1c6b0 into master Apr 15, 2019
@jcfr jcfr deleted the python3-fix-python-autocomplete branch April 15, 2019 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant