summaryrefslogtreecommitdiffstats
path: root/Lib/runpy.py
Commit message (Collapse)AuthorAgeFilesLines
* Try to make command line error messages from runpy easier to understand (and ↵Nick Coghlan2008-02-221-1/+17
| | | | suppress traceback cruft from the implicitly invoked runpy machinery)
* Implement PEP 366Nick Coghlan2007-12-031-8/+12
|
* Fix bug 1764407 - the -i switch now does the right thing when using the -m ↵Nick Coghlan2007-08-251-35/+56
| | | | switch
* Revert misguided attempt at fixing incompatibility between -m and -i ↵Nick Coghlan2007-08-251-9/+24
| | | | switches (better fix coming soon)
* Fix an incompatibility between the -i and -m command line switches as ↵Nick Coghlan2007-07-241-24/+9
| | | | reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates
* Correctly cleanup sys.modules after executing runpy relative importNick Coghlan2007-07-231-2/+5
| | | | | | tests Restore Python 2.4 ImportError when attempting to execute a package (as imports cannot be guaranteed to work properly if you try it)
* Revert the __module_name__ changes made in rev 47142. We'll revisit this in ↵Nick Coghlan2006-07-061-21/+13
| | | | Python 2.6
* Make full module name available as __module_name__ even when __name__ is set ↵Nick Coghlan2006-06-281-13/+21
| | | | to something else (like '__main__')
* First phase of refactoring for runpy, pkgutil, pydoc, and setuptoolsPhillip J. Eby2006-04-171-339/+16
| | | | | | | | | | | | | | | | to share common PEP 302 support code, as described here: http://mail.python.org/pipermail/python-dev/2006-April/063724.html This revision strips all the PEP 302 emulation code from runpy, replacing it with published API classes and functions in pkgutil, mostly using setuptools' implementation of common functionality, but adding features from runpy, and doing some refactoring to make the layer pydoc needs easier to implement on top of this. One step down, four to go, although step #4 (adding C versions of the new APIs to 'imp') may not be able to make it in time for alpha 2. We'll see how that goes.
* Whitespace normalization.Tim Peters2006-03-251-2/+2
|
* run_module shouldn't hold the import lock when running a scriptNick Coghlan2006-03-241-13/+9
|
* Whitespace normalization.Tim Peters2006-03-151-5/+5
|
* Implement PEP 338 which has been marked as accepted by GvRNick Coghlan2006-03-151-0/+431