Skip to content

Commit 36122e1

Browse files
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515)
Replace old names when they refer to actual versions of macOS. Keep historical names in references to older versions. Co-authored-by: Patrick Reader <[email protected]>
1 parent ecb6922 commit 36122e1

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
@@ -486,7 +486,7 @@ Process-wide parameters
486486
(set by :c:func:`Py_SetProgramName` above) and some environment variables.
487487
The returned string consists of a series of directory names separated by a
488488
platform dependent delimiter character. The delimiter character is ``':'``
489-
on Unix and Mac OS X, ``';'`` on Windows. The returned string points into
489+
on Unix and macOS, ``';'`` on Windows. The returned string points into
490490
static storage; the caller should not modify its value. The list
491491
:data:`sys.path` is initialized with this value on interpreter startup; it
492492
can be (and usually is) modified later to change the search path for loading
@@ -518,7 +518,7 @@ Process-wide parameters
518518
default search path but uses the one provided instead. This is useful if
519519
Python is embedded by an application that has full knowledge of the location
520520
of all modules. The path components should be separated by the platform
521-
dependent delimiter character, which is ``':'`` on Unix and Mac OS X, ``';'``
521+
dependent delimiter character, which is ``':'`` on Unix and macOS, ``';'``
522522
on Windows.
523523
524524
This also causes :data:`sys.executable` to be set to the program
@@ -561,7 +561,7 @@ Process-wide parameters
561561
Return the platform identifier for the current platform. On Unix, this is
562562
formed from the "official" name of the operating system, converted to lower
563563
case, followed by the major revision number; e.g., for Solaris 2.x, which is
564-
also known as SunOS 5.x, the value is ``'sunos5'``. On Mac OS X, it is
564+
also known as SunOS 5.x, the value is ``'sunos5'``. On macOS, it is
565565
``'darwin'``. On Windows, it is ``'win'``. The returned string points into
566566
static storage; the caller should not modify its value. The value is available
567567
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
@@ -206,7 +206,7 @@ directory.
206206
If you don't choose an installation directory---i.e., if you just run ``setup.py
207207
install``\ ---then the :command:`install` command installs to the standard
208208
location for third-party Python modules. This location varies by platform and
209-
by how you built/installed Python itself. On Unix (and Mac OS X, which is also
209+
by how you built/installed Python itself. On Unix (and macOS, which is also
210210
Unix-based), it also depends on whether the module distribution being installed
211211
is pure Python or contains extensions ("non-pure"):
212212

@@ -236,7 +236,7 @@ Notes:
236236

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

317317
=============== ===========================================================
318318
Type of file Installation directory
@@ -735,7 +735,7 @@ Location and names of config files
735735
----------------------------------
736736

737737
The names and locations of the configuration files vary slightly across
738-
platforms. On Unix and Mac OS X, the three configuration files (in the order
738+
platforms. On Unix and macOS, the three configuration files (in the order
739739
they are processed) are:
740740

741741
+--------------+----------------------------------------------------------+-------+

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:
@@ -1287,7 +1287,7 @@ Here are some examples::
12871287
'libbz2.so.1.0'
12881288
>>>
12891289

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

12931293
>>> 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
@@ -102,7 +102,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
102102

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

107107
This example shows a simple way of using :class:`~mmap.mmap`::
108108

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ For an example of the usage of queues for interprocess communication see
783783
multithreading/multiprocessing semantics, this number is not reliable.
784784

785785
Note that this may raise :exc:`NotImplementedError` on Unix platforms like
786-
Mac OS X where ``sem_getvalue()`` is not implemented.
786+
macOS where ``sem_getvalue()`` is not implemented.
787787

788788
.. method:: empty()
789789

@@ -1235,7 +1235,7 @@ object -- see :ref:`multiprocessing-managers`.
12351235
first argument is named *block*, as is consistent with :meth:`Lock.acquire`.
12361236

12371237
.. note::
1238-
On Mac OS X, this is indistinguishable from :class:`Semaphore` because
1238+
On macOS, this is indistinguishable from :class:`Semaphore` because
12391239
``sem_getvalue()`` is not implemented on that platform.
12401240

12411241
.. class:: Condition([lock])
@@ -1374,7 +1374,7 @@ object -- see :ref:`multiprocessing-managers`.
13741374

13751375
.. note::
13761376

1377-
On Mac OS X, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with
1377+
On macOS, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with
13781378
a timeout will emulate that function's behavior using a sleeping loop.
13791379

13801380
.. note::

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,7 @@ features:
27892789
String that uniquely identifies the type of the filesystem that
27902790
contains the file.
27912791

2792-
On Mac OS systems, the following attributes may also be available:
2792+
On macOS systems, the following attributes may also be available:
27932793

27942794
.. attribute:: st_rsize
27952795

Doc/library/platform.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,13 @@ Windows Platform
225225
.. versionadded:: 3.8
226226

227227

228-
Mac OS Platform
229-
---------------
228+
macOS Platform
229+
--------------
230230

231231

232232
.. function:: mac_ver(release='', versioninfo=('','',''), machine='')
233233

234-
Get Mac OS version information and return it as tuple ``(release, versioninfo,
234+
Get macOS version information and return it as tuple ``(release, versioninfo,
235235
machine)`` with *versioninfo* being a tuple ``(version, dev_stage,
236236
non_release_version)``.
237237

Doc/library/profile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ procedure can be used to obtain a better constant for a given platform (see
622622
The method executes the number of Python calls given by the argument, directly
623623
and again under the profiler, measuring the time for both. It then computes the
624624
hidden overhead per profiler event, and returns that as a float. For example,
625-
on a 1.8Ghz Intel Core i5 running Mac OS X, and using Python's time.process_time() as
625+
on a 1.8Ghz Intel Core i5 running macOS, and using Python's time.process_time() as
626626
the timer, the magical number is about 4.04e-6.
627627

628628
The object of this exercise is to get a fairly consistent result. If your

Doc/library/select.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
534534
| :const:`KQ_FILTER_PROC` | Watch for events on a process id |
535535
+---------------------------+---------------------------------------------+
536536
| :const:`KQ_FILTER_NETDEV` | Watch for events on a network device |
537-
| | [not available on Mac OS X] |
537+
| | [not available on macOS] |
538538
+---------------------------+---------------------------------------------+
539539
| :const:`KQ_FILTER_SIGNAL` | Returns whenever the watched signal is |
540540
| | delivered to the process |
@@ -626,7 +626,7 @@ https://www.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2
626626
| :const:`KQ_NOTE_TRACKERR` | unable to attach to a child |
627627
+----------------------------+--------------------------------------------+
628628

629-
:const:`KQ_FILTER_NETDEV` filter flags (not available on Mac OS X):
629+
:const:`KQ_FILTER_NETDEV` filter flags (not available on macOS):
630630

631631
+----------------------------+--------------------------------------------+
632632
| Constant | Meaning |

Doc/library/site.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ It starts by constructing up to four directories from a head and a tail part.
3232
For the head part, it uses ``sys.prefix`` and ``sys.exec_prefix``; empty heads
3333
are skipped. For the tail part, it uses the empty string and then
3434
:file:`lib/site-packages` (on Windows) or
35-
:file:`lib/python{X.Y}/site-packages` (on Unix and Macintosh). For each
35+
:file:`lib/python{X.Y}/site-packages` (on Unix and macOS). For each
3636
of the distinct head-tail combinations, it sees if it refers to an existing
3737
directory, and if so, adds it to ``sys.path`` and also inspects the newly
3838
added path for configuration files.
@@ -176,8 +176,8 @@ Module contents
176176

177177
Path to the user site-packages for the running Python. Can be ``None`` if
178178
:func:`getusersitepackages` hasn't been called yet. Default value is
179-
:file:`~/.local/lib/python{X.Y}/site-packages` for UNIX and non-framework Mac
180-
OS X builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for Mac
179+
:file:`~/.local/lib/python{X.Y}/site-packages` for UNIX and non-framework
180+
macOS builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for macOS
181181
framework builds, and :file:`{%APPDATA%}\\Python\\Python{XY}\\site-packages`
182182
on Windows. This directory is a site directory, which means that
183183
:file:`.pth` files in it will be processed.
@@ -187,8 +187,8 @@ Module contents
187187

188188
Path to the base directory for the user site-packages. Can be ``None`` if
189189
:func:`getuserbase` hasn't been called yet. Default value is
190-
:file:`~/.local` for UNIX and Mac OS X non-framework builds,
191-
:file:`~/Library/Python/{X.Y}` for Mac framework builds, and
190+
:file:`~/.local` for UNIX and macOS non-framework builds,
191+
:file:`~/Library/Python/{X.Y}` for macOS framework builds, and
192192
:file:`{%APPDATA%}\\Python` for Windows. This value is used by Distutils to
193193
compute the installation directories for scripts, data files, Python modules,
194194
etc. for the :ref:`user installation scheme <inst-alt-install-user>`.

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Constants
516516

517517
.. data:: AF_LINK
518518

519-
.. availability:: BSD, OSX.
519+
.. availability:: BSD, macOS.
520520

521521
.. versionadded:: 3.4
522522

Doc/library/sqlite3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ committed:
11321132
.. rubric:: Footnotes
11331133

11341134
.. [#f1] The sqlite3 module is not built with loadable extension support by
1135-
default, because some platforms (notably Mac OS X) have SQLite
1135+
default, because some platforms (notably macOS) have SQLite
11361136
libraries which are compiled without this feature. To get loadable
11371137
extension support, you must pass the
11381138
:option:`--enable-loadable-sqlite-extensions` option to configure.

Doc/library/ssl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
This module provides access to Transport Layer Security (often known as "Secure
1919
Sockets Layer") encryption and peer authentication facilities for network
2020
sockets, both client-side and server-side. This module uses the OpenSSL
21-
library. It is available on all modern Unix systems, Windows, Mac OS X, and
21+
library. It is available on all modern Unix systems, Windows, macOS, and
2222
probably additional platforms, as long as OpenSSL is installed on that platform.
2323

2424
.. note::

Doc/library/stat.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,11 @@ The following flags can be used in the *flags* argument of :func:`os.chflags`:
372372

373373
.. data:: UF_COMPRESSED
374374

375-
The file is stored compressed (Mac OS X 10.6+).
375+
The file is stored compressed (macOS 10.6+).
376376

377377
.. data:: UF_HIDDEN
378378

379-
The file should not be displayed in a GUI (Mac OS X 10.5+).
379+
The file should not be displayed in a GUI (macOS 10.5+).
380380

381381
.. data:: SF_ARCHIVED
382382

@@ -398,7 +398,7 @@ The following flags can be used in the *flags* argument of :func:`os.chflags`:
398398

399399
The file is a snapshot file.
400400

401-
See the \*BSD or Mac OS systems man page :manpage:`chflags(2)` for more information.
401+
See the \*BSD or macOS systems man page :manpage:`chflags(2)` for more information.
402402

403403
On Windows, the following file attribute constants are available for use when
404404
testing bits in the ``st_file_attributes`` member returned by :func:`os.stat`.

Doc/library/sysconfig.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ places.
7474

7575
Python currently supports seven schemes:
7676

77-
- *posix_prefix*: scheme for POSIX platforms like Linux or Mac OS X. This is
77+
- *posix_prefix*: scheme for POSIX platforms like Linux or macOS. This is
7878
the default scheme used when Python or a component is installed.
7979
- *posix_home*: scheme for POSIX platforms used when a *home* option is used
8080
upon installation. This scheme is used when a component is installed through
@@ -225,7 +225,7 @@ Other functions
225225
- win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T)
226226
- win32 (all others - specifically, sys.platform is returned)
227227

228-
Mac OS X can return:
228+
macOS can return:
229229

230230
- macosx-10.6-ppc
231231
- macosx-10.4-ppc64

Doc/library/test.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ The :mod:`test.support` module defines the following functions:
684684

685685
.. decorator:: requires_mac_version(*min_version)
686686

687-
Decorator for the minimum version when running test on Mac OS X. If the
688-
MAC OS X version is less than the minimum, raise :exc:`unittest.SkipTest`.
687+
Decorator for the minimum version when running test on macOS. If the
688+
macOS version is less than the minimum, raise :exc:`unittest.SkipTest`.
689689

690690

691691
.. decorator:: requires_IEEE_754

Doc/library/tkinter.ttk.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ ones inherited from :class:`ttk.Widget`.
759759
Platform-specific notes
760760
^^^^^^^^^^^^^^^^^^^^^^^
761761

762-
* On MacOS X, toplevel windows automatically include a built-in size grip
762+
* On macOS, toplevel windows automatically include a built-in size grip
763763
by default. Adding a :class:`Sizegrip` is harmless, since the built-in
764764
grip will just mask the widget.
765765

0 commit comments

Comments
 (0)