Nick Coghlan added the comment:

I couldn't reproduce this on 3.7, but I can confirm that 3.6 gives a 
SystemError with the above code:

$ ./python _issue30626.py
Traceback (most recent call last):
  File "_issue30626.py", line 30, in <module>
    exec("open(__file__)",dct)
  File "<string>", line 1, in <module>
SystemError: <class '_io.TextIOWrapper'> returned NULL without setting an error

It's plausible this was fixed as part of the interpreter startup refactoring, 
so I doubt we're going to able to easily isolate the specific change that fixed 
it :(

----------
stage:  -> needs patch
versions: +Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to