Skip to content

Commit f1d5cde

Browse files
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515) (GH-28524)
Replace old names when they refer to actual versions of macOS. Keep historical names in references to older versions. Co-authored-by: Patrick Reader <_@pxeger.com> (cherry picked from commit 36122e1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent e06b0fd commit f1d5cde

29 files changed

+69
-69
lines changed

Doc/c-api/init.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Process-wide parameters
448448
(set by :c:func:`Py_SetProgramName` above) and some environment variables.
449449
The returned string consists of a series of directory names separated by a
450450
platform dependent delimiter character. The delimiter character is ``':'``
451-
on Unix and Mac OS X, ``';'`` on Windows. The returned string points into
451+
on Unix and macOS, ``';'`` on Windows. The returned string points into
452452
static storage; the caller should not modify its value. The list
453453
:data:`sys.path` is initialized with this value on interpreter startup; it
454454
can be (and usually is) modified later to change the search path for loading
@@ -469,7 +469,7 @@ Process-wide parameters
469469
default search path but uses the one provided instead. This is useful if
470470
Python is embedded by an application that has full knowledge of the location
471471
of all modules. The path components should be separated by the platform
472-
dependent delimiter character, which is ``':'`` on Unix and Mac OS X, ``';'``
472+
dependent delimiter character, which is ``':'`` on Unix and macOS, ``';'``
473473
on Windows.
474474
475475
This also causes :data:`sys.executable` to be set to the program
@@ -510,7 +510,7 @@ Process-wide parameters
510510
Return the platform identifier for the current platform. On Unix, this is
511511
formed from the "official" name of the operating system, converted to lower
512512
case, followed by the major revision number; e.g., for Solaris 2.x, which is
513-
also known as SunOS 5.x, the value is ``'sunos5'``. On Mac OS X, it is
513+
also known as SunOS 5.x, the value is ``'sunos5'``. On macOS, it is
514514
``'darwin'``. On Windows, it is ``'win'``. The returned string points into
515515
static storage; the caller should not modify its value. The value is available
516516
to Python code as ``sys.platform``.

Doc/distributing/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ by invoking the ``pip`` module at the command line::
101101

102102
.. note::
103103

104-
For POSIX users (including Mac OS X and Linux users), these instructions
104+
For POSIX users (including macOS and Linux users), these instructions
105105
assume the use of a :term:`virtual environment`.
106106

107107
For Windows users, these instructions assume that the option to

Doc/distutils/apiref.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ This module provides the following functions.
373373
compiler object under Unix---if you supply a value for *compiler*, *plat* is
374374
ignored.
375375

376-
.. % Is the posix/nt only thing still true? Mac OS X seems to work, and
376+
.. % Is the posix/nt only thing still true? macOS seems to work, and
377377
.. % returns a UnixCCompiler instance. How to document this... hmm.
378378
379379
@@ -1119,11 +1119,11 @@ other utility module.
11191119

11201120
For non-POSIX platforms, currently just returns ``sys.platform``.
11211121

1122-
For Mac OS X systems the OS version reflects the minimal version on which
1122+
For macOS systems the OS version reflects the minimal version on which
11231123
binaries will run (that is, the value of ``MACOSX_DEPLOYMENT_TARGET``
11241124
during the build of Python), not the OS version of the current system.
11251125

1126-
For universal binary builds on Mac OS X the architecture value reflects
1126+
For universal binary builds on macOS the architecture value reflects
11271127
the universal binary status instead of the architecture of the current
11281128
processor. For 32-bit universal binaries the architecture is ``fat``,
11291129
for 64-bit universal binaries the architecture is ``fat64``, and
@@ -1132,7 +1132,7 @@ other utility module.
11321132
a 3-way universal build (ppc, i386, x86_64) and ``intel`` is used for
11331133
a universal build with the i386 and x86_64 architectures
11341134

1135-
Examples of returned values on Mac OS X:
1135+
Examples of returned values on macOS:
11361136

11371137
* ``macosx-10.3-ppc``
11381138

Doc/faq/gui.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install (since it comes included with most
2323
`binary distributions <https://www.python.org/downloads/>`_ of Python) and use.
2424
For more info about Tk, including pointers to the source, see the
2525
`Tcl/Tk home page <https://www.tcl.tk>`_. Tcl/Tk is fully portable to the
26-
Mac OS X, Windows, and Unix platforms.
26+
macOS, Windows, and Unix platforms.
2727

2828
Depending on what platform(s) you are aiming at, there are also several
2929
alternatives. A `list of cross-platform

Doc/faq/installed.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ there are several possible ways it could have gotten there.
2929
* Some Windows machines also have Python installed. At this writing we're aware
3030
of computers from Hewlett-Packard and Compaq that include Python. Apparently
3131
some of HP/Compaq's administrative tools are written in Python.
32-
* Many Unix-compatible operating systems, such as Mac OS X and some Linux
32+
* Many Unix-compatible operating systems, such as macOS and some Linux
3333
distributions, have Python installed by default; it's included in the base
3434
installation.
3535

Doc/install/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ directory.
199199
If you don't choose an installation directory---i.e., if you just run ``setup.py
200200
install``\ ---then the :command:`install` command installs to the standard
201201
location for third-party Python modules. This location varies by platform and
202-
by how you built/installed Python itself. On Unix (and Mac OS X, which is also
202+
by how you built/installed Python itself. On Unix (and macOS, which is also
203203
Unix-based), it also depends on whether the module distribution being installed
204204
is pure Python or contains extensions ("non-pure"):
205205

@@ -229,7 +229,7 @@ Notes:
229229

230230
:file:`{prefix}` and :file:`{exec-prefix}` stand for the directories that Python
231231
is installed to, and where it finds its libraries at run-time. They are always
232-
the same under Windows, and very often the same under Unix and Mac OS X. You
232+
the same under Windows, and very often the same under Unix and macOS. You
233233
can find out what your Python installation uses for :file:`{prefix}` and
234234
:file:`{exec-prefix}` by running Python in interactive mode and typing a few
235235
simple commands. Under Unix, just type ``python`` at the shell prompt. Under
@@ -305,7 +305,7 @@ install into it. It is enabled with a simple option::
305305
Files will be installed into subdirectories of :data:`site.USER_BASE` (written
306306
as :file:`{userbase}` hereafter). This scheme installs pure Python modules and
307307
extension modules in the same location (also known as :data:`site.USER_SITE`).
308-
Here are the values for UNIX, including Mac OS X:
308+
Here are the values for UNIX, including macOS:
309309

310310
=============== ===========================================================
311311
Type of file Installation directory
@@ -728,7 +728,7 @@ Location and names of config files
728728
----------------------------------
729729

730730
The names and locations of the configuration files vary slightly across
731-
platforms. On Unix and Mac OS X, the three configuration files (in the order
731+
platforms. On Unix and macOS, the three configuration files (in the order
732732
they are processed) are:
733733

734734
+--------------+----------------------------------------------------------+-------+

Doc/installing/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dependencies from the Python Packaging Index::
8484

8585
.. note::
8686

87-
For POSIX users (including Mac OS X and Linux users), the examples in
87+
For POSIX users (including macOS and Linux users), the examples in
8888
this guide assume the use of a :term:`virtual environment`.
8989

9090
For Windows users, the examples in this guide assume that the option to
@@ -163,7 +163,7 @@ rather than attempting to install them with ``pip``.
163163
... work with multiple versions of Python installed in parallel?
164164
----------------------------------------------------------------
165165

166-
On Linux, Mac OS X, and other POSIX systems, use the versioned Python commands
166+
On Linux, macOS, and other POSIX systems, use the versioned Python commands
167167
in combination with the ``-m`` switch to run the appropriate copy of
168168
``pip``::
169169

@@ -225,7 +225,7 @@ users being expected to compile extension modules from source as part of
225225
the installation process.
226226

227227
With the introduction of support for the binary ``wheel`` format, and the
228-
ability to publish wheels for at least Windows and Mac OS X through the
228+
ability to publish wheels for at least Windows and macOS through the
229229
Python Packaging Index, this problem is expected to diminish over time,
230230
as users are more regularly able to install pre-built extensions rather
231231
than needing to build them themselves.

Doc/library/ctypes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ctypes tutorial
2020

2121
Note: The code samples in this tutorial use :mod:`doctest` to make sure that
2222
they actually work. Since some code samples behave differently under Linux,
23-
Windows, or Mac OS X, they contain doctest directives in comments.
23+
Windows, or macOS, they contain doctest directives in comments.
2424

2525
Note: Some code samples reference the ctypes :class:`c_int` type. On platforms
2626
where ``sizeof(long) == sizeof(int)`` it is an alias to :class:`c_long`.
@@ -80,7 +80,7 @@ the library by creating an instance of CDLL by calling the constructor::
8080
<CDLL 'libc.so.6', handle ... at ...>
8181
>>>
8282

83-
.. XXX Add section for Mac OS X.
83+
.. XXX Add section for macOS.
8484
8585
8686
.. _ctypes-accessing-functions-from-loaded-dlls:
@@ -1288,7 +1288,7 @@ Here are some examples::
12881288
'libbz2.so.1.0'
12891289
>>>
12901290

1291-
On OS X, :func:`find_library` tries several predefined naming schemes and paths
1291+
On macOS, :func:`find_library` tries several predefined naming schemes and paths
12921292
to locate the library, and returns a full pathname if successful::
12931293

12941294
>>> from ctypes.util import find_library

Doc/library/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ Notes on availability
5858
operating system.
5959

6060
* If not separately noted, all functions that claim "Availability: Unix" are
61-
supported on Mac OS X, which builds on a Unix core.
61+
supported on macOS, which builds on a Unix core.
6262

Doc/library/mmap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
100100

101101
To ensure validity of the created memory mapping the file specified
102102
by the descriptor *fileno* is internally automatically synchronized
103-
with physical backing store on Mac OS X and OpenVMS.
103+
with physical backing store on macOS and OpenVMS.
104104

105105
This example shows a simple way of using :class:`~mmap.mmap`::
106106

0 commit comments

Comments
 (0)