Skip to content

Commit 27e854c

Browse files
committed
gh-152936: Document Android support in os and socket
1 parent dd73903 commit 27e854c

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

Doc/library/os.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,9 @@ process and user.
578578

579579
.. versionadded:: 3.2
580580

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

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

@@ -612,20 +615,29 @@ process and user.
612615

613616
.. availability:: Unix, not WASI.
614617

618+
.. versionchanged:: 3.16
619+
Support for Android now exists.
620+
615621

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

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

620626
.. availability:: Unix, not WASI.
621627

628+
.. versionchanged:: 3.16
629+
Support for Android now exists.
630+
622631

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

625634
Set the current process' group id.
626635

627636
.. availability:: Unix, not WASI.
628637

638+
.. versionchanged:: 3.16
639+
Support for Android now exists.
640+
629641

630642
.. function:: setgroups(groups, /)
631643

@@ -720,6 +732,9 @@ process and user.
720732

721733
.. availability:: Unix, not WASI.
722734

735+
.. versionchanged:: 3.16
736+
Support for Android now exists.
737+
723738

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

@@ -729,6 +744,9 @@ process and user.
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

@@ -738,13 +756,19 @@ process and user.
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

746767
.. availability:: Unix, not WASI.
747768

769+
.. versionchanged:: 3.16
770+
Support for Android now exists.
771+
748772

749773
.. function:: getsid(pid, /)
750774

@@ -768,6 +792,9 @@ process and user.
768792

769793
.. availability:: Unix, not WASI.
770794

795+
.. versionchanged:: 3.16
796+
Support for Android now exists.
797+
771798

772799
.. placed in this section since it relates to errno.... a little weak
773800
.. function:: strerror(code, /)
@@ -2309,6 +2336,9 @@ features:
23092336
.. versionchanged:: 3.6
23102337
Accepts a :term:`path-like object`.
23112338

2339+
.. versionchanged:: 3.16
2340+
Support for Android now exists.
2341+
23122342

23132343
.. function:: fchdir(fd)
23142344

Doc/library/socket.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,9 @@ The :mod:`!socket` module also offers various network-related services:
13761376

13771377
.. versionadded:: 3.3
13781378

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

13801383
.. function:: if_nameindex()
13811384

Doc/whatsnew/3.16.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ os
269269
process via a pidfd. Available on Linux 5.6+.
270270
(Contributed by Maurycy Pawłowski-Wieroński in :gh:`149464`.)
271271

272+
* The following functions are now available on Android:
273+
:func:`os.chroot`, :func:`os.initgroups`, :func:`os.setegid`,
274+
:func:`os.seteuid`, :func:`os.setgid`, :func:`os.setregid`,
275+
:func:`os.setresgid`, :func:`os.setresuid`, :func:`os.setreuid`,
276+
and :func:`os.setuid`. Calling them without sufficient privileges
277+
now raises :exc:`PermissionError` instead of the functions being unavailable.
278+
(Contributed by Md Arif in :gh:`152936`.)
279+
272280

273281
re
274282
--
@@ -297,6 +305,15 @@ shlex
297305
(Contributed by Jay Berry in :gh:`148846`.)
298306

299307

308+
socket
309+
------
310+
311+
* The :func:`socket.sethostname` function is now available on Android.
312+
Calling it without sufficient privileges now raises :exc:`PermissionError`
313+
instead of the function being unavailable.
314+
(Contributed by Md Arif in :gh:`152936`.)
315+
316+
300317
tkinter
301318
-------
302319

0 commit comments

Comments
 (0)