Commit Graph

10 Commits

Author SHA1 Message Date
Fred Drake
8deecedc6d Thomas Heller <thomas.heller@ion-tof.com>:
ihooks.ModuleLoader does not implement reload(mod) correctly:
If mod has already been loaded by ModuleLoader, it has
been returned from a cache. Added an additional parameter
to import_it() to force reloading.
2000-04-13 14:52:27 +00:00
Guido van Rossum
9f5c36fddb Support loading of packages. (I had this coded up for a while but
didn't want to commit until it had been tested.  I presume that it
works in Grail.)
1998-06-29 20:31:16 +00:00
Guido van Rossum
45e2fbc2e7 Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
Guido van Rossum
6dc61b110f Add try-finally to close the file after loading it in
ModuleLoader.load_module!  (Thanks to Daniel Larsson who complained
about this.)
1997-08-13 14:48:36 +00:00
Guido van Rossum
a97b8eef70 Set the __file__ attribute of the imported module in both versions of
load_module(), to mimick the behavior of imp more closely.
1996-10-07 23:41:54 +00:00
Guido van Rossum
8299e46831 Don't auto-install on import. This slows down apps that use
some of our modules for special purposes (e.g. rexec).
1996-10-04 19:57:11 +00:00
Guido van Rossum
2ea05098eb close module file after loading 1996-09-10 17:37:44 +00:00
Guido van Rossum
4e15599daa Import marshal before using it :-( 1996-06-17 17:10:45 +00:00
Guido van Rossum
6a0691aee4 fix bug in reload 1995-08-09 02:32:49 +00:00
Guido van Rossum
e7e578ffe0 Initial revision 1995-08-04 04:00:20 +00:00