Pending Removal in Python 3.14¶
The
ma_version_tag
field inPyDictObject
for extension modules (PEP 699; gh-101193).Creating
immutable types
with mutable bases (gh-95388).Functions to configure Python’s initialization, deprecated in Python 3.11:
PySys_SetArgvEx()
: setPyConfig.argv
instead.PySys_SetArgv()
: setPyConfig.argv
instead.Py_SetProgramName()
: setPyConfig.program_name
instead.Py_SetPythonHome()
: setPyConfig.home
instead.
The
Py_InitializeFromConfig()
API should be used withPyConfig
instead.Global configuration variables:
Py_DebugFlag
: usePyConfig.parser_debug
instead.Py_VerboseFlag
: usePyConfig.verbose
instead.Py_QuietFlag
: usePyConfig.quiet
instead.Py_InteractiveFlag
: usePyConfig.interactive
instead.Py_InspectFlag
: usePyConfig.inspect
instead.Py_OptimizeFlag
: usePyConfig.optimization_level
instead.Py_NoSiteFlag
: usePyConfig.site_import
instead.Py_BytesWarningFlag
: usePyConfig.bytes_warning
instead.Py_FrozenFlag
: usePyConfig.pathconfig_warnings
instead.Py_IgnoreEnvironmentFlag
: usePyConfig.use_environment
instead.Py_DontWriteBytecodeFlag
: usePyConfig.write_bytecode
instead.Py_NoUserSiteDirectory
: usePyConfig.user_site_directory
instead.Py_UnbufferedStdioFlag
: usePyConfig.buffered_stdio
instead.Py_HashRandomizationFlag
: usePyConfig.use_hash_seed
andPyConfig.hash_seed
instead.Py_IsolatedFlag
: usePyConfig.isolated
instead.Py_LegacyWindowsFSEncodingFlag
: usePyPreConfig.legacy_windows_fs_encoding
instead.Py_LegacyWindowsStdioFlag
: usePyConfig.legacy_windows_stdio
instead.Py_FileSystemDefaultEncoding
: usePyConfig.filesystem_encoding
instead.Py_HasFileSystemDefaultEncoding
: usePyConfig.filesystem_encoding
instead.Py_FileSystemDefaultEncodeErrors
: usePyConfig.filesystem_errors
instead.Py_UTF8Mode
: usePyPreConfig.utf8_mode
instead. (seePy_PreInitialize()
)
The
Py_InitializeFromConfig()
API should be used withPyConfig
instead.