@@ -1330,155 +1330,13 @@ Deprecated
1330
1330
therefore it will be removed in 3.14.
1331
1331
(Contributed by Nikita Sobolev in :gh: `101866 `.)
1332
1332
1333
- Pending Removal in Python 3.13
1334
- ------------------------------
1335
-
1336
- The following modules and APIs have been deprecated in earlier Python releases,
1337
- and will be removed in Python 3.13.
1338
-
1339
- Modules (see :pep: `594 `):
1340
-
1341
- * :mod: `!aifc `
1342
- * :mod: `!audioop `
1343
- * :mod: `!cgi `
1344
- * :mod: `!cgitb `
1345
- * :mod: `!chunk `
1346
- * :mod: `!crypt `
1347
- * :mod: `!imghdr `
1348
- * :mod: `!mailcap `
1349
- * :mod: `!msilib `
1350
- * :mod: `!nis `
1351
- * :mod: `!nntplib `
1352
- * :mod: `!ossaudiodev `
1353
- * :mod: `!pipes `
1354
- * :mod: `!sndhdr `
1355
- * :mod: `!spwd `
1356
- * :mod: `!sunau `
1357
- * :mod: `!telnetlib `
1358
- * :mod: `!uu `
1359
- * :mod: `!xdrlib `
1360
-
1361
- Other modules:
1362
-
1363
- * :mod: `!lib2to3 `, and the :program: `2to3 ` program (:gh: `84540 `)
1364
-
1365
- APIs:
1366
-
1367
- * :class: `!configparser.LegacyInterpolation ` (:gh: `90765 `)
1368
- * ``locale.resetlocale() `` (:gh: `90817 `)
1369
- * :meth: `!turtle.RawTurtle.settiltangle ` (:gh: `50096 `)
1370
- * :func: `!unittest.findTestCases ` (:gh: `50096 `)
1371
- * :func: `!unittest.getTestCaseNames ` (:gh: `50096 `)
1372
- * :func: `!unittest.makeSuite ` (:gh: `50096 `)
1373
- * :meth: `!unittest.TestProgram.usageExit ` (:gh: `67048 `)
1374
- * :class: `!webbrowser.MacOSX ` (:gh: `86421 `)
1375
- * :class: `classmethod ` descriptor chaining (:gh: `89519 `)
1376
- * :mod: `importlib.resources ` deprecated methods:
1377
-
1378
- * ``contents() ``
1379
- * ``is_resource() ``
1380
- * ``open_binary() ``
1381
- * ``open_text() ``
1382
- * ``path() ``
1383
- * ``read_binary() ``
1384
- * ``read_text() ``
1385
-
1386
- Use :func: `importlib.resources.files() ` instead. Refer to `importlib-resources: Migrating from Legacy
1387
- <https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy> `_ (:gh: `106531 `)
1388
-
1389
- Pending Removal in Python 3.14
1390
- ------------------------------
1391
-
1392
- The following APIs have been deprecated
1393
- and will be removed in Python 3.14.
1394
-
1395
- * :mod: `argparse `: The *type *, *choices *, and *metavar * parameters
1396
- of :class: `!argparse.BooleanOptionalAction `
1397
-
1398
- * :mod: `ast `:
1399
-
1400
- * :class: `!ast.Num `
1401
- * :class: `!ast.Str `
1402
- * :class: `!ast.Bytes `
1403
- * :class: `!ast.NameConstant `
1404
- * :class: `!ast.Ellipsis `
1405
-
1406
- * :mod: `asyncio `:
1407
-
1408
- * :class: `!asyncio.MultiLoopChildWatcher `
1409
- * :class: `!asyncio.FastChildWatcher `
1410
- * :class: `!asyncio.AbstractChildWatcher `
1411
- * :class: `!asyncio.SafeChildWatcher `
1412
- * :func: `!asyncio.set_child_watcher `
1413
- * :func: `!asyncio.get_child_watcher `,
1414
- * :meth: `!asyncio.AbstractEventLoopPolicy.set_child_watcher `
1415
- * :meth: `!asyncio.AbstractEventLoopPolicy.get_child_watcher `
1416
-
1417
- * :mod: `collections.abc `: :class: `!collections.abc.ByteString `.
1418
-
1419
- * :mod: `email `: the *isdst * parameter in :func: `email.utils.localtime `.
1420
-
1421
- * :mod: `importlib.abc `:
1422
-
1423
- * :class: `!importlib.abc.ResourceReader `
1424
- * :class: `!importlib.abc.Traversable `
1425
- * :class: `!importlib.abc.TraversableResources `
1426
-
1427
- * :mod: `itertools `: Support for copy, deepcopy, and pickle operations.
1428
-
1429
- * :mod: `pkgutil `:
1430
-
1431
- * :func: `!pkgutil.find_loader `
1432
- * :func: `!pkgutil.get_loader `.
1433
-
1434
- * :mod: `pty `:
1435
-
1436
- * :func: `!pty.master_open `
1437
- * :func: `!pty.slave_open `
1438
-
1439
- * :mod: `shutil `: The *onerror * argument of :func: `shutil.rmtree `
1440
-
1441
- * :mod: `typing `: :class: `!typing.ByteString `
1442
-
1443
- * The ``__package__ `` and ``__cached__ `` attributes on module objects.
1444
-
1445
- * The :attr: `~codeobject.co_lnotab ` attribute of code objects.
1446
-
1447
- Pending Removal in Python 3.15
1448
- ------------------------------
1449
-
1450
- The following APIs have been deprecated
1451
- and will be removed in Python 3.15.
1452
-
1453
- APIs:
1454
-
1455
- * :func: `locale.getdefaultlocale ` (:gh: `90817 `)
1456
-
1457
-
1458
- Pending Removal in Future Versions
1459
- ----------------------------------
1460
-
1461
- The following APIs were deprecated in earlier Python versions and will be removed,
1462
- although there is currently no date scheduled for their removal.
1463
-
1464
- * :mod: `array `'s ``'u' `` format code (:gh: `57281 `)
1465
-
1466
- * :class: `typing.Text ` (:gh: `92332 `)
1333
+ .. include :: ../deprecations/pending-removal-in-3.13.rst
1467
1334
1468
- * :mod: `xml.etree.ElementTree `: Testing the truth value of an
1469
- :class: `xml.etree.ElementTree.Element ` is deprecated. In a future release it
1470
- will always return True. Prefer explicit ``len(elem) `` or
1471
- ``elem is not None `` tests instead.
1335
+ .. include :: ../deprecations/pending-removal-in-3.14.rst
1472
1336
1473
- * Currently Python accepts numeric literals immediately followed by keywords,
1474
- for example ``0in x ``, ``1or x ``, ``0if 1else 2 ``. It allows confusing
1475
- and ambiguous expressions like ``[0x1for x in y] `` (which can be
1476
- interpreted as ``[0x1 for x in y] `` or ``[0x1f or x in y] ``).
1477
- A syntax warning is raised if the numeric literal is
1478
- immediately followed by one of keywords :keyword: `and `, :keyword: `else `,
1479
- :keyword: `for `, :keyword: `if `, :keyword: `in `, :keyword: `is ` and :keyword: `or `.
1480
- In a future release it will be changed to a syntax error. (:gh: `87999 `)
1337
+ .. include :: ../deprecations/pending-removal-in-3.15.rst
1481
1338
1339
+ .. include :: ../deprecations/pending-removal-in-future.rst
1482
1340
1483
1341
Removed
1484
1342
=======
0 commit comments