Message368890
> I agree with @p-ganssle, If exist some problem on initialize Python interpreter it would be great if it return a non-zero status and avoid an abort()
Since Python 3.8 (PEP 587), Python no longer call abort() on initialization error.
$ echo bug > abc.py
$ PYTHONPATH=$PWD python3.8 -c pass
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Python runtime state: core initialized
Traceback (most recent call last):
File "/usr/lib64/python3.8/io.py", line 52, in <module>
File "/home/vstinner/abc.py", line 1, in <module>
NameError: name 'bug' is not defined
I don't think that it's worth it to change Python 3.7.
The initial issue was that abort() was called in this case. It's no longer the case, so I close the issue.
If someone cares abou the more general issue with the current directory being added to sys.path, please open a separated issue (or look for existing issues). |
|
Date |
User |
Action |
Args |
2020-05-15 01:01:35 | vstinner | set | recipients:
+ vstinner, eric.snow, p-ganssle, eamanu, xtreak |
2020-05-15 01:01:35 | vstinner | set | messageid: <1589504495.56.0.672144426361.issue35969@roundup.psfhosted.org> |
2020-05-15 01:01:35 | vstinner | link | issue35969 messages |
2020-05-15 01:01:34 | vstinner | create | |
|