Skip to content

Commit cf89535

Browse files
Merge branch 'main' into codex/python315-paths
2 parents c94a8c8 + 148b3c2 commit cf89535

51 files changed

Lines changed: 1169 additions & 362 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ ctypes.c_longdouble_complex._type_
1111
os.NODEV
1212
os.__all__
1313
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.
1422
profiling.sampling.live_collector
1523
profiling.sampling.live_collector.collector
1624
profiling.sampling.live_collector.constants
1725
profiling.sampling.live_collector.display
1826
profiling.sampling.live_collector.trend_tracker
1927
profiling.sampling.live_collector.widgets
20-
readline.get_pre_input_hook

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,17 @@ posix.STATX_SIZE
5959
posix.STATX_TYPE
6060
posix.STATX_UID
6161
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.
6270
profiling.sampling.live_collector
6371
profiling.sampling.live_collector.collector
6472
profiling.sampling.live_collector.constants
6573
profiling.sampling.live_collector.display
6674
profiling.sampling.live_collector.trend_tracker
6775
profiling.sampling.live_collector.widgets
68-
readline.get_pre_input_hook

stdlib/@tests/stubtest_allowlists/py315.txt

Lines changed: 38 additions & 81 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
@@ -49,9 +47,6 @@ annotationlib.ForwardRef.__extra_names__
4947
annotationlib.ForwardRef.__globals__
5048
annotationlib.ForwardRef.__init_subclass__
5149
annotationlib.ForwardRef.__owner__
52-
annotationlib.ForwardRef.__resolved_str__
53-
annotationlib.ForwardRef.__resolved_str_cache__
54-
annotationlib.ForwardRef.__slots__
5550
annotationlib.ForwardRef.__stringifier_dict__
5651
ast.type_param.__init__
5752
# base64.b64decode uses a private sentinel list as the default for parameters whose public types are bool/buffer.
@@ -62,8 +57,6 @@ codecs.namereplace_errors
6257
codecs.replace_errors
6358
codecs.strict_errors
6459
codecs.xmlcharrefreplace_errors
65-
collections.Counter.__ixor__
66-
collections.Counter.__xor__
6760
concurrent.interpreters._crossinterp.UNBOUND_ERROR
6861
concurrent.interpreters._crossinterp.UNBOUND_REMOVE
6962
concurrent.interpreters._crossinterp.UnboundItem.singleton
@@ -76,7 +69,6 @@ concurrent.interpreters._crossinterp.classonly.__isabstractmethod__
7669
concurrent.interpreters._crossinterp.classonly.__set_name__
7770
concurrent.interpreters._crossinterp.classonly.__wrapped__
7871
copy.deepcopy
79-
ctypes.SetPointerType
8072
dataclasses._MISSING_TYPE
8173
dataclasses.MISSING
8274
dataclasses.field
@@ -85,7 +77,6 @@ enum.__all__
8577
enum.auto.__init__
8678
enum.auto.value
8779
functools.partialmethod.__new__
88-
gzip.compress
8980
http.HTTPMethod.description
9081
importlib._abc.Loader.load_module
9182
importlib._bootstrap_external.NamespacePath
@@ -103,11 +94,6 @@ io.Writer.write
10394
mailbox.Mailbox.__enter__
10495
mailbox.Mailbox.__exit__
10596
mailbox._ProxyFile.__class_getitem__
106-
marshal.dump
107-
marshal.dumps
108-
multiprocessing.context.BaseContext.set_forkserver_preload
109-
multiprocessing.forkserver.ForkServer.set_forkserver_preload
110-
multiprocessing.forkserver.main
11197
multiprocessing.managers.BaseListProxy.clear
11298
multiprocessing.managers.BaseListProxy.copy
11399
multiprocessing.managers._BaseDictProxy.__iter__
@@ -125,82 +111,24 @@ multiprocessing.managers._BaseSetProxy.clear
125111
multiprocessing.managers._BaseSetProxy.copy
126112
multiprocessing.managers._BaseSetProxy.pop
127113
multiprocessing.process.BaseProcess.__init__
128-
pdb.Pdb.print_stack_entry
129-
pkgutil.resolve_name
130-
pprint.PrettyPrinter.__init__
131-
pprint.pformat
132-
pprint.pprint
133-
profiling
134-
profiling.sampling
135-
profiling.sampling.binary_collector
136-
profiling.sampling.binary_reader
137-
profiling.sampling.cli
138-
profiling.sampling.collector
139-
profiling.sampling.constants
140-
profiling.sampling.dump
141-
profiling.sampling.errors
142-
profiling.sampling.gecko_collector
143-
profiling.sampling.heatmap_collector
144-
profiling.sampling.jsonl_collector
145-
profiling.sampling.module_utils
146-
profiling.sampling.opcode_utils
147-
profiling.sampling.pstats_collector
148-
profiling.sampling.sample
149-
profiling.sampling.stack_collector
150-
profiling.sampling.string_table
151-
profiling.tracing
152-
site.addsitedir
153-
site.addsitepackages
154-
site.addusersitepackages
155-
site.process_startup_files
156114
sre_compile
157115
sre_constants
158116
sre_parse
159-
symtable.symtable
160117
sys.__jit
161118
sys._monitoring
162-
sys.abi_info
163-
sys.get_lazy_imports
164-
sys.get_lazy_imports_filter
165119
sys.last_exc
166-
sys.lazy_modules
167-
sys.set_lazy_imports
168-
sys.set_lazy_imports_filter
169120
threading.Condition.locked
170-
threading.__all__
171-
threading.concurrent_tee
172-
threading.serialize_iterator
173-
threading.synchronized_iterator
174-
tkinter.Grid.content
175-
tkinter.Grid.grid_content
176121
tkinter.Image.__iter__
177122
tkinter.Misc.__iter__
178-
tkinter.Misc.content
179-
tkinter.Misc.grid_content
180-
tkinter.Misc.pack_content
181-
tkinter.Misc.place_content
182-
tkinter.Pack.content
183-
tkinter.Pack.pack_content
184-
tkinter.Place.content
185-
tkinter.Place.place_content
186-
tkinter.Text.search
187-
tkinter.Text.search_all
188123
tkinter.font.Font.__iter__
189124
tkinter.simpledialog.__all__
190-
types.AsyncGeneratorType.ag_state
191-
types.CodeType.co_lnotab
192-
types.CoroutineType.cr_state
193-
types.FrameLocalsProxyType
194-
types.GeneratorType.gi_state
195-
types.LazyImportType
196125
types.MappingProxyType.get
197126
types.SimpleNamespace.__delattr__
198127
types.SimpleNamespace.__setattr__
199128
types.UnionType.__class_getitem__
200129
types.UnionType.__mro_entries__
201130
types.UnionType.__name__
202131
types.UnionType.__qualname__
203-
types.__all__
204132
typing.LiteralString
205133
typing.NewType.__mro_entries__
206134
typing.ParamSpec.__mro_entries__
@@ -214,14 +142,43 @@ typing.Union
214142
typing._SpecialForm.__mro_entries__
215143
typing_extensions.__all__
216144
typing_extensions.Protocol
217-
urllib.parse._DefragResultBase.geturl
218-
urllib.parse._ParseResultBase.geturl
219-
urllib.parse._SplitResultBase.geturl
220-
urllib.parse.urldefrag
221-
urllib.parse.urlparse
222-
urllib.parse.urlsplit
145+
xml.etree.ElementTree.__all__
146+
147+
# =============================================================
148+
# Allowlist entries that cannot or should not be fixed; >=3.15
149+
# =============================================================
150+
151+
# runtime default is a list object used as a sentinel
223152
urllib.parse.urlunparse
224153
urllib.parse.urlunsplit
225-
xml.etree.ElementTree.__all__
226-
xml.is_valid_name
227-
xml.utils
154+
155+
# Internal implementation details of the sampling profiler.
156+
profiling.sampling.binary_collector
157+
profiling.sampling.binary_reader
158+
profiling.sampling.cli
159+
profiling.sampling.constants
160+
profiling.sampling.dump
161+
profiling.sampling.errors
162+
profiling.sampling.gecko_collector.CATEGORY_CODE_TYPE
163+
profiling.sampling.gecko_collector.CATEGORY_CPU
164+
profiling.sampling.gecko_collector.CATEGORY_EXCEPTION
165+
profiling.sampling.gecko_collector.CATEGORY_GC
166+
profiling.sampling.gecko_collector.CATEGORY_GIL
167+
profiling.sampling.gecko_collector.CATEGORY_NATIVE
168+
profiling.sampling.gecko_collector.CATEGORY_OPCODES
169+
profiling.sampling.gecko_collector.CATEGORY_OTHER
170+
profiling.sampling.gecko_collector.CATEGORY_PYTHON
171+
profiling.sampling.gecko_collector.DEFAULT_SUBCATEGORY
172+
profiling.sampling.gecko_collector.FRAME_ADDRESS_NONE
173+
profiling.sampling.gecko_collector.FRAME_INLINE_DEPTH_ROOT
174+
profiling.sampling.gecko_collector.GECKO_CATEGORIES
175+
profiling.sampling.gecko_collector.GECKO_FORMAT_VERSION
176+
profiling.sampling.gecko_collector.GECKO_PREPROCESSED_VERSION
177+
profiling.sampling.gecko_collector.PROCESS_TYPE_MAIN
178+
profiling.sampling.gecko_collector.RESOURCE_TYPE_LIBRARY
179+
profiling.sampling.gecko_collector.STACKWALK_DISABLED
180+
profiling.sampling.heatmap_collector.FileStats
181+
profiling.sampling.heatmap_collector.TreeNode
182+
profiling.sampling.module_utils
183+
profiling.sampling.opcode_utils
184+
profiling.sampling.sample

