Language design

Mark Janssen dreamingforward at gmail.com
Wed Sep 11 17:22:21 EDT 2013


> * 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



More information about the Python-list mailing list