Skip to content

Commit 5ebd3e5

Browse files
committed
Merge branch 'master' into bpo-19670-cookie
2 parents 74366e0 + 6dcbc24 commit 5ebd3e5

File tree

277 files changed

+4680
-3876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+4680
-3876
lines changed

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ clean:
143143
venv:
144144
$(PYTHON) -m venv $(VENVDIR)
145145
$(VENVDIR)/bin/python3 -m pip install -U pip setuptools
146-
$(VENVDIR)/bin/python3 -m pip install -U Sphinx==2.2.0 blurb python-docs-theme
146+
$(VENVDIR)/bin/python3 -m pip install -U Sphinx==2.3.1 blurb python-docs-theme
147147
@echo "The venv has been created in the $(VENVDIR) directory"
148148

149149
dist:

Doc/c-api/abstract.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ but whose items have not been set to some non-\ ``NULL`` value yet.
2424
mapping.rst
2525
iter.rst
2626
buffer.rst
27-
objbuffer.rst

Doc/c-api/objbuffer.rst

Lines changed: 0 additions & 55 deletions
This file was deleted.

Doc/data/refcounts.dat

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,21 +1568,6 @@ PyOS_FSPath:PyObject*:path:0:
15681568
PyObject_ASCII:PyObject*::+1:
15691569
PyObject_ASCII:PyObject*:o:0:
15701570

1571-
PyObject_AsCharBuffer:int:::
1572-
PyObject_AsCharBuffer:PyObject*:obj:0:
1573-
PyObject_AsCharBuffer:const char**:buffer::
1574-
PyObject_AsCharBuffer:Py_ssize_t*:buffer_len::
1575-
1576-
PyObject_AsReadBuffer:int:::
1577-
PyObject_AsReadBuffer:PyObject*:obj:0:
1578-
PyObject_AsReadBuffer:const void**:buffer::
1579-
PyObject_AsReadBuffer:Py_ssize_t*:buffer_len::
1580-
1581-
PyObject_AsWriteBuffer:int:::
1582-
PyObject_AsWriteBuffer:PyObject*:obj:0:
1583-
PyObject_AsWriteBuffer:void**:buffer::
1584-
PyObject_AsWriteBuffer:Py_ssize_t*:buffer_len::
1585-
15861571
PyObject_Bytes:PyObject*::+1:
15871572
PyObject_Bytes:PyObject*:o:0:
15881573

@@ -1618,9 +1603,6 @@ PyObject_CallObject:PyObject*:args:0:
16181603
PyObject_CheckBuffer:int:::
16191604
PyObject_CheckBuffer:PyObject*:obj:0:
16201605

1621-
PyObject_CheckReadBuffer:int:::
1622-
PyObject_CheckReadBuffer:PyObject*:o:0:
1623-
16241606
PyObject_DelAttr:int:::
16251607
PyObject_DelAttr:PyObject*:o:0:
16261608
PyObject_DelAttr:PyObject*:attr_name:0:

Doc/glossary.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ Glossary
189189
A list of bytecode instructions can be found in the documentation for
190190
:ref:`the dis module <bytecodes>`.
191191

192+
callback
193+
A subroutine function which is passed as an argument to be executed at
194+
some point in the future.
195+
192196
class
193197
A template for creating user-defined objects. Class definitions
194198
normally contain method definitions which operate on instances of the

Doc/library/asyncio-dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ event loop, no other Tasks can run in the same thread. When a Task
7373
executes an ``await`` expression, the running Task gets suspended, and
7474
the event loop executes the next Task.
7575

76-
To schedule a callback from a different OS thread, the
76+
To schedule a :term:`callback` from another OS thread, the
7777
:meth:`loop.call_soon_threadsafe` method should be used. Example::
7878

7979
loop.call_soon_threadsafe(callback, *args)

Doc/library/asyncio-eventloop.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ Scheduling callbacks
191191

192192
.. method:: loop.call_soon(callback, *args, context=None)
193193

194-
Schedule a *callback* to be called with *args* arguments at
195-
the next iteration of the event loop.
194+
Schedule the *callback* :term:`callback` to be called with
195+
*args* arguments at the next iteration of the event loop.
196196

197197
Callbacks are called in the order in which they are registered.
198198
Each callback will be called exactly once.

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ are always available. They are listed here in alphabetical order.
17731773
ValueError: zip() argument 2 is longer than argument 1
17741774

17751775
Without the ``strict=True`` argument, any bug that results in iterables of
1776-
different lengths will be silenced, possibly mainfesting as a hard-to-find
1776+
different lengths will be silenced, possibly manifesting as a hard-to-find
17771777
bug in another part of the program.
17781778

17791779
* Shorter iterables can be padded with a constant value to make all the

Doc/library/pdb.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ by the local file.
538538
executed in the current environment).
539539

540540
.. pdbcommand:: retval
541+
541542
Print the return value for the last return of a function.
542543

543544
.. rubric:: Footnotes

Doc/library/subprocess.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,11 @@ Instances of the :class:`Popen` class have the following methods:
738738
.. method:: Popen.communicate(input=None, timeout=None)
739739

740740
Interact with process: Send data to stdin. Read data from stdout and stderr,
741-
until end-of-file is reached. Wait for process to terminate. The optional
742-
*input* argument should be data to be sent to the child process, or
743-
``None``, if no data should be sent to the child. If streams were opened in
744-
text mode, *input* must be a string. Otherwise, it must be bytes.
741+
until end-of-file is reached. Wait for process to terminate and set the
742+
:attr:`~Popen.returncode` attribute. The optional *input* argument should be
743+
data to be sent to the child process, or ``None``, if no data should be sent
744+
to the child. If streams were opened in text mode, *input* must be a string.
745+
Otherwise, it must be bytes.
745746

746747
:meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``.
747748
The data will be strings if streams were opened in text mode; otherwise,

0 commit comments

Comments
 (0)