Experiences/guidance on teaching Python as a first programming language
rosuav at gmail.com
Thu Dec 19 05:26:34 CET 2013
On Thu, Dec 19, 2013 at 3:16 PM, Roy Smith <roy at panix.com> wrote:
> It's pretty common here to have people ask questions about how import
> works. How altering sys.path effects import. Why is import not finding
> my module? You quickly get into things like virtualenv, and now you've
> got modules coming from your source tree, from your vitualenv, from your
> system library. You need to understand all of that to make it all work.
Python might one day want to separate "system paths" from "local
paths", to give the same effect as:
where the current directory won't be searched for stdio.h. But other
than that, it's exactly the same consideration in either Python or C.
More information about the Python-list