summaryrefslogtreecommitdiffstats
path: root/Lib/runpy.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | Patch by Serhiy Storchaka.
* Merged revisions 85398 via svnmerge fromBenjamin Peterson2010-10-131-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85398 | benjamin.peterson | 2010-10-12 20:04:36 -0500 (Tue, 12 Oct 2010) | 1 line account for the module __dict__ being cleared when its module is ........
* remove the svn:executable property from files that don't have shebang linesBenjamin Peterson2010-03-051-0/+0
|
* Fix comment typo.R. David Murray2009-12-201-1/+1
|
* Issue #6816: expose the zipfile and directory execution mechanism to Python ↵Nick Coghlan2009-11-151-35/+152
| | | | code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
* Some minor cleanups to private runpy code and docstringsNick Coghlan2009-11-071-7/+13
|
* Issue 4195: Restore the ability to execute packages with the -m switch (but ↵Nick Coghlan2009-02-081-6/+12
| | | | this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda)
* Fix several issues relating to access to source code inside zipfiles. ↵Nick Coghlan2008-12-141-6/+7
| | | | Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
* 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