summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-29 09:58:20 +0100
committerGitHub <noreply@github.com>2018-11-29 09:58:20 +0100
commit73104fa1e6a791f7d66c0091ed91f6c396ca0fb2 (patch)
tree460498e3e8f71eedf8f751ec72fe2662f2af5983 /Doc
parent7cc1fa40b76de34a0fe86162667c87ce7a18f33d (diff)
downloadcpython-git-73104fa1e6a791f7d66c0091ed91f6c396ca0fb2.tar.gz
bpo-35345: Remove platform.popen() (GH-10781)
Remove platform.popen() function, it was deprecated since Python 3.3: use os.popen() instead. Rename also the "Removed" section to "API and Feature Removals" of What's New in Python 3.8.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/platform.rst14
-rw-r--r--Doc/whatsnew/3.8.rst12
2 files changed, 10 insertions, 16 deletions
diff --git a/Doc/library/platform.rst b/Doc/library/platform.rst
index 92691fcbea..7ac4b02741 100644
--- a/Doc/library/platform.rst
+++ b/Doc/library/platform.rst
@@ -212,20 +212,6 @@ Windows Platform
only runs on Win32 compatible platforms.
-Win95/98 specific
-^^^^^^^^^^^^^^^^^
-
-.. function:: popen(cmd, mode='r', bufsize=-1)
-
- Portable :func:`popen` interface. Find a working popen implementation
- preferring :func:`win32pipe.popen`. On Windows NT, :func:`win32pipe.popen`
- should work; on Windows 9x it hangs due to bugs in the MS C library.
-
- .. deprecated:: 3.3
- This function is obsolete. Use the :mod:`subprocess` module. Check
- especially the :ref:`subprocess-replacements` section.
-
-
Mac OS Platform
---------------
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index e5e6d4a599..5492a90aac 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -373,8 +373,13 @@ Deprecated
(Contributed by Serhiy Storchaka in :issue:`33710`.)
-Removed
-=======
+API and Feature Removals
+========================
+
+The following features and APIs have been removed from Python 3.8:
+
+* The function :func:`platform.popen` has been removed, it was deprecated since
+ Python 3.3: use :func:`os.popen` instead.
* The ``pyvenv`` script has been removed in favor of ``python3.8 -m venv``
to help eliminate confusion as to what Python interpreter the ``pyvenv``
@@ -414,6 +419,9 @@ Changes in Python behavior
Changes in the Python API
-------------------------
+* The function :func:`platform.popen` has been removed, it was deprecated since
+ Python 3.3: use :func:`os.popen` instead.
+
* The :meth:`~tkinter.ttk.Treeview.selection` method of the
:class:`tkinter.ttk.Treeview` class no longer takes arguments. Using it with
arguments for changing the selection was deprecated in Python 3.6. Use