Skip to content

Commit 00cb414

Browse files
Merge branch 'main' into codex/python315-urllib
2 parents bbc0a7c + a58999c commit 00cb414

84 files changed

Lines changed: 1198 additions & 680 deletions

Some content is hidden

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

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ _pyrepl.unix_eventqueue
88
ctypes.c_double_complex._type_
99
ctypes.c_float_complex._type_
1010
ctypes.c_longdouble_complex._type_
11-
mmap.MS_ASYNC
12-
mmap.MS_INVALIDATE
13-
mmap.MS_SYNC
14-
mmap.mmap.madvise
15-
mmap.mmap.resize
1611
os.NODEV
1712
os.__all__
1813
posix.NODEV
14+
readline.get_pre_input_hook
15+
16+
17+
# =============================================================
18+
# Allowlist entries that cannot or should not be fixed; >= 3.15
19+
# =============================================================
20+
21+
# Internal implementation details of the sampling profiler.
1922
profiling.sampling.live_collector
2023
profiling.sampling.live_collector.collector
2124
profiling.sampling.live_collector.constants
2225
profiling.sampling.live_collector.display
2326
profiling.sampling.live_collector.trend_tracker
2427
profiling.sampling.live_collector.widgets
25-
readline.get_pre_input_hook
26-
resource.RLIM_SAVED_CUR
27-
resource.RLIM_SAVED_MAX

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

Lines changed: 8 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,9 @@ _decimal
99
_pyrepl.fancy_termios
1010
_pyrepl.unix_console
1111
_pyrepl.unix_eventqueue
12-
_socket.CAN_ISOTP_CHK_PAD_DATA
13-
_socket.CAN_ISOTP_CHK_PAD_LEN
14-
_socket.CAN_ISOTP_DEFAULT_EXT_ADDRESS
15-
_socket.CAN_ISOTP_DEFAULT_FLAGS
16-
_socket.CAN_ISOTP_DEFAULT_FRAME_TXTIME
17-
_socket.CAN_ISOTP_DEFAULT_LL_MTU
18-
_socket.CAN_ISOTP_DEFAULT_LL_TX_DL
19-
_socket.CAN_ISOTP_DEFAULT_LL_TX_FLAGS
20-
_socket.CAN_ISOTP_DEFAULT_PAD_CONTENT
21-
_socket.CAN_ISOTP_DEFAULT_RECV_BS
22-
_socket.CAN_ISOTP_DEFAULT_RECV_STMIN
23-
_socket.CAN_ISOTP_DEFAULT_RECV_WFTMAX
24-
_socket.CAN_ISOTP_EXTEND_ADDR
25-
_socket.CAN_ISOTP_FORCE_RXSTMIN
26-
_socket.CAN_ISOTP_FORCE_TXSTMIN
27-
_socket.CAN_ISOTP_HALF_DUPLEX
28-
_socket.CAN_ISOTP_LISTEN_MODE
29-
_socket.CAN_ISOTP_LL_OPTS
30-
_socket.CAN_ISOTP_OPTS
31-
_socket.CAN_ISOTP_RECV_FC
32-
_socket.CAN_ISOTP_RX_EXT_ADDR
33-
_socket.CAN_ISOTP_RX_PADDING
34-
_socket.CAN_ISOTP_RX_STMIN
35-
_socket.CAN_ISOTP_SF_BROADCAST
36-
_socket.CAN_ISOTP_TX_PADDING
37-
_socket.CAN_ISOTP_TX_STMIN
38-
_socket.CAN_ISOTP_WAIT_TX_DONE
39-
_socket.IPV6_HDRINCL
40-
_socket.SOL_CAN_ISOTP
4112
ctypes.c_double_complex._type_
4213
ctypes.c_float_complex._type_
4314
ctypes.c_longdouble_complex._type_
44-
mmap.MS_ASYNC
45-
mmap.MS_INVALIDATE
46-
mmap.MS_SYNC
47-
mmap.mmap.madvise
4815
os.AT_NO_AUTOMOUNT
4916
os.AT_STATX_DONT_SYNC
5017
os.AT_STATX_FORCE_SYNC
@@ -92,42 +59,17 @@ posix.STATX_SIZE
9259
posix.STATX_TYPE
9360
posix.STATX_UID
9461
posix.statx
62+
readline.get_pre_input_hook
63+
64+
65+
# =============================================================
66+
# Allowlist entries that cannot or should not be fixed; >= 3.15
67+
# =============================================================
68+
69+
# Internal implementation details of the sampling profiler.
9570
profiling.sampling.live_collector
9671
profiling.sampling.live_collector.collector
9772
profiling.sampling.live_collector.constants
9873
profiling.sampling.live_collector.display
9974
profiling.sampling.live_collector.trend_tracker
10075
profiling.sampling.live_collector.widgets
101-
readline.get_pre_input_hook
102-
resource.RLIM_SAVED_CUR
103-
resource.RLIM_SAVED_MAX
104-
socket.CAN_ISOTP_CHK_PAD_DATA
105-
socket.CAN_ISOTP_CHK_PAD_LEN
106-
socket.CAN_ISOTP_DEFAULT_EXT_ADDRESS
107-
socket.CAN_ISOTP_DEFAULT_FLAGS
108-
socket.CAN_ISOTP_DEFAULT_FRAME_TXTIME
109-
socket.CAN_ISOTP_DEFAULT_LL_MTU
110-
socket.CAN_ISOTP_DEFAULT_LL_TX_DL
111-
socket.CAN_ISOTP_DEFAULT_LL_TX_FLAGS
112-
socket.CAN_ISOTP_DEFAULT_PAD_CONTENT
113-
socket.CAN_ISOTP_DEFAULT_RECV_BS
114-
socket.CAN_ISOTP_DEFAULT_RECV_STMIN
115-
socket.CAN_ISOTP_DEFAULT_RECV_WFTMAX
116-
socket.CAN_ISOTP_EXTEND_ADDR
117-
socket.CAN_ISOTP_FORCE_RXSTMIN
118-
socket.CAN_ISOTP_FORCE_TXSTMIN
119-
socket.CAN_ISOTP_HALF_DUPLEX
120-
socket.CAN_ISOTP_LISTEN_MODE
121-
socket.CAN_ISOTP_LL_OPTS
122-
socket.CAN_ISOTP_OPTS
123-
socket.CAN_ISOTP_RECV_FC
124-
socket.CAN_ISOTP_RX_EXT_ADDR
125-
socket.CAN_ISOTP_RX_PADDING
126-
socket.CAN_ISOTP_RX_STMIN
127-
socket.CAN_ISOTP_SF_BROADCAST
128-
socket.CAN_ISOTP_TX_PADDING
129-
socket.CAN_ISOTP_TX_STMIN
130-
socket.CAN_ISOTP_WAIT_TX_DONE
131-
socket.IPV6_HDRINCL
132-
socket.SOL_CAN_ISOTP
133-
socket.__all__

