import parser does not import parser.py in same dir on win

Fredrik Lundh fredrik at pythonware.com
Sat Nov 11 10:26:54 EST 2006


Joel Hedlund wrote:

> It turns out that on Windows, the builtin parser module is imported 
> instead. Why?

the table of built-in modules are checked before searching the path.

> Why is there a difference? What other names are "taken"?

depends on how the interpreter is built; there's a sys variable that 
contains a list of all built-ins:

     http://effbot.org/pyref/sys.builtin_module_names

</F>




More information about the Python-list mailing list