Skip to content

Built-in names should not be highlighted when used as attribute names #138318

Closed

Description

@yihong0618

Bug report

Bug description:

We remove REPL highlighting when a builtin name is used as an attribute name. Keywords will still be highlighted as they can never be used as valid attribute names.

Image

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Activity

  1. picnixz commented on Sep 1, 2025

    @picnixz
    Member

    I think it's legitimate that we highlight keywords to indicate that it's not allowed actually.

  2. added
    pendingThe issue will be closed if no feedback is provided
    on Sep 1, 2025
  3. changed the title [-]in new repl xx.keyword shout not be highlight[/-] [+]in new repl xx.buildin word should not be highlight[/+] on Sep 2, 2025
  4. yihong0618 commented on Sep 2, 2025

    @yihong0618
    ContributorAuthor

    I think it's legitimate that we highlight keywords to indicate that it's not allowed actually.

    will only change the buildin words thank you

  5. added
    stdlibStandard Library Python modules in the Lib/ directory
    and removed
    pendingThe issue will be closed if no feedback is provided
    on Sep 2, 2025
  6. changed the title [-]in new repl xx.buildin word should not be highlight[/-] [+]builtins should not be highlighted when used as attribute names[/+] on Sep 2, 2025
  7. changed the title [-]builtins should not be highlighted when used as attribute names[/-] [+]Built-in names should not be highlighted when used as attribute names[/+] on Sep 2, 2025
  8. added a commit that references this issue on Sep 8, 2025
  9. added a commit that references this issue on Sep 8, 2025
  10. added a commit that references this issue on Sep 8, 2025
  11. added a commit that references this issue on Sep 9, 2025
  12. added a commit that references this issue on Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-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