Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-100227: Lock Around Modification of the Global Allocators State (gh-105516) | Eric Snow | 2023-06-08 | 4 | -56/+183 | |
| | | | The risk of a race with this state is relatively low, but we play it safe anyway. We do avoid using the lock in performance-sensitive cases where the risk of a race is very, very low. | |||||
* | gh-105332: [Enum] Fix unpickling flags in edge-cases (GH-105348) | Nikita Sobolev | 2023-06-08 | 4 | -23/+47 | |
| | | | | | * revert enum pickling from by-name to by-value Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | |||||
* | gh-100227: Lock Around Adding Global Audit Hooks (gh-105515) | Eric Snow | 2023-06-08 | 3 | -21/+47 | |
| | | | The risk of a race with this state is relatively low, but we play it safe anyway. | |||||
* | gh-104310: Rename the New Function in importlib.util (gh-105255) | Eric Snow | 2023-06-08 | 3 | -18/+41 | |
| | | | | | | | | | | | The original name wasn't as clear as it could have been. This change includes the following: * rename the function * change the default value for "disable_check" to False * add clues to the docstring that folks should probably not use the function --------- Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> | |||||
* | gh-100227: Lock Around Use of the Global "atexit" State (gh-105514) | Eric Snow | 2023-06-08 | 3 | -25/+28 | |
| | | | The risk of a race with this state is relatively low, but we play it safe anyway. | |||||
* | Revert "Move observability-relevant structure fields to the top" (#105512) | Pablo Galindo Salgado | 2023-06-08 | 3 | -63/+51 | |
| | ||||||
* | test_types: Replace raw assert statements (#105500) | Jelle Zijlstra | 2023-06-08 | 1 | -25/+27 | |
| | ||||||
* | Further improve docs for `typing.Annotated` (#105498) | Alex Waygood | 2023-06-08 | 2 | -61/+85 | |
| | ||||||
* | GH-105229: Remove remaining two-codeunit superinstructions (GH-105326) | Mark Shannon | 2023-06-08 | 12 | -624/+521 | |
| | | | | * Remove LOAD_CONST__LOAD_FAST and LOAD_FAST__LOAD_CONST superinstructions. | |||||
* | Move observability-relevant structure fields to the top (#105271) | Gabriele N. Tornetta | 2023-06-08 | 3 | -51/+63 | |
| | ||||||
* | gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (#105432) | Nikita Sobolev | 2023-06-08 | 1 | -7/+0 | |
| | ||||||
* | gh-104635: Eliminate redundant STORE_FAST instructions in the compiler ↵ | Dong-hee Na | 2023-06-07 | 4 | -9/+57 | |
| | | | | (gh-105320) | |||||
* | GH-104996: Defer joining of `pathlib.PurePath()` arguments. (GH-104999) | Barney Gale | 2023-06-07 | 2 | -17/+29 | |
| | | | | Joining of arguments is moved to `_load_parts`, which is called when a normalized path is needed. | |||||
* | gh-103171: Forward-port new tests for runtime-checkable protocols dec orated ↵ | Alex Waygood | 2023-06-07 | 1 | -0/+65 | |
| | | | | | with `@final` (#105473) Forward-port of the tests that were added to the 3.11 branch in #105445 | |||||
* | gh-105390: Add explicit type cast (#105466) | Kirill Podoprigora | 2023-06-07 | 1 | -1/+2 | |
| | ||||||
* | gh-94673: Ensure subtypes are readied only once in math.trunc() (gh-105465) | neonene | 2023-06-07 | 1 | -1/+1 | |
| | | | Fixes a typo in d2e2e53. | |||||
* | gh-90015: Document that PEP-604 unions do not support forward references ↵ | Alex Waygood | 2023-06-07 | 1 | -0/+8 | |
| | | | | (#105366) | |||||
* | gh-104610: Stop looking for PREDICT() in the cases generator (#105459) | Guido van Rossum | 2023-06-07 | 1 | -16/+5 | |
| | | | We no longer use `PREDICT()`, it doesn't have any benefits. | |||||
* | Fix grammar and improve clarity for an deprecation message. (GH-105457) | Raymond Hettinger | 2023-06-07 | 1 | -2/+2 | |
| | ||||||
* | GH-104610: Remove the use of `PREDICT` macros. (GH-104651) | Mark Shannon | 2023-06-07 | 3 | -551/+507 | |
| | ||||||
* | typing: Improve documentation of generic classes and aliases (#105369) | Alex Waygood | 2023-06-07 | 2 | -65/+91 | |
| | ||||||
* | gh-105437: Improve tests of type params names for PEP 695 (#105438) | Nikita Sobolev | 2023-06-07 | 2 | -4/+12 | |
| | ||||||
* | gh-105430: Remove `typing._Immutable` unused internal helper (#105434) | Nikita Sobolev | 2023-06-07 | 1 | -11/+0 | |
| | ||||||
* | gh-97797: Improve documentation for typing.Annotated (#105365) | Alex Waygood | 2023-06-07 | 1 | -19/+54 | |
| | ||||||
* | Improve docs for `typing.TypeAlias` (#105372) | Alex Waygood | 2023-06-07 | 1 | -4/+26 | |
| | ||||||
* | gh-105435: Fix spurious NEWLINE token if file ends with comment without a ↵ | Pablo Galindo Salgado | 2023-06-07 | 3 | -5/+39 | |
| | | | | newline (#105442) | |||||
* | gh-105375: Improve error handling in sqlite3 collation callback (#105412) | Erlend E. Aasland | 2023-06-07 | 2 | -3/+7 | |
| | | | Check for error after each call to PyUnicode_FromStringAndSize(). | |||||
* | gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize ↵ | Pablo Galindo Salgado | 2023-06-07 | 6 | -24/+35 | |
| | | | | errors (#105399) | |||||
* | gh-89886: Use Autoconf quadrigraphs where appropriate (#105226) | Erlend E. Aasland | 2023-06-07 | 1 | -44/+44 | |
| | ||||||
* | gh-104692: Include commoninstall as a prerequisite for bininstall (#104693) | Jeffery To | 2023-06-07 | 2 | -1/+11 | |
| | | | | | | | | | This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. Co-authored-by: Zachary Ware <zachary.ware@gmail.com> | |||||
* | Improve code examples in `typing.rst` (#105346) | Alex Waygood | 2023-06-07 | 1 | -30/+75 | |
| | ||||||
* | typing docs: Make the PEPs list an expandable section, hidden by default ↵ | Alex Waygood | 2023-06-07 | 1 | -1/+11 | |
| | | | | | (#105353) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | |||||
* | GH-95088: Clarify rules for parsing an item key for format strings (#103779) | achhina | 2023-06-07 | 1 | -1/+3 | |
| | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | |||||
* | gh-105286: Further improvements to `typing.py` docstrings (#105363) | Alex Waygood | 2023-06-07 | 1 | -25/+43 | |
| | ||||||
* | `typing.NewType` docs: the future performance improvements are now in the ↵ | Alex Waygood | 2023-06-07 | 1 | -3/+7 | |
| | | | | past (#105354) | |||||
* | GH-102613: Fast recursive globbing in `pathlib.Path.glob()` (GH-104512) | Barney Gale | 2023-06-06 | 4 | -140/+163 | |
| | | | | | | | | | | | | | | This commit introduces a 'walk-and-match' strategy for handling glob patterns that include a non-terminal `**` wildcard, such as `**/*.py`. For this example, the previous implementation recursively walked directories using `os.scandir()` when it expanded the `**` component, and then **scanned those same directories again** when expanded the `*.py` component. This is wasteful. In the new implementation, any components following a `**` wildcard are used to build a `re.Pattern` object, which is used to filter the results of the recursive walk. A pattern like `**/*.py` uses half the number of `os.scandir()` calls; a pattern like `**/*/*.py` a third, etc. This new algorithm does not apply if either: 1. The *follow_symlinks* argument is set to `None` (its default), or 2. The pattern contains `..` components. In these cases we fall back to the old implementation. This commit also replaces selector classes with selector functions. These generators directly yield results rather calling through to their successors. A new internal `Path._glob()` method takes care to chain these generators together, which simplifies the lazy algorithm and slightly improves performance. It should also be easier to understand and maintain. | |||||
* | gh-105382: Remove urllib.request cafile parameter (#105384) | Victor Stinner | 2023-06-06 | 6 | -77/+17 | |
| | | | | Remove cafile, capath and cadefault parameters of the urllib.request.urlopen() function, deprecated in Python 3.6. | |||||
* | gh-105407: Remove unused imports in the stdlib (#105411) | Victor Stinner | 2023-06-06 | 5 | -6/+0 | |
| | ||||||
* | gh-105407: Remove unused imports in Tools/c-analyzer/ (#105410) | Victor Stinner | 2023-06-06 | 6 | -6/+2 | |
| | ||||||
* | gh-105407: Remove unused imports in tools (#105409) | Victor Stinner | 2023-06-06 | 2 | -3/+0 | |
| | ||||||
* | gh-105407: Remove unused imports in tests (#105408) | Victor Stinner | 2023-06-06 | 23 | -35/+2 | |
| | ||||||
* | gh-82180: Update math.factorial(float) doc for Python 3.10 (#105385) | Victor Stinner | 2023-06-06 | 1 | -2/+2 | |
| | ||||||
* | gh-105373: Fix decimal documentation formatting (#105395) | Victor Stinner | 2023-06-06 | 1 | -1/+1 | |
| | | | The deprecation is on decimal.HAVE_THREADS, not on the whole module. | |||||
* | sliding_window() recipe: Raise ValueError for non-positive window sizes. ↵ | Raymond Hettinger | 2023-06-06 | 1 | -3/+27 | |
| | | | | Add more tests. (GH-105403) | |||||
* | gh-105376: Remove logging.Logger.warn() method (#105377) | Victor Stinner | 2023-06-06 | 4 | -9/+14 | |
| | ||||||
* | gh-104783: locale.getlocale() calls sys.getfilesystemencoding() (#105401) | Victor Stinner | 2023-06-06 | 1 | -2/+1 | |
| | | | | locale.getlocale() always calls sys.getfilesystemencoding(), instead of calling it only once. | |||||
* | gh-94172: Update keyfile removal documentation (#105392) | Victor Stinner | 2023-06-06 | 5 | -51/+7 | |
| | | | | Remove the "deprecated:: 3.6" markup, since the parameters (like keyfile and certfile) got removed in Python 3.12. | |||||
* | gh-92658: Fix typo in docs and tests for `HV_GUID_PARENT` (GH-105267) | Nikita Sobolev | 2023-06-06 | 2 | -2/+2 | |
| | ||||||
* | gh-104783: locale.getencoding() fallback uses FS encoding (#105381) | Victor Stinner | 2023-06-06 | 2 | -9/+16 | |
| | | | | | The locale.getencoding() function now uses sys.getfilesystemencoding() if _locale.getencoding() is missing, instead of calling locale.getdefaultlocale(). | |||||
* | gh-102304: Document Py_INCREF() change in What's New in Python 3.12 (#105389) | Victor Stinner | 2023-06-06 | 2 | -9/+9 | |
| | | | Not in Python 3.13. |