summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-103987: fix several crashes in mmap module (#103990)Prince Roshan2023-05-203-3/+101
| | | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* docs: fix wrong indentation causing rendering error in dis page (#104661)Nyakku Shigure2023-05-191-2/+2
|
* gh-94906: Support multiple steps in math.nextafter (#103881)Matthias Görgens2023-05-1910-18/+223
| | | | | | | This PR updates `math.nextafter` to add a new `steps` argument. The behaviour is as though `math.nextafter` had been called `steps` times in succession. --------- Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* gh-104472: Skip `test_subprocess.ProcessTestCase.test_empty_env` if ASAN is ↵chgnrdv2023-05-191-0/+3
| | | | | enabled (#104667) Skip test_subprocess.ProcessTestCase.test_empty_env if ASAN is enabled.
* gh-103839: Allow building Tkinter against Tcl 8.7 without external ↵Christopher Chavez2023-05-192-0/+5
| | | | libtommath (GH-103842)
* gh-85984: New additions and improvements to the tty library. (#101832)Soumendra Ganguly2023-05-193-18/+77
| | | | | | | | | | New additions to the tty library. Functions added: cfmakeraw(), and cfmakecbreak(). The functions setcbreak() and setraw() now return original termios to save an extra tcgetattr() call. --------- Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* gh-104659: Consolidate python examples in enum documentation (#104665)Thomas Hisch2023-05-191-6/+6
|
* gh-92248: Deprecate `type`, `choices`, `metavar` parameters of ↵Nikita Sobolev2023-05-194-3/+74
| | | | | | | | `argparse.BooleanOptionalAction` (#103678) Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-104645: fix error handling in marshal tests (#104646)Irit Katriel2023-05-191-18/+14
|
* gh-104600: Make type.__type_params__ writable (#104634)Jelle Zijlstra2023-05-194-15/+71
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104602: Add additional test for listcomp with lambda (#104639)Jelle Zijlstra2023-05-191-0/+10
| | | | | This threw a SystemError before #104603. Adding a separate test because this was a different failure mode than the other two new tests from #104603, both of which used to segfault.
* gh-104640: Disallow walrus in comprehension within type scopes (#104641)Jelle Zijlstra2023-05-192-4/+34
|
* gh-103921: Rename "type" header in argparse docs (#104654)Jelle Zijlstra2023-05-191-15/+15
| | | | | This allows :keyword:`type` to link to docs for the new `type` statement (being written in gh-104642) instead of to this header in the argparse docs.
* Improve readability of `typing._ProtocolMeta.__instancecheck__` (#104649)Alex Waygood2023-05-191-13/+14
|
* gh-96522: Fix deadlock in pty.spawn (#96639)Youfu Zhang2023-05-194-22/+56
|
* GH-102818: Do not call `PyTraceBack_Here` in sys.settrace trampoline. ↵Mark Shannon2023-05-194-4/+89
| | | | (GH-104579)
* GH-103545: Add macOS specific constants for ``os.setpriority`` to ``os`` ↵Ronald Oussoren2023-05-193-0/+24
| | | | | | | | | (#104606) This adds a number of PRIO_DARWIN_* constants to the os module for use with os.setpriority. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-104623: Update macOS installer to SQLite 3.42.0 (GH-104624)Erlend E. Aasland2023-05-192-3/+4
|
* gh-104619: never leak comprehension locals to outer locals() (#104637)Carl Meyer2023-05-192-21/+32
|
* gh-104602: ensure all cellvars are known up front (#104603)Carl Meyer2023-05-194-22/+50
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-104600: Make function.__type_params__ writable (#104601)Jelle Zijlstra2023-05-186-5/+39
|
* gh-74690: Don't set special protocol attributes on non-protocol subclasses ↵Alex Waygood2023-05-182-6/+22
| | | | | of protocols (#104622) Don't set special protocol attributes on non-protocol subclasses of protocols
* gh-104623: Update Windows installer to use SQLite 3.42.0 (#104625)Erlend E. Aasland2023-05-184-3/+4
|
* gh-104050: Add more type annotations to Argument Clinic (#104628)Erlend E. Aasland2023-05-181-14/+39
| | | | | | | | | | Annotate the following: - methods of class Class - methods of class Module - methods of class PythonParser - function compute_checksum() - function parse_file() - global variable unsupported_special_methods
* gh-104629: Don't skip test_clinic if _testclinic is missing (#104630)Erlend E. Aasland2023-05-181-2/+5
| | | | Just skip the tests that depend on the _testclinic extension module; we can still run the Python tests.
* gh-104549: Set __module__ on TypeAliasType (#104550)Jelle Zijlstra2023-05-189-34/+93
|
* gh-104050: Improve some typing around `default`s and sentinel values (#104626)Alex Waygood2023-05-181-18/+23
| | | | | | | | | | | - Convert `unspecified` and `unknown` to be members of a `Sentinels` enum, rather than instances of bespoke classes. - An enum feels more idiomatic here, and works better with type checkers. - Convert some `==` and `!=` checks for these values to identity checks, which are more idiomatic with sentinels. - _Don't_ do the same for `Null`, as this needs to be a distinct type due to its usage in `clinic.py`. - Use `object` as the annotation for `default` across `clinic.py`. `default` can be literally any object, so `object` is the correct annotation here. --- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-104146: Remove unused vars from Argument Clinic (#104627)Erlend E. Aasland2023-05-181-2/+0
| | | Remove 'in_classes' and 'so_far' from DSLParser.directive_module()
* gh-104615: don't make unsafe swaps in apply_static_swaps (#104620)Carl Meyer2023-05-1814-20/+95
|
* GH-104484: Add case_sensitive argument to `pathlib.PurePath.match()` (GH-104565)thirumurugan2023-05-185-8/+30
| | | Co-authored-by: Barney Gale <barney.gale@gmail.com>
* GH-96803: Document and test new unstable internal frame API functions ↵Mark Shannon2023-05-185-3/+98
| | | | | | (GH-104211) Weaken contract of PyUnstable_InterpreterFrame_GetCode to return PyObject*.
* GH-104580: Don't cache eval breaker in interpreter (GH-104581)Mark Shannon2023-05-186-262/+260
| | | Move eval-breaker to the front of the interpreter state.
* gh-104374: Remove access to class scopes for inlined comprehensions (#104528)Jelle Zijlstra2023-05-183-9/+125
| | | Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-103606: Improve error message from logging.config.FileConfig (GH-103628)Prince Roshan2023-05-183-6/+60
|
* gh-104499: Fix typo. (#104598)Terry Jan Reedy2023-05-181-1/+1
|
* gh-104499: IDLE - fix completions for tk aqua 8.7 (#104591)Terry Jan Reedy2023-05-183-7/+6
|
* gh-104340: Suppress warning about unawaited exception for closed pipe stdin ↵Guido van Rossum2023-05-172-0/+4
| | | | (#104586)
* gh-104555: Runtime-checkable protocols: Don't let previous calls to ↵Alex Waygood2023-05-173-7/+96
| | | | | `isinstance()` influence whether `issubclass()` raises an exception (#104559) Co-authored-by: Carl Meyer <carl@oddbird.net>
* gh-104050: Add type hints to Argument Clinic converter keywords (#104588)Erlend E. Aasland2023-05-171-12/+36
| | | | | Introduce TypeSet, and use it to annotate the 'accept' keyword of various C converters. Also add some missing return annotations for converter init functions.
* gh-104496: IDLE - fix About for mixed tcl/tk versions (#104585)Terry Jan Reedy2023-05-174-23/+22
| | | Print both if they are different, as may happen in the future.
* gh-104372: Cleanup _posixsubprocess `make_inheritable` for async signal ↵Gregory P. Smith2023-05-172-34/+92
| | | | | | | | | | safety and no GIL requirement (#104518) Move all of the Python C API calls into the parent process up front instead of doing PyLong_AsLong and PyErr_Occurred and PyTuple_GET from the post-fork/vfork child process. Much of this was long overdue. We shouldn't have been using PyTuple and PyLong APIs within all of these low level functions anyways.
* GH-101520: Move tracemalloc functionality into core, leaving interface in ↵Mark Shannon2023-05-1711-1545/+1621
| | | | Modules. (#104508)
* typing: Add more tests for TypeVar (#104571)Jelle Zijlstra2023-05-173-8/+50
| | | | | | | | During the PEP 695 implementation at one point I made TypeVar.__name__ return garbage, and all of test_typing passed. So I decided to add a few more tests. In the process I discovered a minor incompatibility from the C implementation of TypeVar: empty constraints were returned as None instead of an empty tuple.
* gh-104572: Improve error messages for invalid constructs in PEP 695 contexts ↵Jelle Zijlstra2023-05-173-4/+68
| | | | (#104573)
* typing: Use PEP 695 syntax in typing.py (#104553)Jelle Zijlstra2023-05-171-11/+17
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-102153: Start stripping C0 control and space chars in `urlsplit` (#102508)Illia Volochii2023-05-174-3/+119
| | | | | | | | | `urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit #25595. This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/#url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329). --------- Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
* gh-104469: Update README.txt for _testcapi (gh-104529)Dong-hee Na2023-05-171-0/+7
| | | | | | * gh-104469: Update README.txt for _testcapi Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* GH-103092: isolate `_elementtree` (#104561)Kumar Aditya2023-05-161-43/+42
|
* gh-104050: Add typing to Argument Clinic converters (#104547)Erlend E. Aasland2023-05-161-53/+57
|
* GH-103906: Remove immortal refcounting in the interpreter (GH-103909)Brandt Bucher2023-05-164-516/+476
|