[New-bugs-announce] [issue16392] frozen importlib crashes on circular imports in ext modules
Stefan Behnel
report at bugs.python.org
Sat Nov 3 13:42:34 CET 2012
New submission from Stefan Behnel:
After compiling the stdlib with Cython with the attached script, modules that use circular imports fail to initialise. That includes os and posixpath, as well as shutil and tarfile. Example:
$ ./python -c 'import shutil'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "tarfile.py", line 44, in init tarfile (tarfile.c:44135)
import shutil
File "shutil.py", line 14, in init shutil (shutil.c:22497)
import tarfile
File "<frozen importlib._bootstrap>", line 1556, in _find_and_load
RuntimeError: maximum recursion depth exceeded
I've tried this with the latest CPython 3.4 hg version, but I'm pretty sure it fails in Py3.3 as well.
----------
components: Interpreter Core
files: cystdlib.py
messages: 174612
nosy: scoder
priority: normal
severity: normal
status: open
title: frozen importlib crashes on circular imports in ext modules
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file27851/cystdlib.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16392>
_______________________________________
More information about the New-bugs-announce
mailing list