Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deprecation warning during text completion in REPL #113978

Closed
Labels
topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error
@WolframAlph

Description

@WolframAlph

Bug report

Bug description:

Define function inside REPL session:

>>>deff():pass

then try to hit TAB to get suggestions forf.__code__. and you will be left with this ugly output without suggestions:

>>> f.__code__./root/Desktop/cpython-main/Lib/rlcompleter.py:191:DeprecationWarning: co_lnotabis deprecated, use co_lines instead.  if (value := getattr(thisobject, word, None)) is not None:

then try to accessco_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

No one assigned

    Labels

    topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp