Inada Naoki
4e294f6feb
gh-133036: Deprecate codecs.open ( #133038 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-30 10:11:09 +09:00
Stan Ulbrych
59ff42155a
gh-57281: Fix duplicate deprecation note: array 'u' format ( #133113 )
2025-04-29 13:22:15 +02:00
Hugo van Kemenade
ee9102a535
gh-75223: Deprecate undotted extensions in `mimetypes.MimeTypes.add_type` ( #128638 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2025-04-28 14:23:57 +00:00
Stan Ulbrych
f6fb498c97
gh-132798: Schedule removal of `PyUnicode_AsDecoded/Encoded` functions for 3.15 ( #132799 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-25 15:07:41 +02:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
8783cec9b6
gh-129027: Raise DeprecationWarning for sys._clear_type_cache ( #129043 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-25 15:01:48 +03:00
Kumar Aditya
05d27a84f4
gh-130322: drop deprecation of `asyncio.set_event_loop` ( #132349 )
2025-04-12 12:03:52 +05:30
Hugo van Kemenade
3d797e49c8
gh-92897: Doc: the check_home removal has been scheduled for 3.15 ( #130586 )
2025-03-14 12:29:23 +02:00
Jelle Zijlstra
dc6d66f44c
gh-105499: Merge typing.Union and types.UnionType ( #105511 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Carl Meyer <carl@oddbird.net>
2025-03-04 11:44:19 -08:00
Victor Stinner
519c2c6740
gh-128863: Deprecate the private _PyUnicodeWriter API ( #129245 )
...
Deprecate private C API functions:
* _PyUnicodeWriter_Init()
* _PyUnicodeWriter_Finish()
* _PyUnicodeWriter_Dealloc()
* _PyUnicodeWriter_WriteChar()
* _PyUnicodeWriter_WriteStr()
* _PyUnicodeWriter_WriteSubstring()
* _PyUnicodeWriter_WriteASCIIString()
* _PyUnicodeWriter_WriteLatin1String()
These functions are not deprecated in the internal C API (if the
Py_BUILD_CORE macro is defined).
2025-02-20 14:02:02 +01:00
Wulian233
06ac157c53
gh-125746: Delay deprecated `zipimport.zipimporter.load_module` removal time to 3.15 ( #125748 )
2025-02-11 23:59:09 +00:00
Tomas R.
aa81a6f6e4
gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855)
2025-02-11 11:04:16 -08:00
Victor Stinner
632ca56821
gh-129342: Explain how to replace Py_GetProgramName() in C ( #129361 )
2025-02-03 12:36:41 +01:00
Victor Stinner
d8e16ef703
Cleanup What's New in Python 3.14 (C API changes) ( #129341 )
...
* Document PyDictObject.ma_version_tag removal.
* Add "Limited C API Changes" section.
* Move entries from New Features to Porting to Python 3.14.
* Include Pending removal documents at the right place.
2025-01-27 16:06:07 +01:00
Sergey B Kirpichev
233fd00f0a
gh-128863: Deprecate _PyLong_FromDigits() function ( #127939 )
2025-01-24 13:17:10 +01:00
Sergey B Kirpichev
5c9a63f62c
gh-128863: Deprecate _PyLong_New() function ( #129212 )
2025-01-23 13:50:34 +01:00
Victor Stinner
1d485db953
gh-128863: Deprecate _PyLong_Sign() function ( #129176 )
...
Replace _PyLong_Sign() with PyLong_GetSign().
2025-01-23 03:11:53 +01:00
Victor Stinner
9012fa741d
gh-128863: Deprecate private C API functions ( #128864 )
...
Deprecate private C API functions:
* _PyBytes_Join()
* _PyDict_GetItemStringWithError()
* _PyDict_Pop()
* _PyThreadState_UncheckedGet()
* _PyUnicode_AsString()
* _Py_HashPointer()
* _Py_fopen_obj()
Replace _Py_HashPointer() with Py_HashPointer().
Remove references to deprecated functions.
2025-01-22 11:04:19 +00:00
Bénédikt Tran
6a0f915aae
gh-129064: Fix RST markup for the NEWS and What's New entries ( #129131 )
...
This amends the NEWS and What's New entries introduced in 0a6412f9cc
.
2025-01-21 12:43:09 +01:00
Filipe Laíns 🇵🇸
e52ab564da
GH-92897: schedule the check_home deprecation to 3.15 ( #129102 )
2025-01-20 21:25:14 +00:00
Filipe Laíns 🇵🇸
0a6412f9cc
GH-129064: deprecate sysconfig.expand_makefile_vars ( #129082 )
2025-01-20 17:03:44 +00:00
Victor Stinner
bbeb219354
Complete doc of pending C API removals in Python 3.15 ( #129032 )
2025-01-19 22:47:05 +01:00
Victor Stinner
d57b2d83dd
gh-77782: Postpone Py_VerboseFlag removal to Python 3.15 ( #129024 )
...
Postpone the global configuration variables removal to Python 3.15.
Do the same for PySys_SetArgvEx(), PySys_SetArgv(),
Py_SetProgramName() and Py_SetPythonHome().
2025-01-19 20:51:17 +01:00
Hugo van Kemenade
98301326e4
gh-123299: Copyedit "What's New in Python 3.14" ( #128814 )
2025-01-14 08:53:03 +00:00
Kirill Podoprigora
d903b17499
gh-121676: Raise a ``DeprecationWarning`` if the Python implementation of ``functools.reduce`` is called with `function` or `sequence` as a keyword args ( #121677 )
...
Python implementation of `functools` allows calling `reduce`
with `function` or `sequence` as keyword args. This doesn't
match behavior of our C accelerator and our documentation
for `functools.reduce` states that `function`and `sequence`
are positional-only arguments.
Now calling a Python implementation of `functools.reduce`
with `function` or `sequence` as keyword args would raise
a `DeprecationWarning` and is planned to be prohibited in
Python 3.16.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-01-01 13:36:47 +02:00
Kumar Aditya
64173cd6f2
gh-127949: make deprecation of policy system more prominent ( #128290 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-12-27 15:13:41 +00:00
Barney Gale
4d771977b1
GH-84850: Remove `urllib.request.URLopener` and `FancyURLopener` ( #125739 )
2024-11-19 16:01:49 +02:00
Hugo van Kemenade
450db61a78
Postpone `module.__loader__` deprecation to Python 3.16 ( #126482 )
2024-11-09 16:48:33 -08:00
Hugo van Kemenade
eac41c5ddf
gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 ( #126392 )
2024-11-04 18:49:59 +02:00
Hugo van Kemenade
9441993f27
Docs: Delist sqlite3 deprecation from "Pending removal in 3.14" ( #126370 )
2024-11-03 21:22:49 +00:00
Bénédikt Tran
464a7a91d0
gh-97850: remove ``find_loader`` and ``get_loader`` from ``pkgutil`` ( #119656 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
2024-11-01 18:35:22 +02:00
Hugo van Kemenade
d4b6d84cc8
gh-58032: Docs: Sort argparse alphabetically (GH-125871)
...
Sort argparse alphabetically
2024-10-29 17:13:11 -07:00
Serhiy Storchaka
834ba5aaf2
gh-58032: Deprecate the argparse.FileType type converter (GH-124664)
2024-10-23 10:50:29 +03:00
Y5
7d88140d52
gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes ( #125317 )
...
Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes.
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
2024-10-21 11:35:54 +02:00
Savannah Ostrowski
7b04496e5c
gh-125542: Deprecate prefix_chars in ArgumentParser.add_argument_group() (GH-125563)
2024-10-17 09:11:47 +00:00
Hugo van Kemenade
66064c342c
gh-123299: Copyedit "What's New in Python 3.14" ( #125438 )
2024-10-15 10:39:15 +03:00
Alex Waygood
3024b16d51
gh-101100: Consolidate documentation on `ModuleType` attributes ( #124709 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Barry Warsaw <barry@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-10-09 10:53:57 +00:00
Jelle Zijlstra
1ba35ea385
gh-123299: Copy-edit the 3.14 What's New ( #124670 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-28 01:25:33 +03:00
Brett Cannon
67201ad53f
GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377)
...
The code changes for warning related to `__package__` landed in Python 3.12. `__cached__` doesn't have any changes as it isn't used but only set by the import system.
2024-09-23 14:14:33 -07:00
Adam Turner
e7d465a607
GH-109975: Copyedit 3.13 What's New: Copyedit C API deprecations pending removal ( #124336 )
2024-09-23 19:40:20 +01:00
Adam Turner
05235e3c16
GH-109975: Copyedit 3.13 What's New: New Deprecations ( #123845 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-16 17:03:46 +00:00
Wei-Hsiang (Matt) Wang
cf472577e2
gh-123517: Remove unnecessary ``:meth:`` parentheses ( #123518 )
2024-09-01 05:59:42 +01:00
Wei-Hsiang (Matt) Wang
103a0470e3
gh-123492: Remove unnecessary `:func:` parentheses ( #123493 )
2024-08-30 14:34:09 +03:00
Kirill Podoprigora
249b083ed8
gh-122982: Extend the deprecation period for bool inversion by two years ( #123306 )
2024-08-25 12:24:44 -07:00
Peter Bierma
9dbd123755
gh-123084: Turn `shutil.ExecError` into a deprecated alias of `RuntimeError` ( #123125 )
2024-08-21 00:39:24 +00:00
Victor Stinner
d3239976a8
gh-105376: Restore deprecated logging warn() method ( #122775 )
...
This reverts commit dcc028d924
and
commit 6c54e5d721
.
Keep the deprecated logging warn() method in Python 3.13.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-08-09 15:13:24 +02:00
Adam Turner
76bdfa4cd0
GH-122085: Use include files for C API deprecations ( #109843 )
2024-07-29 22:20:40 +01:00
Hugo van Kemenade
aa449cf063
gh-122085: Create dedicated page for deprecations ( #122352 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-07-28 10:53:21 +03:00
Hugo van Kemenade
4e75509349
gh-122085: Use include files for `whatsnew/3.14.rst` deprecations ( #122242 )
2024-07-27 14:17:54 +03:00
Hugo van Kemenade
b3b7b7d46a
gh-122085: Use include files for `whatsnew/3.12.rst` deprecations ( #122093 )
2024-07-24 02:29:35 -06:00
Hugo van Kemenade
a1df1b4439
Docs: move deprecations into include files ( #121241 )
2024-07-19 07:57:14 -06:00