Skip to content

Commit 54efbf4

Browse files
committed
Merge branch 'main' into xmlcharrefreplace
2 parents 12f9480 + 52ffffe commit 54efbf4

81 files changed

Lines changed: 1899 additions & 845 deletions

File tree

Some content is hidden

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

Doc/c-api/module.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ struct:
853853
854854
.. versionadded:: 3.5
855855
856-
.. soft-deprecated:: next
856+
.. soft-deprecated:: 3.15
857857
858858
Prefer :c:func:`PyModule_FromSlotsAndSpec` in new code.
859859
@@ -877,7 +877,7 @@ struct:
877877
878878
.. versionadded:: 3.5
879879
880-
.. soft-deprecated:: next
880+
.. soft-deprecated:: 3.15
881881
882882
Prefer :c:func:`PyModule_FromSlotsAndSpec` in new code.
883883
@@ -887,7 +887,7 @@ struct:
887887
888888
.. versionadded:: 3.5
889889
890-
.. soft-deprecated:: next
890+
.. soft-deprecated:: 3.15
891891
892892
To run a module's own execution slots, prefer :c:func:`PyModule_Exec`,
893893
which works on modules that were not created from a

Doc/c-api/type.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ They will continue to work, but new features will be added as slots for
828828
829829
.. versionadded:: 3.12
830830
831-
.. soft-deprecated:: next
831+
.. soft-deprecated:: 3.15
832832
833833
Prefer :c:func:`PyType_FromSlots` in new code.
834834
@@ -859,7 +859,7 @@ They will continue to work, but new features will be added as slots for
859859
Creating classes whose metaclass overrides
860860
:c:member:`~PyTypeObject.tp_new` is no longer allowed.
861861
862-
.. soft-deprecated:: next
862+
.. soft-deprecated:: 3.15
863863
864864
Prefer :c:func:`PyType_FromSlots` in new code.
865865
@@ -885,7 +885,7 @@ They will continue to work, but new features will be added as slots for
885885
Creating classes whose metaclass overrides
886886
:c:member:`~PyTypeObject.tp_new` is no longer allowed.
887887
888-
.. soft-deprecated:: next
888+
.. soft-deprecated:: 3.15
889889
890890
Prefer :c:func:`PyType_FromSlots` in new code.
891891
@@ -910,7 +910,7 @@ They will continue to work, but new features will be added as slots for
910910
Creating classes whose metaclass overrides
911911
:c:member:`~PyTypeObject.tp_new` is no longer allowed.
912912
913-
.. soft-deprecated:: next
913+
.. soft-deprecated:: 3.15
914914
915915
Prefer :c:func:`PyType_FromSlots` in new code.
916916

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3920,7 +3920,7 @@ subclassed handler which looks something like this::
39203920

39213921
You'll need to be familiar with RFC 5424 to fully understand the above code, and it
39223922
may be that you have slightly different needs (e.g. for how you pass structural data
3923-
to the log). Nevertheless, the above should be adaptable to your speciric needs. With
3923+
to the log). Nevertheless, the above should be adaptable to your specific needs. With
39243924
the above handler, you'd pass structured data using something like this::
39253925

