@@ -2221,92 +2221,13 @@ Deprecated
2221
2221
overrides :c:member: `~PyTypeObject.tp_new ` is deprecated.
2222
2222
Call the metaclass instead.
2223
2223
2224
- Pending Removal in Python 3.14
2225
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2224
+ .. Add deprecations above alphabetically, not here at the end.
2226
2225
2227
- * The ``ma_version_tag `` field in :c:type: `PyDictObject ` for extension modules
2228
- (:pep: `699 `; :gh: `101193 `).
2226
+ .. include :: ../deprecations/c-api-pending-removal-in-3.14.rst
2229
2227
2230
- * Global configuration variables:
2228
+ .. include :: ../deprecations/c-api-pending-removal-in-3.15.rst
2231
2229
2232
- * :c:var: `Py_DebugFlag `: use :c:member: `PyConfig.parser_debug `
2233
- * :c:var: `Py_VerboseFlag `: use :c:member: `PyConfig.verbose `
2234
- * :c:var: `Py_QuietFlag `: use :c:member: `PyConfig.quiet `
2235
- * :c:var: `Py_InteractiveFlag `: use :c:member: `PyConfig.interactive `
2236
- * :c:var: `Py_InspectFlag `: use :c:member: `PyConfig.inspect `
2237
- * :c:var: `Py_OptimizeFlag `: use :c:member: `PyConfig.optimization_level `
2238
- * :c:var: `Py_NoSiteFlag `: use :c:member: `PyConfig.site_import `
2239
- * :c:var: `Py_BytesWarningFlag `: use :c:member: `PyConfig.bytes_warning `
2240
- * :c:var: `Py_FrozenFlag `: use :c:member: `PyConfig.pathconfig_warnings `
2241
- * :c:var: `Py_IgnoreEnvironmentFlag `: use :c:member: `PyConfig.use_environment `
2242
- * :c:var: `Py_DontWriteBytecodeFlag `: use :c:member: `PyConfig.write_bytecode `
2243
- * :c:var: `Py_NoUserSiteDirectory `: use :c:member: `PyConfig.user_site_directory `
2244
- * :c:var: `Py_UnbufferedStdioFlag `: use :c:member: `PyConfig.buffered_stdio `
2245
- * :c:var: `Py_HashRandomizationFlag `: use :c:member: `PyConfig.use_hash_seed `
2246
- and :c:member: `PyConfig.hash_seed `
2247
- * :c:var: `Py_IsolatedFlag `: use :c:member: `PyConfig.isolated `
2248
- * :c:var: `Py_LegacyWindowsFSEncodingFlag `: use :c:member: `PyPreConfig.legacy_windows_fs_encoding `
2249
- * :c:var: `Py_LegacyWindowsStdioFlag `: use :c:member: `PyConfig.legacy_windows_stdio `
2250
- * :c:var: `!Py_FileSystemDefaultEncoding `: use :c:member: `PyConfig.filesystem_encoding `
2251
- * :c:var: `!Py_HasFileSystemDefaultEncoding `: use :c:member: `PyConfig.filesystem_encoding `
2252
- * :c:var: `!Py_FileSystemDefaultEncodeErrors `: use :c:member: `PyConfig.filesystem_errors `
2253
- * :c:var: `!Py_UTF8Mode `: use :c:member: `PyPreConfig.utf8_mode ` (see :c:func: `Py_PreInitialize `)
2254
-
2255
- The :c:func: `Py_InitializeFromConfig ` API should be used with
2256
- :c:type: `PyConfig ` instead.
2257
-
2258
- * Creating :c:data: `immutable types <Py_TPFLAGS_IMMUTABLETYPE> ` with mutable
2259
- bases (:gh: `95388 `).
2260
-
2261
- Pending Removal in Python 3.15
2262
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2263
-
2264
- * :c:func: `PyImport_ImportModuleNoBlock `: use :c:func: `PyImport_ImportModule `
2265
- * :c:type: `!Py_UNICODE_WIDE ` type: use :c:type: `wchar_t `
2266
- * :c:type: `Py_UNICODE ` type: use :c:type: `wchar_t `
2267
- * Python initialization functions:
2268
-
2269
- * :c:func: `PySys_ResetWarnOptions `: clear :data: `sys.warnoptions ` and
2270
- :data: `!warnings.filters `
2271
- * :c:func: `Py_GetExecPrefix `: get :data: `sys.exec_prefix `
2272
- * :c:func: `Py_GetPath `: get :data: `sys.path `
2273
- * :c:func: `Py_GetPrefix `: get :data: `sys.prefix `
2274
- * :c:func: `Py_GetProgramFullPath `: get :data: `sys.executable `
2275
- * :c:func: `Py_GetProgramName `: get :data: `sys.executable `
2276
- * :c:func: `Py_GetPythonHome `: get :c:member: `PyConfig.home ` or
2277
- the :envvar: `PYTHONHOME ` environment variable
2278
-
2279
- Pending Removal in Future Versions
2280
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2281
-
2282
- The following APIs are deprecated and will be removed,
2283
- although there is currently no date scheduled for their removal.
2284
-
2285
- * :c:macro: `Py_TPFLAGS_HAVE_FINALIZE `: unneeded since Python 3.8
2286
- * :c:func: `PyErr_Fetch `: use :c:func: `PyErr_GetRaisedException `
2287
- * :c:func: `PyErr_NormalizeException `: use :c:func: `PyErr_GetRaisedException `
2288
- * :c:func: `PyErr_Restore `: use :c:func: `PyErr_SetRaisedException `
2289
- * :c:func: `PyModule_GetFilename `: use :c:func: `PyModule_GetFilenameObject `
2290
- * :c:func: `PyOS_AfterFork `: use :c:func: `PyOS_AfterFork_Child `
2291
- * :c:func: `PySlice_GetIndicesEx `: use :c:func: `PySlice_Unpack ` and :c:func: `PySlice_AdjustIndices `
2292
- * :c:func: `!PyUnicode_AsDecodedObject `: use :c:func: `PyCodec_Decode `
2293
- * :c:func: `!PyUnicode_AsDecodedUnicode `: use :c:func: `PyCodec_Decode `
2294
- * :c:func: `!PyUnicode_AsEncodedObject `: use :c:func: `PyCodec_Encode `
2295
- * :c:func: `!PyUnicode_AsEncodedUnicode `: use :c:func: `PyCodec_Encode `
2296
- * :c:func: `PyUnicode_READY `: unneeded since Python 3.12
2297
- * :c:func: `!PyErr_Display `: use :c:func: `PyErr_DisplayException `
2298
- * :c:func: `!_PyErr_ChainExceptions `: use ``_PyErr_ChainExceptions1 ``
2299
- * :c:member: `!PyBytesObject.ob_shash ` member:
2300
- call :c:func: `PyObject_Hash ` instead
2301
- * :c:member: `!PyDictObject.ma_version_tag ` member
2302
- * Thread Local Storage (TLS) API:
2303
-
2304
- * :c:func: `PyThread_create_key `: use :c:func: `PyThread_tss_alloc `
2305
- * :c:func: `PyThread_delete_key `: use :c:func: `PyThread_tss_free `
2306
- * :c:func: `PyThread_set_key_value `: use :c:func: `PyThread_tss_set `
2307
- * :c:func: `PyThread_get_key_value `: use :c:func: `PyThread_tss_get `
2308
- * :c:func: `PyThread_delete_key_value `: use :c:func: `PyThread_tss_delete `
2309
- * :c:func: `PyThread_ReInitTLS `: unneeded since Python 3.7
2230
+ .. include :: ../deprecations/c-api-pending-removal-in-future.rst
2310
2231
2311
2232
Removed
2312
2233
-------
0 commit comments