Skip to content

Commit 66f5bc5

Browse files
authored
Merge branch 'main' into fix_warning_pycore_ceval
2 parents 8f0d65f + 7ae9c5d commit 66f5bc5

File tree

203 files changed

+20119
-14256
lines changed

Some content is hidden

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

203 files changed

+20119
-14256
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
.. _type-structs:
44

5-
Type Objects
6-
============
5+
Type Object Structures
6+
======================
77

88
Perhaps one of the most important structures of the Python object system is the
99
structure that defines a new type: the :c:type:`PyTypeObject` structure. Type

Doc/c-api/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ The following API is deprecated.
18681868
18691869
.. versionadded:: 3.3
18701870
1871-
.. deprecated:: next
1871+
.. deprecated:: 3.14
18721872
This API does nothing since Python 3.12.
18731873
Previously, this could be called to check if
18741874
:c:func:`PyUnicode_READY` is necessary.

Doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
'issue_role',
3434
'lexers',
3535
'misc_news',
36-
'pydoc_topics',
3736
'pyspecific',
3837
'sphinx.ext.coverage',
3938
'sphinx.ext.doctest',

Doc/deprecations/pending-removal-in-3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Pending removal in Python 3.15
5757

5858
* :mod:`sysconfig`:
5959

60-
* The ``check_home`` argument of :func:`sysconfig.is_python_build` has been
60+
* The *check_home* argument of :func:`sysconfig.is_python_build` has been
6161
deprecated since Python 3.12.
6262

6363
* :mod:`threading`:

Doc/deprecations/pending-removal-in-future.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ although there is currently no date scheduled for their removal.
111111
* ``ssl.TLSVersion.TLSv1``
112112
* ``ssl.TLSVersion.TLSv1_1``
113113

114-
* :func:`sysconfig.is_python_build` *check_home* parameter is deprecated and
115-
ignored.
116-
117114
* :mod:`threading` methods:
118115

119116
* :meth:`!threading.Condition.notifyAll`: use :meth:`~threading.Condition.notify_all`.

Doc/library/cmdline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following modules have a command-line interface.
2525
* :ref:`json <json-commandline>`
2626
* :ref:`mimetypes <mimetypes-cli>`
2727
* :mod:`pdb`
28-
* :mod:`pickle`
28+
* :ref:`pickle <pickle-cli>`
2929
* :ref:`pickletools <pickletools-cli>`
3030
* :mod:`platform`
3131
* :mod:`poplib`

Doc/library/concurrent.futures.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Executor Objects
7373
.. versionchanged:: 3.5
7474
Added the *chunksize* parameter.
7575

76-
.. versionchanged:: next
76+
.. versionchanged:: 3.14
7777
Added the *buffersize* parameter.
7878

7979
.. method:: shutdown(wait=True, *, cancel_futures=False)
@@ -431,7 +431,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
431431
After calling this method the caller should no longer submit tasks to the
432432
executor.
433433

434-
.. versionadded:: next
434+
.. versionadded:: 3.14
435435

436436
.. method:: kill_workers()
437437

@@ -443,7 +443,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
443443
After calling this method the caller should no longer submit tasks to the
444444
executor.
445445

446-
.. versionadded:: next
446+
.. versionadded:: 3.14
447447

448448
.. _processpoolexecutor-example:
449449

Doc/library/contextvars.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Context Variables
112112

113113
assert var.get() == 'default value'
114114

115-
.. versionadded:: next
115+
.. versionadded:: 3.14
116116

117117
Added support for usage as a context manager.
118118

Doc/library/http.server.rst

Lines changed: 68 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -418,49 +418,6 @@ the current directory::
418418
such as using different index file names by overriding the class attribute
419419
:attr:`index_pages`.
420420

421-
.. _http-server-cli:
422-
423-
:mod:`http.server` can also be invoked directly using the :option:`-m`
424-
switch of the interpreter. Similar to
425-
the previous example, this serves files relative to the current directory::
426-
427-
python -m http.server
428-
429-
The server listens to port 8000 by default. The default can be overridden
430-
by passing the desired port number as an argument::
431-
432-
python -m http.server 9000
433-
434-
By default, the server binds itself to all interfaces. The option ``-b/--bind``
435-
specifies a specific address to which it should bind. Both IPv4 and IPv6
436-
addresses are supported. For example, the following command causes the server
437-
to bind to localhost only::
438-
439-
python -m http.server --bind 127.0.0.1
440-
441-
.. versionchanged:: 3.4
442-
Added the ``--bind`` option.
443-
444-
.. versionchanged:: 3.8
445-
Support IPv6 in the ``--bind`` option.
446-
447-
By default, the server uses the current directory. The option ``-d/--directory``
448-
specifies a directory to which it should serve the files. For example,
449-
the following command uses a specific directory::
450-
451-
python -m http.server --directory /tmp/
452-
453-
.. versionchanged:: 3.7
454-
Added the ``--directory`` option.
455-
456-
By default, the server is conformant to HTTP/1.0. The option ``-p/--protocol``
457-
specifies the HTTP version to which the server is conformant. For example, the
458-
following command runs an HTTP/1.1 conformant server::
459-
460-
python -m http.server --protocol HTTP/1.1
461-
462-
.. versionchanged:: 3.11
463-
Added the ``--protocol`` option.
464421

