Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | gh-105156: Update Unicode C API: remove deprecation (#105379) | Victor Stinner | 2023-06-06 | 1 | -9/+0 |
| | | | | | | _PyUnicode_ToLowercase(), _PyUnicode_ToUppercase(), _PyUnicode_ToTitlecase() are no longer deprecated in the documentation. It's no longer needed since they now use Py_UCS4 type, rather than the deprecated Py_UNICODE type. | ||||
* | gh-104783: Remove locale.resetlocale() function (#104784) | Victor Stinner | 2023-06-06 | 5 | -42/+8 |
| | |||||
* | gh-105268: Add _Py_FROM_GC() function to pycore_gc.h (#105362) | Victor Stinner | 2023-06-06 | 3 | -17/+26 |
| | | | | | | | | | | * gcmodule.c reuses _Py_AS_GC(op) for AS_GC() * Move gcmodule.c FROM_GC() implementation to a new _Py_FROM_GC() static inline function in pycore_gc.h. * _PyObject_IS_GC(): only get the type once * gc_is_finalized(à) and PyObject_GC_IsFinalized() use _PyGC_FINALIZED(), instead of _PyGCHead_FINALIZED(). * Remove _Py_CAST() in pycore_gc.h: this header file is not built with C++. | ||||
* | build(deps): bump requests from 2.29.0 to 2.31.0 in /Doc (#105368) | dependabot[bot] | 2023-06-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | Bumps [requests](https://github.com/psf/requests) from 2.29.0 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.29.0...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||||
* | gh-105259: Ensure we don't show newline characters for trailing NEWLINE ↵ | Pablo Galindo Salgado | 2023-06-06 | 5 | -5/+17 |
| | | | | tokens (#105364) | ||||
* | gh-102304: Fix up Simple ABI doc (GH-105351) | Victor Stinner | 2023-06-06 | 2 | -9/+4 |
| | |||||
* | gh-104411: Update test_getint for Tcl 9.0 (GH-104412) | Christopher Chavez | 2023-06-06 | 1 | -1/+4 |
| | |||||
* | gh-105268: Remove _PyGC_FINALIZED() macro (#105350) | Victor Stinner | 2023-06-06 | 3 | -8/+10 |
| | | | | | Remove the old private, undocumented and untested _PyGC_FINALIZED() macro which was kept for backward compatibility with Python 3.8 and older. |