Document the availability of the os.CLONE_ constants (#12160)

This commit is contained in:
Sebastian Rittau
2024-06-18 12:16:12 +02:00
committed by GitHub
parent 212af7a526
commit 21365a37f4
4 changed files with 16 additions and 21 deletions

View File

@@ -1,7 +1,3 @@
# Exists on some Linux builds, and is documented,
# but is unavailable in Github Actions on Linux with Python 3.12
(os|posix).CLONE_NEWTIME
# Exists at runtime, but missing from stubs
spwd.struct_spwd.sp_nam
spwd.struct_spwd.sp_pwd

View File

@@ -60,7 +60,3 @@ syslog.LOG_LAUNCHD
syslog.LOG_NETINFO
syslog.LOG_RAS
syslog.LOG_REMOTEAUTH
# Exists on some Linux builds, and is documented,
# but is unavailable in Github Actions on Linux with Python 3.12
(os|posix).CLONE_NEWTIME

View File

@@ -1,3 +1,7 @@
# ==========
# TODO: Review the following
# ==========
_socket.*
_posixsubprocess.cloexec_pipe
curses.has_key
@@ -5,11 +9,6 @@ os.plock
selectors.KqueueSelector
socket.[A-Z0-9_]+
# Platform differences that cannot be captured by the type system
(posix.O_[A-Z_]+)?
(posix.ST_[A-Z]+)?
(termios.[A-Z0-9_]+)?
_ctypes.dlclose
_ctypes.dlopen
_ctypes.dlsym
@@ -35,6 +34,10 @@ multiprocessing.popen_spawn_win32
fcntl.I_[A-Z0-9_]+
os.SCHED_[A-Z_]+
posix.SCHED_[A-Z_]+
((os|posix).CLONE_[A-Z]+)? # Python 3.12+
(posix.O_[A-Z_]+)?
(posix.ST_[A-Z]+)?
(termios.[A-Z0-9_]+)?
# Some of these exist on non-windows, but they are useless and this is not intended
stat.FILE_ATTRIBUTE_[A-Z_]+