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):
Brett Cannon added the comment:
I don't mean for this to sound rude, but this seems like a Cython issue and not
one for the stdlib. Can you reproduce the problem without using Cython? The new
per-module locking mechanism Antoine prevents this from being a problem
normally, so it makes me
Antoine Pitrou added the comment:
Well, it might be a legitimate issue, but due to the setup needed to reproduce,
I would hope a Cython developer could do the diagnosis and possibly submit a
patch.
--
___
Python tracker rep...@bugs.python.org
Stefan Behnel added the comment:
Well, it's not like the setup was all that difficult. 1) Install the latest
github master of Cython (they provide one-click archives that pip can install
for you), 2) change into the CPython stdlib directory and run the script I
attached, 3) execute import os
Changes by Stefan Behnel sco...@users.sourceforge.net:
Added file: http://bugs.python.org/file27865/cystdlibbug.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16392
___