39263926
sd = {

Doc/howto/mro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ prescription:
189189
the tail of any of the other lists, then add it to the linearization
190190
of C and remove it from the lists in the merge, otherwise look at the
191191
head of the next list and take it, if it is a good head. Then repeat
192-
the operation until all the class are removed or it is impossible to
192+
the operation until all the classes are removed or it is impossible to
193193
find good heads. In this case, it is impossible to construct the
194194
merge, Python 2.3 will refuse to create the class C and will raise an
195195
exception.*

Doc/library/curses.rst

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,10 @@ Input options
326326

327327
The curses library does "line-breakout optimization" by looking for typeahead
328328
periodically while updating the screen. If input is found, and it is coming
329-
from a tty, the current update is postponed until refresh or doupdate is called
330-
again, allowing faster response to commands typed in advance. This function
331-
allows specifying a different file descriptor for typeahead checking.
329+
from a tty, the current update is postponed until :meth:`~window.refresh` or
330+
:func:`doupdate` is called again, allowing faster response to commands typed
331+
in advance. This function allows specifying a different file descriptor for
332+
typeahead checking.
332333

333334
.. function:: is_cbreak()
334335

@@ -702,7 +703,8 @@ labels.
702703
(eight labels). Where the underlying curses library supports them, ``2``
703704
gives 4-4-4 (twelve labels) and ``3`` gives 4-4-4 with an index line.
704705

705-
Must be called before :func:`initscr` or :func:`newterm`.
706+
Must be called before :func:`initscr` or :func:`newterm`,
707+
and affects only the screen created next.
706708

707709
.. versionadded:: next
708710

@@ -1067,8 +1069,10 @@ Utilities
10671069

10681070
.. function:: filter()
10691071

1070-
The :func:`.filter` routine, if used, must be called before :func:`initscr` is
1071-
called. The effect is that, during the initialization, :envvar:`LINES` is set to ``1``; the
1072+
The :func:`.filter` routine, if used, must be called before :func:`initscr`
1073+
or :func:`newterm` is called,
1074+
and affects every screen created afterwards.
1075+
The effect is that, during the initialization, :envvar:`LINES` is set to ``1``; the
10721076
capabilities ``clear``, ``cup``, ``cud``, ``cud1``, ``cuu1``, ``cuu``, ``vpa`` are disabled; and the ``home``
10731077
string is set to the value of ``cr``. The effect is that the cursor is confined to
10741078
the current line, and so are screen updates. This may be used for enabling
@@ -1087,8 +1091,10 @@ Utilities
10871091

10881092
.. function:: use_env(flag)
10891093

1090-
If used, this function should be called before :func:`initscr` or newterm are
1091-
called. When *flag* is ``False``, the values of lines and columns specified in the
1094+
If used, this function should be called before :func:`initscr` or
1095+
:func:`newterm` are called,
1096+
and affects every screen created afterwards.
1097+
When *flag* is ``False``, the values of lines and columns specified in the
10921098
terminfo database will be used, even if environment variables :envvar:`LINES`
10931099
and :envvar:`COLUMNS` (used by default) are set, or if curses is running in a
10941100
window (in which case default behavior would be to use the window size if
@@ -1106,6 +1112,9 @@ Utilities
11061112
to distinguish between an individual escape character entered on the
11071113
keyboard from escape sequences sent by cursor and function keys.
11081114

1115+
Depending on the curses library, the setting may apply to all screens,
1116+
not only to the current one.
1117+
11091118
.. versionadded:: 3.9
11101119

11111120
.. function:: get_tabsize()
@@ -1119,6 +1128,9 @@ Utilities
11191128
Sets the number of columns used by the curses library when converting a tab
11201129
character to spaces as it adds the tab to a window.
11211130

1131+
Depending on the curses library, the setting may apply to all screens,
1132+
not only to the current one, and creating a screen may reset it.
1133+
11221134
.. versionadded:: 3.9
11231135

11241136
.. function:: napms(ms)

Doc/library/logging.config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ following configuration::
555555
'bar' : 'baz',
556556
'spam' : 99.9,
557557
'answer' : 42,
558-
'.' {
558+
'.' : {
559559
'foo': 'bar',
560560
'baz': 'bozz'
561561
}

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ noted otherwise, all return values are floats.
9090
:func:`atan(x) <atan>` Arc tangent of *x*, in radians
9191
:func:`atanpi(x) <atanpi>` Arc tangent of *x*, in half-turns
9292
:func:`atan2(y, x) <atan2>` ``atan(y / x)``, in radians
93-
:func:`atan2pi(y, x) <atan2pi>` ``atan(y / x)``, in half-turns
93+
:func:`atan2pi(y, x) <atan2pi>` ``atanpi(y / x)``, in half-turns
9494
:func:`cos(x) <cos>` Cosine of *x* radians
9595
:func:`cospi(x) <cospi>` Cosine of *x⋅π* radians
9696
:func:`sin(x) <sin>` Sine of *x* radians

Doc/library/os.rst

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,13 @@ process and user.
574574
the groups of which the specified username is a member, plus the specified
575575
group id.
576576

577-
.. availability:: Unix, not WASI, not Android.
577+
.. availability:: Unix, not WASI.
578578

579579
.. versionadded:: 3.2
580580

581+
.. versionchanged:: 3.16
582+
Support for Android now exists.
583+
581584

582585
.. function:: putenv(key, value, /)
583586

@@ -610,21 +613,30 @@ process and user.
610613

611614
Set the current process's effective group id.
612615

613-
.. availability:: Unix, not WASI, not Android.
616+
.. availability:: Unix, not WASI.
617+
618+
.. versionchanged:: 3.16
619+
Support for Android now exists.
614620

615621

616622
.. function:: seteuid(euid, /)
617623

618624
Set the current process's effective user id.
619625

620-
.. availability:: Unix, not WASI, not Android.
626+
.. availability:: Unix, not WASI.
627+
628+
.. versionchanged:: 3.16
629+
Support for Android now exists.
621630

622631

623632
.. function:: setgid(gid, /)
624633

625634
Set the current process' group id.
626635

627-
.. availability:: Unix, not WASI, not Android.
636+
.. availability:: Unix, not WASI.
637+
638+
.. versionchanged:: 3.16
639+
Support for Android now exists.
628640

629641

630642
.. function:: setgroups(groups, /)
@@ -718,32 +730,44 @@ process and user.
718730

719731
Set the current process's real and effective group ids.
720732

721-
.. availability:: Unix, not WASI, not Android.
733+
.. availability:: Unix, not WASI.
734+
735+
.. versionchanged:: 3.16
736+
Support for Android now exists.
722737

723738

724739
.. function:: setresgid(rgid, egid, sgid, /)
725740

726741
Set the current process's real, effective, and saved group ids.
727742

728-
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
743+
.. availability:: Unix, not WASI, not macOS, not iOS.
729744

730745
.. versionadded:: 3.2
731746

747+
.. versionchanged:: 3.16
748+
Support for Android now exists.
749+
732750

733751
.. function:: setresuid(ruid, euid, suid, /)
734752

735753
Set the current process's real, effective, and saved user ids.
736754

737-
.. availability:: Unix, not WASI, not Android, not macOS, not iOS.
755+
.. availability:: Unix, not WASI, not macOS, not iOS.
738756

739757
.. versionadded:: 3.2
740758

759+
.. versionchanged:: 3.16
760+
Support for Android now exists.
761+
741762

742763
.. function:: setreuid(ruid, euid, /)
743764

744765
Set the current process's real and effective user ids.
745766

746-
.. availability:: Unix, not WASI, not Android.
767+
.. availability:: Unix, not WASI.
768+
769+
.. versionchanged:: 3.16
770+
Support for Android now exists.
747771

748772

749773
.. function:: getsid(pid, /)
@@ -766,7 +790,10 @@ process and user.
766790

767791
Set the current process's user id.
768792

769-
.. availability:: Unix, not WASI, not Android.
793+
.. availability:: Unix, not WASI.
794+
795+
.. versionchanged:: 3.16
796+
Support for Android now exists.
770797

771798

772799
.. placed in this section since it relates to errno.... a little weak
@@ -2324,11 +2351,14 @@ features:
23242351

23252352
Change the root directory of the current process to *path*.
23262353

2327-
.. availability:: Unix, not WASI, not Android.
2354+
.. availability:: Unix, not WASI.
23282355

23292356
.. versionchanged:: 3.6
23302357
Accepts a :term:`path-like object`.
23312358

2359+
.. versionchanged:: 3.16
2360+
Support for Android now exists.
2361+
23322362

23332363
.. function:: fchdir(fd)
23342364

Doc/library/pdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ can be overridden by the local file.
834834
def inner(x):
835835
1 / x
836836

837-
out()
837+
out()
838838

839839
calling ``pdb.pm()`` will allow to move between exceptions::
840840

Doc/library/socket.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,10 +1372,13 @@ The :mod:`!socket` module also offers various network-related services:
13721372

13731373
.. audit-event:: socket.sethostname name socket.sethostname
13741374

1375-
.. availability:: Unix, not Android.
1375+
.. availability:: Unix.
13761376

13771377
.. versionadded:: 3.3
13781378

1379+
.. versionchanged:: 3.16
1380+
Support for Android now exists.
1381+
13791382

13801383
.. function:: if_nameindex()
13811384

0 commit comments

Comments
 (0)