Skip to content

Commit

Permalink
pythongh-104773: PEP 594: Remove the xdrlib module (python#104900)
Browse files Browse the repository at this point in the history
pickle documentation no longer mentions the XDR format.
  • Loading branch information
vstinner authored May 24, 2023
1 parent 17e1fe0 commit 087c1a6
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 615 deletions.
4 changes: 0 additions & 4 deletions Doc/library/array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ Examples::
Module :mod:`struct`
Packing and unpacking of heterogeneous binary data.

Module :mod:`xdrlib`
Packing and unpacking of External Data Representation (XDR) data as used in some
remote procedure call systems.

`NumPy <https://numpy.org/>`_
The NumPy package defines another array type.

2 changes: 1 addition & 1 deletion Doc/library/pickle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Data stream format

The data format used by :mod:`pickle` is Python-specific. This has the
advantage that there are no restrictions imposed by external standards such as
JSON or XDR (which can't represent pointer sharing); however it means that
JSON (which can't represent pointer sharing); however it means that
non-Python programs may not be able to reconstruct pickled Python objects.

By default, the :mod:`pickle` data format uses a relatively compact binary
Expand Down
1 change: 0 additions & 1 deletion Doc/library/superseded.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ backwards compatibility. They have been superseded by other modules.
msilib.rst
optparse.rst
uu.rst
xdrlib.rst
283 changes: 0 additions & 283 deletions Doc/library/xdrlib.rst

This file was deleted.

1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ Doc/library/webbrowser.rst
Doc/library/winreg.rst
Doc/library/winsound.rst
Doc/library/wsgiref.rst
Doc/library/xdrlib.rst
Doc/library/xml.dom.minidom.rst
Doc/library/xml.dom.pulldom.rst
Doc/library/xml.dom.rst
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ Modules
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`audioop` | :mod:`crypt` | :mod:`!nis` | :mod:`!sndhdr` | :mod:`uu` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`!cgi` | :mod:`imghdr` | :mod:`!nntplib` | :mod:`!spwd` | :mod:`xdrlib` |
| :mod:`!cgi` | :mod:`imghdr` | :mod:`!nntplib` | :mod:`!spwd` | :mod:`!xdrlib` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`!cgitb` | :mod:`!mailcap` | :mod:`!ossaudiodev` | :mod:`!sunau` | |
+---------------------+---------------------+---------------------+---------------------+---------------------+
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ Modules (see :pep:`594`):
* :mod:`!sunau`
* :mod:`!telnetlib`
* :mod:`uu`
* :mod:`xdrlib`
* :mod:`!xdrlib`

APIs:

Expand Down
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ Removed
* :pep:`594`: Remove the :mod:`!nis` module, deprecated in Python 3.11.
(Contributed by Victor Stinner in :gh:`104773`.)

* :pep:`594`: Remove the :mod:`!xdrlib` module, deprecated in Python 3.11.
(Contributed by Victor Stinner in :gh:`104773`.)


Porting to Python 3.13
======================
Expand Down
Loading

0 comments on commit 087c1a6

Please sign in to comment.