stdlib/@tests/stubtest_allowlists/py315.txt

Lines changed: 31 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ _frozen_importlib_external.SourceFileLoader.source_to_code
1212
_frozen_importlib_external.SourceLoader.source_to_code
1313
_frozen_importlib_external._LoaderBasics.load_module
1414
_frozen_importlib_external.cache_from_source
15-
_interpqueues.create
16-
_interpqueues.put
1715
_pyrepl.base_eventqueue
1816
_pyrepl.commands
1917
_pyrepl.completing_reader
@@ -36,13 +34,6 @@ _pyrepl.types
3634
_pyrepl.utils
3735
_pyrepl.windows_console
3836
_pyrepl.windows_eventqueue
39-
_ssl.HAS_PSK_TLS13
40-
_ssl._SSLContext.get_groups
41-
_ssl._SSLContext.set_ciphersuites
42-
_ssl._SSLContext.set_client_sigalgs
43-
_ssl._SSLContext.set_groups
44-
_ssl._SSLContext.set_server_sigalgs
45-
_ssl.get_sigalgs
4637
_struct.Struct.pack_into
4738
_struct.pack
4839
_struct.pack_into
@@ -69,8 +60,6 @@ codecs.namereplace_errors
6960
codecs.replace_errors
7061
codecs.strict_errors
7162
codecs.xmlcharrefreplace_errors
72-
collections.Counter.__ixor__
73-
collections.Counter.__xor__
7463
concurrent.interpreters._crossinterp.UNBOUND_ERROR
7564
concurrent.interpreters._crossinterp.UNBOUND_REMOVE
7665
concurrent.interpreters._crossinterp.UnboundItem.singleton
@@ -104,7 +93,6 @@ genericpath.samestat
10493
glob.glob0
10594
glob.glob1
10695
gzip.compress
107-
hashlib.__all__
10896
http.HTTPMethod.description
10997
http.client.HTTPConnection.__init__
11098
http.client.HTTPSConnection.__init__
@@ -138,18 +126,8 @@ mailbox.Mailbox.__exit__
138126
mailbox._ProxyFile.__class_getitem__
139127
marshal.dump
140128
marshal.dumps
141-
math.fmax
142-
math.fmin
143-
math.isnormal
144-
math.issubnormal
145-
math.signbit
146-
mmap.mmap.find
147-
mmap.mmap.flush
148-
mmap.mmap.rfind
149-
mmap.mmap.set_name
150129
multiprocessing.context.BaseContext.set_forkserver_preload
151130
multiprocessing.forkserver.ForkServer.set_forkserver_preload
152-
multiprocessing.forkserver.main
153131
multiprocessing.managers.BaseListProxy.clear
154132
multiprocessing.managers.BaseListProxy.copy
155133
multiprocessing.managers._BaseDictProxy.__iter__
@@ -176,7 +154,6 @@ pathlib.PurePath.__vfspath__
176154
pathlib.PurePath.is_reserved
177155
pdb.Pdb.print_stack_entry
178156
pkgutil.resolve_name
179-
platform.java_ver
180157
posixpath.ALL_BUT_LAST
181158
posixpath.__all__
182159
posixpath.basename
@@ -191,56 +168,18 @@ posixpath.splitroot
191168
pprint.PrettyPrinter.__init__
192169
pprint.pformat
193170
pprint.pprint
194-
profiling
195-
profiling.sampling
196-
profiling.sampling.binary_collector
197-
profiling.sampling.binary_reader
198-
profiling.sampling.cli
199-
profiling.sampling.collector
200-
profiling.sampling.constants
201-
profiling.sampling.dump
202-
profiling.sampling.errors
203-
profiling.sampling.gecko_collector
204-
profiling.sampling.heatmap_collector
205-
profiling.sampling.jsonl_collector
206-
profiling.sampling.module_utils
207-
profiling.sampling.opcode_utils
208-
profiling.sampling.pstats_collector
209-
profiling.sampling.sample
210-
profiling.sampling.stack_collector
211-
profiling.sampling.string_table
212-
profiling.tracing
213-
pydoc.Doc.STDLIB_DIR
214-
pydoc.Doc.getdocloc
215171
site.addsitedir
216172
site.addsitepackages
217173
site.addusersitepackages
218174
site.process_startup_files
219175
sre_compile
220176
sre_constants
221177
sre_parse
222-
ssl.SSLObject.client_sigalg
223-
ssl.SSLObject.group
224-
ssl.SSLObject.server_sigalg
225-
ssl.SSLSocket.client_sigalg
226-
ssl.SSLSocket.group
227-
ssl.SSLSocket.server_sigalg
228178
symtable.symtable
229179
sys.__jit
230180
sys._monitoring
231-
sys.abi_info
232-
sys.get_lazy_imports
233-
sys.get_lazy_imports_filter
234181
sys.last_exc
235-
sys.lazy_modules
236-
sys.set_lazy_imports
237-
sys.set_lazy_imports_filter
238182
threading.Condition.locked
239-
threading.__all__
240-
threading.concurrent_tee
241-
threading.serialize_iterator
242-
threading.synchronized_iterator
243-
timeit.Timer.autorange
244183
tkinter.Grid.content
245184
tkinter.Grid.grid_content
246185
tkinter.Image.__iter__
@@ -257,20 +196,13 @@ tkinter.Text.search
257196
tkinter.Text.search_all
258197
tkinter.font.Font.__iter__
259198
tkinter.simpledialog.__all__
260-
types.AsyncGeneratorType.ag_state
261-
types.CodeType.co_lnotab
262-
types.CoroutineType.cr_state
263-
types.FrameLocalsProxyType
264-
types.GeneratorType.gi_state
265-
types.LazyImportType
266199
types.MappingProxyType.get
267200
types.SimpleNamespace.__delattr__
268201
types.SimpleNamespace.__setattr__
269202
types.UnionType.__class_getitem__
270203
types.UnionType.__mro_entries__
271204
types.UnionType.__name__
272205
types.UnionType.__qualname__
273-
types.__all__
274206
typing.LiteralString
275207
typing.NewType.__mro_entries__
276208
typing.ParamSpec.__mro_entries__
@@ -285,8 +217,6 @@ typing._SpecialForm.__mro_entries__
285217
typing_extensions.__all__
286218
typing_extensions.Protocol
287219
xml.etree.ElementTree.__all__
288-
xml.is_valid_name
289-
xml.utils
290220
zipimport.zipimporter.load_module
291221

