Skip to content

Commit d22503d

Browse files
committed
Soft-deprecate C-API OSError aliases
1 parent 867d16e commit d22503d

1 file changed

Lines changed: 14 additions & 23 deletions

File tree

‎Doc/c-api/exceptions.rst‎

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,34 +1273,25 @@ Exception types
12731273
OSError aliases
12741274
---------------
12751275
1276-
The following are a compatibility aliases to :c:data:`PyExc_OSError`.
1276+
The following are :term:`soft deprecated` compatibility aliases
1277+
to :c:data:`PyExc_OSError`.
12771278
1278-
.. versionchanged:: 3.3
1279-
These aliases used to be separate exception types.
1279+
.. c:var:: PyObject *PyExc_EnvironmentError
12801280
1281-
.. list-table::
1282-
:align: left
1283-
:widths: auto
1284-
:header-rows: 1
1281+
.. soft-deprecated:: next
1282+
Use :c:data:`PyExc_OSError` instead.
12851283
1286-
* * C name
1287-
* Python name
1288-
* Notes
1289-
* * .. c:var:: PyObject *PyExc_EnvironmentError
1290-
* :exc:`OSError`
1291-
*
1292-
* * .. c:var:: PyObject *PyExc_IOError
1293-
* :exc:`OSError`
1294-
*
1295-
* * .. c:var:: PyObject *PyExc_WindowsError
1296-
* :exc:`OSError`
1297-
* [win]_
1284+
.. c:var:: PyObject *PyExc_IOError
1285+
1286+
.. soft-deprecated:: next
1287+
Use :c:data:`PyExc_OSError` instead.
1288+
1289+
.. c:var:: PyObject *PyExc_WindowsError
12981290
1299-
Notes:
1291+
.. availability:: Windows
13001292
1301-
.. [win]
1302-
:c:var:`!PyExc_WindowsError` is only defined on Windows; protect code that
1303-
uses this by testing that the preprocessor macro ``MS_WINDOWS`` is defined.
1293+
.. soft-deprecated:: next
1294+
Use :c:data:`PyExc_OSError` instead.
13041295
13051296
13061297
.. _standardwarningcategories:

0 commit comments

Comments
 (0)