Skip to content

Commit

Permalink
Upgrade CPython to 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
grievejia committed Oct 6, 2021
1 parent 3fb8ba1 commit eddbe56
Show file tree
Hide file tree
Showing 132 changed files with 1,013 additions and 628 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## unreleased

- Bump the bundled CPython version to 3.10.0rc2
- Bump the bundled CPython version to 3.10.0

## 0.1.3 (2021-7-22)

Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
The `vendor` directory contains a patched version of CPython's source code (release `3.10.0rc2`). Below are the list of applied patches:
The `vendor` directory contains a patched version of CPython's source code (release `3.10.0`). Below are the list of applied patches:

- \N escape sequence handling logic is removed from `Objects/unicodeobject.c`. \N handling requires loading the `unicodedata` extension module, yet extensions modules can never work in a minimally-initialized Python runtime that `pyre-ast` uses.
6 changes: 3 additions & 3 deletions lib/taglessFinal/vendor/Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ Process-wide parameters
(set by :c:func:`Py_SetProgramName` above) and some environment variables.
The returned string consists of a series of directory names separated by a
platform dependent delimiter character. The delimiter character is ``':'``
on Unix and Mac OS X, ``';'`` on Windows. The returned string points into
on Unix and macOS, ``';'`` on Windows. The returned string points into
static storage; the caller should not modify its value. The list
:data:`sys.path` is initialized with this value on interpreter startup; it
can be (and usually is) modified later to change the search path for loading
Expand All @@ -500,7 +500,7 @@ Process-wide parameters
default search path but uses the one provided instead. This is useful if
Python is embedded by an application that has full knowledge of the location
of all modules. The path components should be separated by the platform
dependent delimiter character, which is ``':'`` on Unix and Mac OS X, ``';'``
dependent delimiter character, which is ``':'`` on Unix and macOS, ``';'``
on Windows.
This also causes :data:`sys.executable` to be set to the program
Expand Down Expand Up @@ -541,7 +541,7 @@ Process-wide parameters
Return the platform identifier for the current platform. On Unix, this is
formed from the "official" name of the operating system, converted to lower
case, followed by the major revision number; e.g., for Solaris 2.x, which is
also known as SunOS 5.x, the value is ``'sunos5'``. On Mac OS X, it is
also known as SunOS 5.x, the value is ``'sunos5'``. On macOS, it is
``'darwin'``. On Windows, it is ``'win'``. The returned string points into
static storage; the caller should not modify its value. The value is available
to Python code as ``sys.platform``.
Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/vendor/Doc/c-api/type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ The following functions and structs are used to create
The *module* argument can be used to record the module in which the new
class is defined. It must be a module object or ``NULL``.
If not ``NULL``, the module is associated with the new type and can later be
retreived with :c:func:`PyType_GetModule`.
retrieved with :c:func:`PyType_GetModule`.
The associated module is not inherited by subclasses; it must be specified
for each class individually.
Expand Down
264 changes: 132 additions & 132 deletions lib/taglessFinal/vendor/Doc/c-api/typeobj.rst

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions lib/taglessFinal/vendor/Doc/distributing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ installing other Python projects, refer to the
Key terms
=========

* the `Python Packaging Index <https://pypi.org>`__ is a public
* the `Python Package Index <https://pypi.org>`__ is a public
repository of open source licensed packages made available for use by
other Python users
* the `Python Packaging Authority
Expand Down Expand Up @@ -101,7 +101,7 @@ by invoking the ``pip`` module at the command line::

.. note::

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

For Windows users, these instructions assume that the option to
Expand All @@ -127,14 +127,14 @@ involved in creating and publishing a project:

* `Project structure`_
* `Building and packaging the project`_
* `Uploading the project to the Python Packaging Index`_
* `Uploading the project to the Python Package Index`_
* `The .pypirc file`_

.. _Project structure: \
https://packaging.python.org/tutorials/packaging-projects/#packaging-python-projects
.. _Building and packaging the project: \
https://packaging.python.org/tutorials/packaging-projects/#creating-the-package-files
.. _Uploading the project to the Python Packaging Index: \
.. _Uploading the project to the Python Package Index: \
https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives
.. _The .pypirc file: \
https://packaging.python.org/specifications/pypirc/
Expand All @@ -150,7 +150,7 @@ These are quick answers or links for some common tasks.

This isn't an easy topic, but here are a few tips:

* check the Python Packaging Index to see if the name is already in use
* check the Python Package Index to see if the name is already in use
* check popular hosting sites like GitHub, Bitbucket, etc to see if there
is already a project with that name
* check what comes up in a web search for the name you're considering
Expand Down
8 changes: 4 additions & 4 deletions lib/taglessFinal/vendor/Doc/distutils/apiref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ This module provides the following functions.
compiler object under Unix---if you supply a value for *compiler*, *plat* is
ignored.

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

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

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

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

Examples of returned values on Mac OS X:
Examples of returned values on macOS:

* ``macosx-10.3-ppc``

Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/vendor/Doc/faq/gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ install (since it comes included with most
`binary distributions <https://www.python.org/downloads/>`_ of Python) and use.
For more info about Tk, including pointers to the source, see the
`Tcl/Tk home page <https://www.tcl.tk>`_. Tcl/Tk is fully portable to the
Mac OS X, Windows, and Unix platforms.
macOS, Windows, and Unix platforms.