292222
# =============================================================
@@ -296,3 +226,34 @@ zipimport.zipimporter.load_module
296226
# runtime default is a list object used as a sentinel
297227
urllib.parse.urlunparse
298228
urllib.parse.urlunsplit
229+
230+
# Internal implementation details of the sampling profiler.
231+
profiling.sampling.binary_collector
232+
profiling.sampling.binary_reader
233+
profiling.sampling.cli
234+
profiling.sampling.constants
235+
profiling.sampling.dump
236+
profiling.sampling.errors
237+
profiling.sampling.gecko_collector.CATEGORY_CODE_TYPE
238+
profiling.sampling.gecko_collector.CATEGORY_CPU
239+
profiling.sampling.gecko_collector.CATEGORY_EXCEPTION
240+
profiling.sampling.gecko_collector.CATEGORY_GC
241+
profiling.sampling.gecko_collector.CATEGORY_GIL
242+
profiling.sampling.gecko_collector.CATEGORY_NATIVE
243+
profiling.sampling.gecko_collector.CATEGORY_OPCODES
244+
profiling.sampling.gecko_collector.CATEGORY_OTHER
245+
profiling.sampling.gecko_collector.CATEGORY_PYTHON
246+
profiling.sampling.gecko_collector.DEFAULT_SUBCATEGORY
247+
profiling.sampling.gecko_collector.FRAME_ADDRESS_NONE
248+
profiling.sampling.gecko_collector.FRAME_INLINE_DEPTH_ROOT
249+
profiling.sampling.gecko_collector.GECKO_CATEGORIES
250+
profiling.sampling.gecko_collector.GECKO_FORMAT_VERSION
251+
profiling.sampling.gecko_collector.GECKO_PREPROCESSED_VERSION
252+
profiling.sampling.gecko_collector.PROCESS_TYPE_MAIN
253+
profiling.sampling.gecko_collector.RESOURCE_TYPE_LIBRARY
254+
profiling.sampling.gecko_collector.STACKWALK_DISABLED
255+
profiling.sampling.heatmap_collector.FileStats
256+
profiling.sampling.heatmap_collector.TreeNode
257+
profiling.sampling.module_utils
258+
profiling.sampling.opcode_utils
259+
profiling.sampling.sample

