summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-104610: Stop looking for PREDICT() in the cases generator (#105459)Guido van Rossum2023-06-071-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 Hettinger2023-06-071-2/+2
|
* GH-104610: Remove the use of `PREDICT` macros. (GH-104651)Mark Shannon2023-06-073-551/+507
|
* typing: Improve documentation of generic classes and aliases (#105369)Alex Waygood2023-06-072-65/+91
|
* gh-105437: Improve tests of type params names for PEP 695 (#105438)Nikita Sobolev2023-06-072-4/+12
|
* gh-105430: Remove `typing._Immutable` unused internal helper (#105434)Nikita Sobolev2023-06-071-11/+0
|
* gh-97797: Improve documentation for typing.Annotated (#105365)Alex Waygood2023-06-071-19/+54
|
* Improve docs for `typing.TypeAlias` (#105372)Alex Waygood2023-06-071-4/+26
|
* gh-105435: Fix spurious NEWLINE token if file ends with comment without a ↵Pablo Galindo Salgado2023-06-073-5/+39
| | | | newline (#105442)
* gh-105375: Improve error handling in sqlite3 collation callback (#105412)Erlend E. Aasland2023-06-072-3/+7
| | | Check for error after each call to PyUnicode_FromStringAndSize().
* gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize ↵Pablo Galindo Salgado2023-06-076-24/+35
| | | | errors (#105399)
* gh-89886: Use Autoconf quadrigraphs where appropriate (#105226)Erlend E. Aasland2023-06-071-44/+44
|
* gh-104692: Include commoninstall as a prerequisite for bininstall (#104693)Jeffery To2023-06-072-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 Waygood2023-06-071-30/+75
|
* typing docs: Make the PEPs list an expandable section, hidden by default ↵Alex Waygood2023-06-071-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)achhina2023-06-071-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 Waygood2023-06-071-25/+43
|
* `typing.NewType` docs: the future performance improvements are now in the ↵Alex Waygood2023-06-071-3/+7
| | | | past (#105354)
* GH-102613: Fast recursive globbing in `pathlib.Path.glob()` (GH-104512)Barney Gale2023-06-064-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 Stinner2023-06-066-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 Stinner2023-06-065-6/+0
|
* gh-105407: Remove unused imports in Tools/c-analyzer/ (#105410)Victor Stinner2023-06-066-6/+2
|
* gh-105407: Remove unused imports in tools (#105409)Victor Stinner2023-06-062-3/+0
|
* gh-105407: Remove unused imports in tests (#105408)Victor Stinner2023-06-0623-35/+2
|
* gh-82180: Update math.factorial(float) doc for Python 3.10 (#105385)Victor Stinner2023-06-061-2/+2
|
* gh-105373: Fix decimal documentation formatting (#105395)Victor Stinner2023-06-061-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 Hettinger2023-06-061-3/+27
| | | | Add more tests. (GH-105403)
* gh-105376: Remove logging.Logger.warn() method (#105377)Victor Stinner2023-06-064-9/+14
|
* gh-104783: locale.getlocale() calls sys.getfilesystemencoding() (#105401)Victor Stinner2023-06-061-2/+1
| | | | locale.getlocale() always calls sys.getfilesystemencoding(), instead of calling it only once.
* gh-94172: Update keyfile removal documentation (#105392)Victor Stinner2023-06-065-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 Sobolev2023-06-062-2/+2
|
* gh-104783: locale.getencoding() fallback uses FS encoding (#105381)Victor Stinner2023-06-062-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 Stinner2023-06-062-9/+9
| | | Not in Python 3.13.
* gh-105156: Update Unicode C API: remove deprecation (#105379)Victor Stinner2023-06-061-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 Stinner2023-06-065-42/+8
|
* gh-105268: Add _Py_FROM_GC() function to pycore_gc.h (#105362)Victor Stinner2023-06-063-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-061-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 Salgado2023-06-065-5/+17
| | | | tokens (#105364)
* gh-102304: Fix up Simple ABI doc (GH-105351)Victor Stinner2023-06-062-9/+4
|
* gh-104411: Update test_getint for Tcl 9.0 (GH-104412)Christopher Chavez2023-06-061-1/+4
|
* gh-105268: Remove _PyGC_FINALIZED() macro (#105350)Victor Stinner2023-06-063-8/+10
| | | | | Remove the old private, undocumented and untested _PyGC_FINALIZED() macro which was kept for backward compatibility with Python 3.8 and older.
* Add myself as codeowner for Limited API/Stable ABI, remove from *import* ↵Petr Viktorin2023-06-061-1/+7
| | | | | (GH-105349) This should set up more relevant notifications for me.
* gh-90005: Don't link with libbsd if not needed (#105236)Erlend E. Aasland2023-06-063-5/+9
| | | | The regression was introduced with commit 5b946cada. Restore pre gh-29696 behaviour.
* gh-105292: Add option to make ↵Irit Katriel2023-06-065-13/+48
| | | | | | | traceback.TracebackException.format_exception_only recurse into exception groups (#105294) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-102304: Fix Py_INCREF() stable ABI in debug mode (#104763)Victor Stinner2023-06-065-27/+17
| | | | | | | | | | | When Python is built in debug mode (if the Py_REF_DEBUG macro is defined), the Py_INCREF() and Py_DECREF() function are now always implemented as opaque functions to avoid leaking implementation details like the "_Py_RefTotal" variable or the _Py_DecRefTotal_DO_NOT_USE_THIS() function. * Remove _Py_IncRefTotal_DO_NOT_USE_THIS() and _Py_DecRefTotal_DO_NOT_USE_THIS() from the stable ABI. * Remove _Py_NegativeRefcount() from limited C API.
* gh-102304: doc: Add links to Stable ABI and Limited C API (#105345)Victor Stinner2023-06-0617-42/+58
| | | | | | | | | * Add "limited-c-api" and "stable-api" references. * Rename "stable-abi-list" reference to "limited-api-list". * Makefile: Document files regenerated by "make regen-limited-abi" * Remove first empty line in generated files: - Lib/test/test_stable_abi_ctypes.py - PC/python3dll.c
* gh-104399: Use newer libtommath APIs when necessary (GH-104407)Christopher Chavez2023-06-062-2/+25
|
* Display the sanitizer config in the regrtest header. (#105301)Gregory P. Smith2023-06-062-1/+21
| | | | | | | Display the sanitizers present in libregrtest. Having this in the CI output for tests with the relevant environment variable displayed will help make it easier to do what we need to create an equivalent local test run.
* gh-105324: Fix tokenize module main function for stdin (#105325)Pablo Galindo Salgado2023-06-052-2/+3
|
* Remove dead code in codeop.py (#105263)Tian Gao2023-06-051-10/+0
|