-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Deprecation warning during text completion in REPL #113978
Comments
IDLE's completer uses 'dir(ob)' to get the list of (22) attribute names, including 'co_lnotab'. |
Are you on debug build? DeprecationWarning should be turned off on release build unless it's directly from If you can't do that, this is a much smaller issue. Personally, I don't hate warnings on debug mode. I am a bit hesitated to turn off all the warnings during text completion in REPL though. |
Thanks! ✨ 🍰 ✨ |
…onGH-113979) (cherry picked from commit e03dde5) Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
Bug report
Bug description:
Define function inside REPL session:
then try to hit TAB to get suggestions for
f.__code__.
and you will be left with this ugly output without suggestions:then try to access
co_lnotab
and you will get this warning again:>>> f.__code__.co_lnotab <stdin>-1:1: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: