]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
* import.c (get_module): total rewrite, to ensure proper search order: for
authorGuido van Rossum <guido@python.org>
Wed, 17 Nov 1993 22:58:56 +0000 (22:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 17 Nov 1993 22:58:56 +0000 (22:58 +0000)
commitc45611d0e33ddd96fb9fffa8dc42a96384d5d270
tree343959ada4542b5d4abc0a50802f434072da8e8b
parent71e57d090d070686746ee63b855e38cb337dc5cc
* import.c (get_module): total rewrite, to ensure proper search order: for
  each dir in sys.path, try each possible extension.  (Note: C extensions
  are loaded before Python modules in the same directory, to allow having
  a C version used when dynamic loading is supported and a Python version
  as a back-up.)
* import.c (reload_module): test for error from getmodulename()
* moduleobject.c: implement module name as dict entry '__name__' instead
  of special-casing it in module_getattr(); this way a module (or
  function!) can access its own module name, and programs that know what
  they are doing can rename modules.
* stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
Modules/stdwinmodule.c
Objects/moduleobject.c
Python/import.c