> * Imports are fiendishly complex, hidden below deceptively simple > syntax. > > It's a reasonable expectation that one can import a module from a > source code file given its path on the filesystem, but this turns out > to be much more complicated than in many other languages.
Why is this so difficult? Add a Graph class to the collections module (networkx is quite good) and simply check for circular imports. The remaining difficulty I encounter is because the user hasn't defined their PYTHONPATH variable. -- MarkJ Tacoma, Washington -- https://mail.python.org/mailman/listinfo/python-list