stdlib/@tests/stubtest_allowlists/win32-py315.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# TODO: Allowlist entries that should be fixed
33
# ============================================
44

5-
_socket.IPV6_HDRINCL
65
_winapi.DeregisterEventSource
76
_winapi.EVENTLOG_AUDIT_FAILURE
87
_winapi.EVENTLOG_AUDIT_SUCCESS
@@ -14,6 +13,4 @@ _winapi.GetOEMCP
1413
_winapi.RegisterEventSource
1514
_winapi.ReportEvent
1615
asyncio.windows_events.IocpProactor.finish_socket_func
17-
socket.IPV6_HDRINCL
18-
socket.__all__
1916
winreg.DeleteTree

stdlib/VERSIONS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ _py_abc: 3.7-
6060
_pydecimal: 3.5-
6161
_queue: 3.7-
6262
_random: 3.0-
63+
_remote_debugging: 3.15-
6364
_sitebuiltins: 3.4-
6465
_socket: 3.0- # present in 3.0 at runtime, but not in typeshed
6566
_sqlite3: 3.0-
@@ -208,6 +209,7 @@ mailbox: 3.0-
208209
mailcap: 3.0-3.12
209210
marshal: 3.0-
210211
math: 3.0-
212+
math.integer: 3.15-
211213
mimetypes: 3.0-
212214
mmap: 3.0-
213215
modulefinder: 3.0-
@@ -242,6 +244,9 @@ posix: 3.0-
242244
posixpath: 3.0-
243245
pprint: 3.0-
244246
profile: 3.0-
247+
profiling: 3.15-
248+
profiling.sampling: 3.15-
249+
profiling.tracing: 3.15-
245250
pstats: 3.0-
246251
pty: 3.0-
247252
pwd: 3.0-
@@ -335,6 +340,7 @@ wsgiref: 3.0-
335340
wsgiref.types: 3.11-
336341
xdrlib: 3.0-3.12
337342
xml: 3.0-
343+
xml.utils: 3.15-
338344
xmlrpc: 3.0-
339345
xxlimited: 3.2-
340346
zipapp: 3.5-

stdlib/_hashlib.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool: ...
5959
@overload
6060
def compare_digest(a: AnyStr, b: AnyStr, /) -> bool: ...
6161
def get_fips_mode() -> int: ...
62-
def hmac_new(key: bytes | bytearray, msg: ReadableBuffer = b"", digestmod: _DigestMod = None) -> HMAC: ...
62+
def hmac_new(key: ReadableBuffer, msg: ReadableBuffer = b"", digestmod: _DigestMod = None) -> HMAC: ...
6363

6464
if sys.version_info >= (3, 13):
6565
def new(
@@ -117,7 +117,7 @@ else:
117117
def openssl_shake_128(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASHXOF: ...
118118
def openssl_shake_256(string: ReadableBuffer = b"", *, usedforsecurity: bool = True) -> HASHXOF: ...
119119

120-
def hmac_digest(key: bytes | bytearray, msg: ReadableBuffer, digest: str) -> bytes: ...
120+
def hmac_digest(key: ReadableBuffer, msg: ReadableBuffer, digest: str) -> bytes: ...
121121
def pbkdf2_hmac(
122122
hash_name: str, password: ReadableBuffer, salt: ReadableBuffer, iterations: int, dklen: int | None = None
123123
) -> bytes: ...

0 commit comments

Comments
 (0)