Phillip J. Eby schrieb: > At 08:10 PM 9/22/2006 +0200, Thomas Heller wrote: >>If x.py contains this: >> >>""" >>from ..b import y >>import a.b.x >>from ..b import x >>""" ... >>ImportError: cannot import name x >> >>> >> >>A bug? > > If it is, it has nothing to do with relative importing per se. Note that > changing it to "from a.b import x" produces the exact same error. > > This looks like a "standard" circular import bug.
Of course. Thanks. Thomas _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com