[Python-checkins] Add version{changed, added} markers and make minor style changes (GH-4273)

Berker Peksag webhook-mailer at python.org
Sat Nov 4 08:17:59 EDT 2017


https://github.com/python/cpython/commit/12d60560ac8349595d8f44b5e1ec5ff86f3f0029
commit: 12d60560ac8349595d8f44b5e1ec5ff86f3f0029
branch: master
author: Berker Peksag <berker.peksag at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-04T15:17:56+03:00
summary:

Add version{changed,added} markers and make minor style changes (GH-4273)

files:
M Doc/howto/instrumentation.rst
M Doc/library/pdb.rst
M Doc/library/zipapp.rst
M Doc/whatsnew/3.7.rst

diff --git a/Doc/howto/instrumentation.rst b/Doc/howto/instrumentation.rst
index 2ac939c5307..b9c51a4a453 100644
--- a/Doc/howto/instrumentation.rst
+++ b/Doc/howto/instrumentation.rst
@@ -317,12 +317,16 @@ Available static markers
    Fires before :mod:`importlib` attempts to find and load the module.
    ``arg0`` is the module name.
 
+   .. versionadded:: 3.7
+
 .. c:function:: import__find__load__done(str modulename, int found)
 
    Fires after :mod:`importlib`'s find_and_load function is called.
    ``arg0`` is the module name, ``arg1`` indicates if module was
    successfully loaded.
 
+   .. versionadded:: 3.7
+
 
 SystemTap Tapsets
 -----------------
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index c5d4181c35d..4f3148fb5c3 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -123,10 +123,10 @@ slightly different way:
    Enter the debugger at the calling stack frame.  This is useful to hard-code
    a breakpoint at a given point in a program, even if the code is not
    otherwise being debugged (e.g. when an assertion fails).  If given,
-   ``header`` is printed to the console just before debugging begins.
+   *header* is printed to the console just before debugging begins.
 
-   .. versionadded:: 3.7
-      The keyword-only argument ``header``.
+   .. versionchanged:: 3.7
+      The keyword-only argument *header*.
 
 
 .. function:: post_mortem(traceback=None)
diff --git a/Doc/library/zipapp.rst b/Doc/library/zipapp.rst
index 2bd65cba42e..9076593c4b1 100644
--- a/Doc/library/zipapp.rst
+++ b/Doc/library/zipapp.rst
@@ -86,6 +86,8 @@ The following options are understood:
 
    :option:`--compress` has no effect when copying an archive.
 
+   .. versionadded:: 3.7
+
 .. cmdoption:: --info
 
    Display the interpreter embedded in the archive, for diagnostic purposes.  In
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index d1792dc97ef..8d2b52bdcae 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -318,9 +318,9 @@ to be executed on a process fork.  (Contributed by Antoine Pitrou in
 pdb
 ---
 
-:func:`~pdb.set_trace` now takes an optional ``header`` keyword-only
+:func:`~pdb.set_trace` now takes an optional *header* keyword-only
 argument.  If given, this is printed to the console just before debugging
-begins.
+begins.  (Contributed by Barry Warsaw in :issue:`31389`.)
 
 re
 --



More information about the Python-checkins mailing list