Skip to content

Commit 616a9b3

Browse files
donBarbosmingyu.park
authored andcommitted
Bump os and posix to 3.14 (python#14060)
1 parent 561cc7f commit 616a9b3

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

stdlib/@tests/stubtest_allowlists/darwin-py314.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ctypes.c_float_complex._type_
1313
ctypes.c_longdouble_complex._type_
1414
multiprocessing.popen_fork.Popen.interrupt
1515
multiprocessing.reduction.ACKNOWLEDGE
16-
posix.readinto
1716

1817

1918
# =======

stdlib/@tests/stubtest_allowlists/linux-py314.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ ctypes.c_longdouble_complex._type_
2121
errno.EHWPOISON
2222
multiprocessing.popen_fork.Popen.interrupt
2323
multiprocessing.reduction.ACKNOWLEDGE
24-
os.SCHED_DEADLINE
25-
os.SCHED_NORMAL
26-
posix.SCHED_DEADLINE
27-
posix.SCHED_NORMAL
28-
posix.readinto
2924
select.EPOLLWAKEUP
3025
socket.CAN_RAW_ERR_FILTER
3126
socket.IPV6_RECVERR

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ multiprocessing.managers._BaseDictProxy.__ror__
9090
multiprocessing.managers._BaseDictProxy.fromkeys
9191
multiprocessing.process.BaseProcess.interrupt
9292
multiprocessing.synchronize.SemLock.locked
93-
os.__all__
94-
os.readinto
9593
pkgutil.__all__
9694
pkgutil.find_loader
9795
pkgutil.get_loader

stdlib/os/__init__.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ __all__ = [
160160
"walk",
161161
"write",
162162
]
163+
if sys.version_info >= (3, 14):
164+
__all__ += ["readinto"]
163165
if sys.platform == "darwin" and sys.version_info >= (3, 12):
164166
__all__ += ["PRIO_DARWIN_BG", "PRIO_DARWIN_NONUI", "PRIO_DARWIN_PROCESS", "PRIO_DARWIN_THREAD"]
165167
if sys.platform == "darwin" and sys.version_info >= (3, 10):
@@ -208,6 +210,8 @@ if sys.platform == "linux":
208210
"removexattr",
209211
"setxattr",
210212
]
213+
if sys.platform == "linux" and sys.version_info >= (3, 14):
214+
__all__ += ["SCHED_DEADLINE", "SCHED_NORMAL"]
211215
if sys.platform == "linux" and sys.version_info >= (3, 13):
212216
__all__ += [
213217
"POSIX_SPAWN_CLOSEFROM",
@@ -570,6 +574,10 @@ if sys.platform == "linux":
570574
SCHED_IDLE: int
571575
SCHED_RESET_ON_FORK: int
572576

577+
if sys.version_info >= (3, 14) and sys.platform == "linux":
578+
SCHED_DEADLINE: int
579+
SCHED_NORMAL: int
580+
573581
if sys.platform != "win32":
574582
RTLD_LAZY: int
575583
RTLD_NOW: int
@@ -1149,6 +1157,9 @@ if sys.platform != "win32":
11491157
def readv(fd: int, buffers: SupportsLenAndGetItem[WriteableBuffer], /) -> int: ...
11501158
def writev(fd: int, buffers: SupportsLenAndGetItem[ReadableBuffer], /) -> int: ...
11511159

1160+
if sys.version_info >= (3, 14):
1161+
def readinto(fd: int, buffer: ReadableBuffer, /) -> int: ...
1162+
11521163
@final
11531164
class terminal_size(structseq[int], tuple[int, int]):
11541165
if sys.version_info >= (3, 10):

stdlib/posix.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ if sys.platform != "win32":
250250
timerfd_settime_ns as timerfd_settime_ns,
251251
)
252252

253+
if sys.version_info >= (3, 14):
254+
from os import readinto as readinto
255+
256+
if sys.version_info >= (3, 14) and sys.platform == "linux":
257+
from os import SCHED_DEADLINE as SCHED_DEADLINE, SCHED_NORMAL as SCHED_NORMAL
258+
253259
if sys.platform != "linux":
254260
from os import O_EXLOCK as O_EXLOCK, O_SHLOCK as O_SHLOCK, chflags as chflags, lchflags as lchflags, lchmod as lchmod
255261

0 commit comments

Comments
 (0)