stdlib/VERSIONS

Lines changed: 5 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-
@@ -243,6 +244,9 @@ posix: 3.0-
243244
posixpath: 3.0-
244245
pprint: 3.0-
245246
profile: 3.0-
247+
profiling: 3.15-
248+
profiling.sampling: 3.15-
249+
profiling.tracing: 3.15-
246250
pstats: 3.0-
247251
pty: 3.0-
248252
pwd: 3.0-
@@ -336,6 +340,7 @@ wsgiref: 3.0-
336340
wsgiref.types: 3.11-
337341
xdrlib: 3.0-3.12
338342
xml: 3.0-
343+
xml.utils: 3.15-
339344
xmlrpc: 3.0-
340345
xxlimited: 3.2-
341346
zipapp: 3.5-

stdlib/_interpqueues.pyi

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from typing import Any, Literal, SupportsIndex, TypeAlias
23

34
_UnboundOp: TypeAlias = Literal[1, 2, 3]
@@ -6,13 +7,25 @@ class QueueError(RuntimeError): ...
67
class QueueNotFoundError(QueueError): ...
78

89
def bind(qid: SupportsIndex) -> None: ...
9-
def create(maxsize: SupportsIndex, fmt: SupportsIndex, unboundop: _UnboundOp) -> int: ...
10+
11+
if sys.version_info >= (3, 15):
12+
def create(maxsize: SupportsIndex, unboundop: SupportsIndex = -1, fallback: SupportsIndex = -1) -> int: ...
13+
14+
else:
15+
def create(maxsize: SupportsIndex, fmt: SupportsIndex, unboundop: _UnboundOp) -> int: ...
16+
1017
def destroy(qid: SupportsIndex) -> None: ...
1118
def get(qid: SupportsIndex) -> tuple[Any, int, _UnboundOp | None]: ...
1219
def get_count(qid: SupportsIndex) -> int: ...
1320
def get_maxsize(qid: SupportsIndex) -> int: ...
1421
def get_queue_defaults(qid: SupportsIndex) -> tuple[int, _UnboundOp]: ...
1522
def is_full(qid: SupportsIndex) -> bool: ...
1623
def list_all() -> list[tuple[int, int, _UnboundOp]]: ...
17-
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex, unboundop: _UnboundOp) -> None: ...
24+
25+
if sys.version_info >= (3, 15):
26+
def put(qid: SupportsIndex, obj: Any, unboundop: SupportsIndex = -1, fallback: SupportsIndex = -1) -> None: ...
27+
28+
else:
29+
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex, unboundop: _UnboundOp) -> None: ...
30+
1831
def release(qid: SupportsIndex) -> None: ...

0 commit comments

Comments
 (0)