465422
.. class:: CGIHTTPRequestHandler(request, client_address, server)
466423

@@ -510,25 +467,85 @@ following command runs an HTTP/1.1 conformant server::
510467
Retaining it could lead to further :ref:`security considerations
511468
<http.server-security>`.
512469

513-
:class:`CGIHTTPRequestHandler` can be enabled in the command line by passing
514-
the ``--cgi`` option::
515470

516-
python -m http.server --cgi
471+
.. _http-server-cli:
472+
473+
Command-line interface
474+
----------------------
475+
476+
:mod:`http.server` can also be invoked directly using the :option:`-m`
477+
switch of the interpreter. The following example illustrates how to serve
478+
files relative to the current directory::
479+
480+
python -m http.server [OPTIONS] [port]
481+
482+
The following options are accepted:
483+
484+
.. program:: http.server
517485

518-
.. deprecated-removed:: 3.13 3.15
486+
.. option:: port
519487

520-
:mod:`http.server` command line ``--cgi`` support is being removed
521-
because :class:`CGIHTTPRequestHandler` is being removed.
488+
The server listens to port 8000 by default. The default can be overridden
489+
by passing the desired port number as an argument::
490+
491+
python -m http.server 9000
492+
493+
.. option:: -b, --bind <address>
494+
495+
Specifies a specific address to which it should bind. Both IPv4 and IPv6
496+
addresses are supported. By default, the server binds itself to all
497+
interfaces. For example, the following command causes the server to bind
498+
to localhost only::
499+
500+
python -m http.server --bind 127.0.0.1
501+
502+
.. versionadded:: 3.4
503+
504+
.. versionchanged:: 3.8
505+
Support IPv6 in the ``--bind`` option.
506+
507+
.. option:: -d, --directory <dir>
508+
509+
Specifies a directory to which it should serve the files. By default,
510+
the server uses the current directory. For example, the following command
511+
uses a specific directory::
512+
513+
python -m http.server --directory /tmp/
514+
515+
.. versionadded:: 3.7
516+
517+
.. option:: -p, --protocol <version>
518+
519+
Specifies the HTTP version to which the server is conformant. By default,
520+
the server is conformant to HTTP/1.0. For example, the following command
521+
runs an HTTP/1.1 conformant server::
522+
523+
python -m http.server --protocol HTTP/1.1
524+
525+
.. versionadded:: 3.11
526+
527+
.. option:: --cgi
528+
529+
:class:`CGIHTTPRequestHandler` can be enabled in the command line by passing
530+
the ``--cgi`` option::
531+
532+
python -m http.server --cgi
533+
534+
.. deprecated-removed:: 3.13 3.15
535+
536+
:mod:`http.server` command line ``--cgi`` support is being removed
537+
because :class:`CGIHTTPRequestHandler` is being removed.
522538

523539
.. warning::
524540

525-
:class:`CGIHTTPRequestHandler` and the ``--cgi`` command line option
541+
:class:`CGIHTTPRequestHandler` and the ``--cgi`` command-line option
526542
are not intended for use by untrusted clients and may be vulnerable
527543
to exploitation. Always use within a secure environment.
528544

545+
529546
.. _http.server-security:
530547

531-
Security Considerations
548+
Security considerations
532549
-----------------------
533550

534551
.. index:: pair: http.server; security

Doc/library/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ with :deco:`typing.runtime_checkable`.
11601160
usually be :class:`str` or :class:`bytes`, but can be any type that is
11611161
read from the stream.
11621162

1163-
.. versionadded:: next
1163+
.. versionadded:: 3.14
11641164

11651165
.. method:: read()
11661166
read(size, /)
@@ -1181,7 +1181,7 @@ with :deco:`typing.runtime_checkable`.
11811181
usually be :class:`str` or :class:`bytes`, but can be any type that can be
11821182
written to the stream.
11831183

1184-
.. versionadded:: next
1184+
.. versionadded:: 3.14
11851185

11861186
.. method:: write(data, /)
11871187

0 commit comments

Comments
 (0)