summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-105042: Disable unmatched parens syntax error in python tokenize (#105061)Lysandros Nikolaou2023-05-305-34/+49
|
* gh-105069: Add a readline-like callable to the tokenizer to consume input ↵Pablo Galindo Salgado2023-05-307-96/+274
| | | | iteratively (#105070)
* gh-89886: Properly quote Autoconf macro arguments (#105062)Erlend E. Aasland2023-05-302-706/+798
| | | Autoconf 2.70 macros are picky about argument quotation.
* gh-105035: fix super() calls on unusual types (e.g. meta-types) (#105094)Carl Meyer2023-05-304-221/+239
|
* GH-73435: Implement recursive wildcards in `pathlib.PurePath.match()` (#101398)Barney Gale2023-05-305-15/+123
| | | | | | | | `PurePath.match()` now handles the `**` wildcard as in `Path.glob()`, i.e. it matches any number of path segments. We now compile a `re.Pattern` object for the entire pattern. This is made more difficult by `fnmatch` not treating directory separators as special when evaluating wildcards (`*`, `?`, etc), and so we arrange the path parts onto separate *lines* in a string, and ensure we don't set `re.DOTALL`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* CI: Temporarily skip paths with spaces to avoid error (#105110)Hugo van Kemenade2023-05-301-1/+14
| | | | | | | | | * CI: Temporarily skip paths with spaces to avoid "Error: One of your files includes a space" * Dummy NEWS file to test the action. Will be deleted before merge. * Revert "Dummy NEWS file to test the action. Will be deleted before merge." This reverts commit 05cd028fd4c56e3173b134b10dc947c3af471d82.
* gh-105071: add missing versionadded directive (#105097)Irit Katriel2023-05-301-0/+2
|
* gh-80064: Fix is_valid_wide_char() return type (#105099)Victor Stinner2023-05-301-1/+1
| | | | Return a classical int, rather than size_t. The size_t type was kept from copied/pasted code related to mbstowcs().
* Small speedup for dataclass __eq__ and __repr__ (#104904)Raymond Hettinger2023-05-301-8/+12
| | | | | Faster __repr__ with str.__add__ moved inside the f-string. For __eq__ comp;are field by field instead of building temporary tuples. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-103921: Minor PEP-695 fixes to the `ast` module docs (#105093)Alex Waygood2023-05-301-5/+5
|
* gh-105091: stable_abi.py: Remove "Unixy" check from --all on other platforms ↵Petr Viktorin2023-05-301-1/+2
| | | | (GH-105092)
* gh-105071: add PyUnstable_Exc_PrepReraiseStar to expose except* ↵Irit Katriel2023-05-307-1/+196
| | | | implementation in the unstable API (#105072)
* gh-105084: Tests: Use setuptools+wheel from ↵Miro Hrončok2023-05-302-2/+25
| | | | sysconfig.get_config_var('WHEEL_PKG_DIR') if set (#105056)
* gh-88745: Add _winapi.CopyFile2 and update shutil.copy2 to use it (GH-105055)Steve Dower2023-05-308-1/+210
|
* gh-102251: Fix reference leak in _testsinglephase initialization (#105082)sunmy20192023-05-301-1/+3
| | | | | Correctly decref 'initialized' in init_module() Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-83403: Test `parent` param in `Mock.__init__` (#103630)Nikita Sobolev2023-05-301-0/+8
|
* gh-105077: Fix test_tkinter refleak checking (GH-105078)Zachary Ware2023-05-301-5/+10
| | | | Use specific symbols from `test.support` to avoid having `support` overwritten by `test_tkinter`'s own `support` submodule.
* GH-104898: Revert pathlib os.PathLike registration change. (GH-105073)Barney Gale2023-05-291-1/+5
| | | | | | | | Subclassing `os.PathLike` rather than using `register()` makes initialisation slower, due to the additional `__isinstance__` work. This partially reverts commit bd1b6228d132b8e9836fe352cd8dca2b6c1bd98c. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-89455: Add missing attributes (added in 3.11) to traceback module docs ↵Jakub Kuczys2023-05-293-1/+23
| | | | (#105044)
* gh-103646: Remove --include-pip-user from default APPX package build (GH-105064)Steve Dower2023-05-292-1/+5
|
* GH-77609: Add follow_symlinks argument to `pathlib.Path.glob()` (GH-102616)Barney Gale2023-05-295-21/+130
| | | | | Add a keyword-only *follow_symlinks* parameter to `pathlib.Path.glob()` and`rglob()`. When *follow_symlinks* is `None` (the default), these methods follow symlinks except when evaluating "`**`" wildcards. When set to true or false, symlinks are always or never followed, respectively.
* gh-97908: CAPI docs: Remove repeated struct names from member docs (GH-100054)Petr Viktorin2023-05-292-8/+23
| | | | And add raw HTML fragments to keep old links working.
* gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a ↵Steve Dower2023-05-296-1/+216
| | | | Windows Dev Drive (GH-104805)
* Fix compiler warning in unicodeobject.c (#105050)Inada Naoki2023-05-291-1/+1
|
* Document PEP 698 and other new typing features in What's New (#104957)Jelle Zijlstra2023-05-281-6/+37
|
* Convert `doc.yml` workflow to be reusable (#103914)Sviatoslav Sydorenko2023-05-282-25/+25
| | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-105017: Include CRLF lines in strings and column numbers (#105030)Marta Gómez Macías2023-05-286-26/+74
| | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-104992: [What's New in 3.12] Document unittest.TestProgram.usageExit's ↵Hugo van Kemenade2023-05-281-1/+2
| | | | deprecation (#104995)
* gh-105013: Fix inspect.getsource with parenthesized multiline lambdas (#105021)Pablo Galindo Salgado2023-05-274-0/+43
|
* gh-104992: Remove deprecated unittest.TestProgram.usageExit (#104993)Hugo van Kemenade2023-05-274-11/+8
|
* gh-104497: Make tkinter test pass with tk 8.7 (#104789)Terry Jan Reedy2023-05-271-1/+4
| | | | | | | | | | | | | | * gh-104497: Make tkinter test pass with tk 8.7 For test_widgets.MenuTest.test_configure_type, the options in the error message change to alphabetical order. * Update Lib/test/test_tkinter/test_widgets.py Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-75552: Remove deprecated tkinter.tix module (GH-104902)Zachary Ware2023-05-2722-2719/+18
|
* gh-105017: Fix including additional NL token when using CRLF (#105022)Marta Gómez Macías2023-05-273-1/+10
| | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Fix indentation in Parser/tokenizer.c (#105012)Petr Vaněk2023-05-271-1/+1
|
* CI: Precompute hash for config cache key in check_source job (#105008)Itamar Ostricher2023-05-271-6/+11
|
* gh-104992: [What's New in 3.11] Document unittest.TestProgram.usageExit's ↵Hugo van Kemenade2023-05-271-0/+4
| | | | | deprecation (#104994) Document unittest.TestProgram.usageExit's pending removal in 3.13
* gh-104839: Prevent test_venv AddressSanitizer spam (#105005)Gregory P. Smith2023-05-271-9/+8
| | | | | Pass any ASAN_OPTIONS environment variable through to the child process so that leak sanitizer being disabled on our CI and buildbots stays true in the children.
* gh-104976: Ensure trailing dedent tokens are emitted as the previous ↵Pablo Galindo Salgado2023-05-264-15/+34
| | | | | tokenizer (#104980) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* GH-101588: Deprecate pickle/copy/deepcopy support in itertools (GH-104965)Raymond Hettinger2023-05-264-3/+97
|
* GH-103631: Fix `PurePosixPath(PureWindowsPath(...))` separator handling ↵Barney Gale2023-05-263-0/+11
| | | | | | | | | (GH-104949) For backwards compatibility, accept backslashes as path separators in `PurePosixPath` if an instance of `PureWindowsPath` is supplied. This restores behaviour from Python 3.11. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* GH-104947: Make pathlib.PureWindowsPath comparisons consistent across ↵Barney Gale2023-05-263-1/+7
| | | | | | | | platforms (GH-104948) Use `str.lower()` rather than `ntpath.normcase()` to normalize case of Windows paths. This restores behaviour from Python 3.11. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-103921: Document PEP 695 (#104642)Jelle Zijlstra2023-05-2611-302/+1234
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104983: Fix test_peg_generator (#104985)Lysandros Nikolaou2023-05-261-71/+72
|
* gh-104984: remove kwargs and starargs from Call & ClassDef (#104986)Shaygan Hooshyari2023-05-261-6/+3
| | | These fields are removed in https://github.com/python/cpython/commit/025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1
* gh-104972: Ensure that line attributes in tokens in the tokenize module are ↵Pablo Galindo Salgado2023-05-264-9/+21
| | | | correct (#104975)
* Remove raw asserts in test_typing.py (#104951)Jelle Zijlstra2023-05-261-22/+30
|
* gh-104804: Remove webbrowser.MacOSX class, deprecated in Python 3.11 (#104816)Hugo van Kemenade2023-05-266-79/+37
| | | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-100238: Use setuptools in peg-generator and reenable tests (#104798)Lysandros Nikolaou2023-05-266-102/+163
|
* gh-104773: PEP 594: Remove the imghdr module (#104777)Victor Stinner2023-05-2628-425/+21
| | | | | | * Remove the Lib/test/imghdrdata/ directory. * Copy 5 pictures (gif, png, ppm, pgm, xbm) from removed Lib/test/imghdrdata/ to a new Lib/test/tkinterdata/ directory. * Update Sphinx from 4.5 to 6.2 in Doc/requirements.txt.
* gh-104799: Move location of type_params AST fields (#104828)Jelle Zijlstra2023-05-269-266/+297
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>