summaryrefslogtreecommitdiffstats
path: root/Lib/ihooks.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Get rid of many apply() calls.Guido van Rossum2003-02-271-2/+2
|
* Applying patchGustavo Niemeyer2002-12-161-4/+7
| | | | | | | | | | | | | | | | | | | | | [#636769] Fix for major rexec bugs * Lib/rexec.py (FileBase): Added 'xreadlines' and '__iter__' to allowed file methods. (FileWrapper.__init__): Removed unnecessary self.f variable, which gave direct access to the file object. (RExec): Added 'xreadlines' and '_weakref' to allowed modules. (RExec.r_open): Convert string subclasses to a real string classes before doing comparisons with mode parameter. * Lib/ihooks.py (BasicModuleImporter.import_module/reload/unload): Convert the module name to a real string before working with it. (ModuleImporter.import_module/import_it/reload): Convert the module name to a real strings before working with it. * Misc/NEWS Document the change.
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-4/+4
|
* String method conversion.Eric S. Raymond2001-02-091-5/+4
|
* added a few more __all__ listsSkip Montanaro2001-01-231-1/+3
| | | | fixed typo in ihooks docstring
* Whitespace normalization.Tim Peters2001-01-141-2/+2
|
* Thomas Heller <thomas.heller@ion-tof.com>:Fred Drake2000-04-131-7/+8
| | | | | | | 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.
* Support loading of packages. (I had this coded up for a while butGuido van Rossum1998-06-291-34/+172
| | | | | didn't want to commit until it had been tested. I presume that it works in Grail.)
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-138/+138
|
* Add try-finally to close the file after loading it inGuido van Rossum1997-08-131-13/+16
| | | | | ModuleLoader.load_module! (Thanks to Daniel Larsson who complained about this.)
* Set the __file__ attribute of the imported module in both versions ofGuido van Rossum1996-10-071-7/+11
| | | | load_module(), to mimick the behavior of imp more closely.
* Don't auto-install on import. This slows down apps that useGuido van Rossum1996-10-041-6/+0
| | | | some of our modules for special purposes (e.g. rexec).
* close module file after loadingGuido van Rossum1996-09-101-10/+13
|
* Import marshal before using it :-(Guido van Rossum1996-06-171-0/+1
|
* fix bug in reloadGuido van Rossum1995-08-091-0/+1
|
* Initial revisionGuido van Rossum1995-08-041-0/+365