[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Irit Katriel
Irit Katriel added the comment: Actually I can check too :) And it was fixed: iritkatriel@Irits-MBP cpython % echo Coucou > '' iritkatriel@Irits-MBP cpython % ./python.exe -c 'raise ValueError' Traceback (most recent call last): File "", line 1, in ValueError iritkatriel@Irits-MBP cpython

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Irit Katriel
Irit Katriel added the comment: Can you check on 3.11? I believe it was fixed under issue1514420. -- nosy: +iritkatriel resolution: -> duplicate superseder: -> Traceback display code can attempt to open a file named "" ___ Python tracker

[issue45596] Python opens the ./ file on exception while using -c

2021-10-24 Thread Julien Palard
New submission from Julien Palard : When running `python -c 'raise ValueError'` Python tries to open the '' file, so: $ echo Coucou > '' $ python -c 'raise ValueError' Traceback (most recent call last): File "", line 1, in Coucou ValueError -- messages: