Skip to content

Commit 59d08c0

Browse files
authored

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

stdlib/sys.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,13 @@ if sys.version_info < (3, 8):
359359
# as part of the response to CVE-2020-10735
360360
def set_int_max_str_digits(maxdigits: int) -> None: ...
361361
def get_int_max_str_digits() -> int: ...
362+
363+
if sys.version_info >= (3, 12):
364+
def getunicodeinternedsize() -> int: ...
365+
def deactivate_stack_trampoline() -> None: ...
366+
def is_stack_trampoline_active() -> bool: ...
367+
# It always exists, but raises on non-linux platforms:
368+
if sys.platform == "linux":
369+
def activate_stack_trampoline(__backend: str) -> None: ...
370+
else:
371+
def activate_stack_trampoline(__backend: str) -> NoReturn: ...

tests/stubtest_allowlists/py312.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,6 @@ ssl.OP_LEGACY_SERVER_CONNECT
179179
ssl.Options.OP_LEGACY_SERVER_CONNECT
180180
ssl.RAND_pseudo_bytes
181181
ssl.wrap_socket
182-
sys.activate_stack_trampoline
183-
sys.deactivate_stack_trampoline
184-
sys.getunicodeinternedsize
185-
sys.is_stack_trampoline_active
186182
tarfile.AbsoluteLinkError
187183
tarfile.AbsolutePathError
188184
tarfile.FilterError

0 commit comments

Comments
 (0)