-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-41203: Replace OS X with macOS #21316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
1ecbddf
732f353
3c955c2
447925a
98dca78
04af2d3
c119eb6
721a670
a3b7b9b
b8fb110
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1118,7 +1118,7 @@ Glossary | |
universal newlines | ||
A manner of interpreting text streams in which all of the following are | ||
recognized as ending a line: the Unix end-of-line convention ``'\n'``, | ||
the Windows convention ``'\r\n'``, and the old Macintosh convention | ||
the Windows convention ``'\r\n'``, and the old Mac convention | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to keep Macintosh here. This is referring to MacOS 9 and earlier, when Macintosh was commonly used to describe the system. |
||
``'\r'``. See :pep:`278` and :pep:`3116`, as well as | ||
:func:`bytes.splitlines` for an additional use. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,7 +211,7 @@ The :mod:`binascii` module defines the following functions: | |
and 85. | ||
|
||
Module :mod:`binhex` | ||
Support for the binhex format used on the Macintosh. | ||
Support for the binhex format used on the Mac. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, I'd prefer to keep Macintosh. |
||
|
||
Module :mod:`uu` | ||
Support for UU encoding used on Unix. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
-------------- | ||
|
||
This module encodes and decodes files in binhex4 format, a format allowing | ||
representation of Macintosh files in ASCII. Only the data fork is handled. | ||
representation of Mac files in ASCII. Only the data fork is handled. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
|
||
The :mod:`binhex` module defines the following fu 10000 nctions: | ||
|
||
|
@@ -54,6 +54,6 @@ Notes | |
There is an alternative, more powerful interface to the coder and decoder, see | ||
the source for details. | ||
|
||
If you code or decode textfiles on non-Macintosh platforms they will still use | ||
the old Macintosh newline convention (carriage-return as end of line). | ||
If you code or decode textfiles on non-Mac platforms they will still use | ||
the old Mac newline convention (carriage-return as end of line). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likewise (for both lines). |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1201,7 +1201,7 @@ particular, the following variants typically exist: | |
| mac_latin2 | maclatin2, maccentraleurope, | Central and Eastern Europe | | ||
| | mac_centeuro | | | ||
+-----------------+--------------------------------+--------------------------------+ | ||
| mac_roman | macroman, macintosh | Western Europe | | ||
| mac_roman | macroman, Mac | Western Europe | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "macintosh" is the name of an encoding, don't change. |
||
+-----------------+--------------------------------+--------------------------------+ | ||
| mac_turkish | macturkish | Turkish | | ||
+-----------------+--------------------------------+--------------------------------+ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ ctypes tutorial | |
|
||
Note: The code samples in this tutorial use :mod:`doctest` to make sure that | ||
they actually work. Since some code samples behave differently under Linux, | ||
Windows, or Mac OS X, they contain doctest directives in comments. | ||
Windows, or macOS, they contain doctest directives in comments. | ||
|
||
Note: Some code samples reference the ctypes :class:`c_int` type. On platforms | ||
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:: | |
<CDLL 'libc.so.6', handle ... at ...> | ||
>>> | ||
|
||
.. XXX Add section for Mac OS X. | ||
.. XXX Add section for macOS. | ||
|
||
|
||
.. _ctypes-accessing-functions-from-loaded-dlls: | ||
|
@@ -1288,7 +1288,7 @@ Here are some examples:: | |
'libbz2.so.1.0' | ||
>>> | ||
|
||
On OS X, :func:`find_library` tries several predefined naming schemes and paths | ||
On macOS, :func:`find_library` tries several predefined naming schemes and paths | ||
to locate the library, and returns a full pathname if successful:: | ||
|
||
>>> from ctypes.util import find_library | ||
|
@@ -1420,7 +1420,7 @@ correct library and dependencies are loaded. | |
.. data:: DEFAULT_MODE | ||
:noindex: | ||
|
||
The default mode which is used to load shared libraries. On OSX 10.3, this is | ||
The default mode which is used to load shared libraries. On macOS 10.3, this is | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was Mac OS X for versions up to 10.7 inclusively. |
||
*RTLD_GLOBAL*, otherwise it is the same as *RTLD_LOCAL*. | ||
|
||
Instances of these classes have no public methods. Functions exported by the | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ process and user. | |
|
||
.. note:: | ||
|
||
On some platforms, including FreeBSD and Mac OS X, setting ``environ`` may | ||
On some platforms, including FreeBSD and macOS, setting ``environ`` may | ||
cause memory leaks. Refer to the system documentation for | ||
:c:func:`putenv`. | ||
|
||
|
@@ -301,7 +301,7 @@ process and user. | |
|
||
.. note:: | ||
|
||
On Mac OS X, :func:`getgroups` behavior differs somewhat from | ||
On macOS, :func:`getgroups` behavior differs somewhat from | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have doubts about this one. If the note refers to 10.5 and earlier, it should be Mac OS X. |
||
other Unix platforms. If the Python interpreter was built with a | ||
deployment target of :const:`10.5` or earlier, :func:`getgroups` returns | ||
the list of effective group ids associated with the current user process; | ||
|
@@ -448,7 +448,7 @@ process and user. | |
|
||
.. note:: | ||
|
||
On some platforms, including FreeBSD and Mac OS X, setting ``environ`` may | ||
On some platforms, including FreeBSD and macOS, setting ``environ`` may | ||
cause memory leaks. Refer to the system documentation for :c:func:`putenv`. | ||
|
||
.. audit-event:: os.putenv key,value os.putenv | ||
|
@@ -486,7 +486,7 @@ process and user. | |
|
||
.. availability:: Unix. | ||
|
||
.. note:: On Mac OS X, the length of *groups* may not exceed the | ||
.. note:: On macOS, the length of *groups* may not exceed the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
system-defined maximum number of effective group ids, typically 16. | ||
See the documentation for :func:`getgroups` for cases where it may not | ||
return the same group list set by calling setgroups(). | ||
|
@@ -1295,11 +1295,11 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo | |
On Linux, if *offset* is given as ``None``, the bytes are read from the | ||
current position of *in_fd* and the position of *in_fd* is updated. | ||
|
||
The second case may be used on Mac OS X and FreeBSD where *headers* and | ||
The second case may be used on macOS and FreeBSD where *headers* and | ||
*trailers* are arbitrary sequences of buffers that are written before and | ||
after the data from *in_fd* is written. It returns the same as the first case. | ||
|
||
On Mac OS X and FreeBSD, a value of ``0`` for *count* specifies to send until | ||
On macOS and FreeBSD, a value of ``0`` for *count* specifies to send until | ||
the end of *in_fd* is reached. | ||
|
||
All platforms support sockets as *out_fd* file descriptor, and some platforms | ||
|
@@ -2667,7 +2667,7 @@ features: | |
String that uniquely identifies the type of the filesystem that | ||
contains the file. | ||
|
||
On Mac OS systems, the following attributes may also be available: | ||
On macOS systems, the following attributes may also be available: | ||
|
||
.. attribute:: st_rsize | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is incorrect for two reasons:
Please revert this change until "macOS" is added as an alternatieve to the PyPI classifiers.