-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
topic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Define function inside REPL session:
>>> def f():pass
then try to hit TAB to get suggestions for f.__code__.
and you will be left with this ugly output without suggestions:
>>> f.__code__./root/Desktop/cpython-main/Lib/rlcompleter.py:191: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
if (value := getattr(thisobject, word, None)) is not None:
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
Metadata
Metadata
Assignees
Labels
topic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error