Depending on what platform(s) you are aiming at, there are also several
alternatives. A `list of cross-platform
Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/vendor/Doc/faq/installed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ there are several possible ways it could have gotten there.
* Some Windows machines also have Python installed. At this writing we're aware
of computers from Hewlett-Packard and Compaq that include Python. Apparently
some of HP/Compaq's administrative tools are written in Python.
* Many Unix-compatible operating systems, such as Mac OS X and some Linux
* Many Unix-compatible operating systems, such as macOS and some Linux
distributions, have Python installed by default; it's included in the base
installation.

Expand Down
8 changes: 4 additions & 4 deletions lib/taglessFinal/vendor/Doc/install/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ directory.
If you don't choose an installation directory---i.e., if you just run ``setup.py
install``\ ---then the :command:`install` command installs to the standard
location for third-party Python modules. This location varies by platform and
by how you built/installed Python itself. On Unix (and Mac OS X, which is also
by how you built/installed Python itself. On Unix (and macOS, which is also
Unix-based), it also depends on whether the module distribution being installed
is pure Python or contains extensions ("non-pure"):

Expand Down Expand Up @@ -236,7 +236,7 @@ Notes:

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

=============== ===========================================================
Type of file Installation directory
Expand Down Expand Up @@ -735,7 +735,7 @@ Location and names of config files
----------------------------------

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

+--------------+----------------------------------------------------------+-------+
Expand Down
12 changes: 6 additions & 6 deletions lib/taglessFinal/vendor/Doc/installing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Key terms
``venv``. It allows virtual environments to be used on versions of
Python prior to 3.4, which either don't provide ``venv`` at all, or
aren't able to automatically install ``pip`` into created environments.
* The `Python Packaging Index <https://pypi.org>`__ is a public
* The `Python Package Index <https://pypi.org>`__ is a public
repository of open source licensed packages made available for use by
other Python users.
* the `Python Packaging Authority
Expand Down Expand Up @@ -78,13 +78,13 @@ The standard packaging tools are all designed to be used from the command
line.

The following command will install the latest version of a module and its
dependencies from the Python Packaging Index::
dependencies from the Python Package Index::

python -m pip install SomePackage

.. note::

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

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

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

Expand Down Expand Up @@ -225,8 +225,8 @@ users being expected to compile extension modules from source as part of
the installation process.

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

Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/vendor/Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ Anything with more interesting error-handling or resource management should be
done downstream after the arguments are parsed.

For example, JSON or YAML conversions have complex error cases that require
better reporting than can be given by the ``type`` keyword. An
better reporting than can be given by the ``type`` keyword. A
:exc:`~json.JSONDecodeError` would not be well formatted and a
:exc:`FileNotFound` exception would not be handled at all.

Expand Down
15 changes: 14 additions & 1 deletion lib/taglessFinal/vendor/Doc/library/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ Pattern matching
the pattern matches the subject.

``body`` contains a list of nodes to execute if the pattern matches and
the result of evaluating the guard expression is truthy.
the result of evaluating the guard expression is true.

.. doctest::

Expand Down Expand Up @@ -1917,6 +1917,19 @@ and classes for traversing abstract syntax trees:
``await`` as variable names. The lowest supported version is
``(3, 4)``; the highest is ``sys.version_info[0:2]``.

If source contains a null character ('\0'), :exc:`ValueError` is raised.

.. warning::
Note that succesfully parsing souce code into an AST object doesn't
guarantee that the source code provided is valid Python code that can
be executed as the compilation step can raise further :exc:`SyntaxError`
exceptions. For instance, the source ``return 42`` generates a valid
AST node for a return statement, but it cannot be compiled alone (it needs
to be inside a function node).

In particular, :func:`ast.parse` won't do any scoping checks, which the
compilation step does.

.. warning::
It is possible to crash the Python interpreter with a
sufficiently large/complex string due to stack depth limitations
Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/vendor/Doc/library/cgi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ To get at submitted form data, use the :class:`FieldStorage` class. If the form
contains non-ASCII characters, use the *encoding* keyword parameter set to the
value of the encoding defined for the document. It is usually contained in the
META tag in the HEAD section of the HTML document or by the
:mailheader:`Content-Type` header). This reads the form contents from the
:mailheader:`Content-Type` header. This reads the form contents from the
standard input or the environment (depending on the value of various
environment variables set according to the CGI standard). Since it may consume
standard input, it should be instantiated only once.
Expand Down
2 changes: 1 addition & 1 deletion lib/taglessFinal/vendor/Doc/library/codecs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ it's a device to determine the storage layout of the encoded bytes, and vanishes
once the byte sequence has been decoded into a string; as a ``ZERO WIDTH
NO-BREAK SPACE`` it's a normal character that will be decoded like any other.

There's another encoding that is able to encoding the full range of Unicode
There's another encoding that is able to encode the full range of Unicode
characters: UTF-8. UTF-8 is an 8-bit encoding, which means there are no issues
with byte order in UTF-8. Each byte in a UTF-8 byte sequence consists of two
parts: marker bits (the most significant bits) and payload bits. The marker bits
Expand Down
Loading

0 comments on commit eddbe56

Please sign in to comment.