You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Admin\Downloads\python-3.13.0-embed-amd64>pythonPython3.13.0 (tags/v3.13.0:60403a5, Oct72024, 09:38:07) [MSCv.194164bit (AMD64)] onwin32>>>foriinrange(5):
... # a comment goes here
... # now the repl indents to here
... # then here
... print(i)
...
01234>>>>>>foriinrange(5):
... print(i)
... # now put a comment here
... # no problem
...
01234>>>>>>ifi==4:
... # comment here
... #it indented to here
... print("yes")
... else:
... print("no")
...
yes>>>>>>defeven_or_odd(num):
... # comment here
... #it indents too far
... print("calculating...")
... return'eovdedn'[num%2::2]
...
>>>>>>fornumin [0, 1, 2, 3, 4, 5, 100, 100000000, 1000000000000005]:
... # comment here
... #indents too far
... print(f"{num} is {even_or_odd(num)}")
...
calculating...
0isevencalculating...
1isoddcalculating...
2isevencalculating...
3isoddcalculating...
4isevencalculating...
5isoddcalculating...
100isevencalculating...
100000000isevencalculating...
1000000000000005isodd>>>
I apologize if this has already been brought up, I couldn't find it.
The issue: In the new 3.13.0 REPL, if you open a loop, function, if statement, or anything that requires indentation, and then start the next line with a comment, it indents extra spaces.
I have a few examples above.
My PC: Windows 11
python version: 3.13.0
Steps to reproduce:
Download an install python 3.13.0 and open the python repl.
start a for loop and press enter : E.G. for i in range(5):
start the next line with a comment and press enter: E.G. # My comment here
it will indent another level which is too far
Thank you so much everyone for python development and I hope I explained the issue clearly.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered:
Bug report
Bug description:
I apologize if this has already been brought up, I couldn't find it.
The issue: In the new 3.13.0 REPL, if you open a loop, function, if statement, or anything that requires indentation, and then start the next line with a comment, it indents extra spaces.
I have a few examples above.
My PC: Windows 11
python version: 3.13.0
Steps to reproduce:
for i in range(5):
# My comment here
Thank you so much everyone for python development and I hope I explained the issue clearly.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: