Author scoder
Recipients scoder
Date 2012-11-03.12:42:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 "", line 44, in init tarfile (tarfile.c:44135)
    import shutil
  File "", 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.
Date User Action Args
2012-11-03 12:42:34scodersetrecipients: + scoder
2012-11-03 12:42:34scodersetmessageid: <>
2012-11-03 12:42:34scoderlinkissue16392 messages
2012-11-03 12:42:33scodercreate