[issue30626] "SystemError: <class '_io.TextIOWrapper'> returned NULL without setting an error" from open function

Nick Coghlan report at bugs.python.org
Sat Jun 10 21:48:12 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30626>
_______________________________________


More information about the Python-bugs-list mailing list