Skip to content

IDLE does not recognize '.py' as a python file #125002

@Mm12345678910

Description

@Mm12345678910

Bug report

Bug description:

when I just wrote this program, and just save it with name .py, the highlight does not work.

p=1
t=1
while 1:
    p*=0.95
    t+=1
    print(p,t)

.py's highlight
But, when I just rename it with 1.py, the highlight works.
1.py's highlight

I'm using Windows 11, Python 3.13.0b4.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-IDLEtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions