Commit f2f3a044 authored by Nick Coghlan's avatar Nick Coghlan

Merged revisions 82439 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82439 | nick.coghlan | 2010-07-03 01:50:14 +1000 (Sat, 03 Jul 2010) | 1 line

  Fix a couple of minor nits in What's New before the release goes out
........
parent e49cea59
...@@ -861,10 +861,10 @@ across operating systems and shells.) ...@@ -861,10 +861,10 @@ across operating systems and shells.)
When running a module using the interpreter's :option:`-m` switch, When running a module using the interpreter's :option:`-m` switch,
``sys.argv[0]`` will now be set to the string ``'-m'`` while the ``sys.argv[0]`` will now be set to the string ``'-m'`` while the
module is being located, while executing the :file:`__init__.py` files module is being located. This change is visible to user code while
for any parent packages of the module to be executed. executing the :file:`__init__.py` files for any parent packages of
(Suggested by Michael Foord; implemented by Nick Coghlan; the module to be executed. (Suggested by Michael Foord; implemented
:issue:`8202`.) by Nick Coghlan; :issue:`8202`.)
.. ====================================================================== .. ======================================================================
...@@ -1420,9 +1420,9 @@ changes, or look through the Subversion logs for all the details. ...@@ -1420,9 +1420,9 @@ changes, or look through the Subversion logs for all the details.
``sys.path`` and the module :mod:`__main__` will be imported. It's ``sys.path`` and the module :mod:`__main__` will be imported. It's
expected that the directory or zip contains a :file:`__main__.py`; expected that the directory or zip contains a :file:`__main__.py`;
if it doesn't, some other :file:`__main__.py` might be imported from if it doesn't, some other :file:`__main__.py` might be imported from
a location later in ``sys.path``. This makes some of the machinery a location later in ``sys.path``. This makes more of the machinery
of :mod:`runpy` available to scripts that want to mimic the way of :mod:`runpy` available to scripts that want to mimic the way
Python's :option:`-m` processes an explicit path name. Python's command line processes an explicit path name.
(Added by Nick Coghlan; :issue:`6816`.) (Added by Nick Coghlan; :issue:`6816`.)
* New function: in the :mod:`shutil` module, :func:`~shutil.make_archive` * New function: in the :mod:`shutil` module, :func:`~shutil.make_archive`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment