summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-86493: Fix possible leaks in some modules initialization (GH-106768)Serhiy Storchaka2023-07-188-45/+37
| | | | Fix _ssl, _stat, _testinternalcapi, _threadmodule, cmath, math, posix, time.
* bpo-42327: C API: Add PyModule_Add() function (GH-23443)Serhiy Storchaka2023-07-189-56/+61
| | | | | It is a fixed implementation of PyModule_AddObject() which consistently steals reference both on success and on failure.
* gh-86493: Fix possible leaks in modules initialization: _curses_panel, ↵Serhiy Storchaka2023-07-184-55/+37
| | | | _decimal, posix, xxsubtype (GH-106767)
* gh-106719: Fix __annotations__ getter and setter in the type and module ↵Serhiy Storchaka2023-07-183-47/+35
| | | | | types (GH-106720) No longer suppress arbitrary errors. Simplify the code.
* gh-106843: fix memleak in _PyCompile_CleanDoc (#106846)Inada Naoki2023-07-181-1/+4
|
* Small fixes to code generator (#106845)Guido van Rossum2023-07-183-15/+13
| | | | These repair nits I found in PR gh-106798 (issue gh-106797) and in PR gh-106716 (issue gh-106706).
* gh-104683: Argument Clinic: Modernise parse_special_symbol() (#106837)Erlend E. Aasland2023-07-171-56/+80
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Add Erlend as CODEOWNER for Argument Clinic docs (#106840)Erlend E. Aasland2023-07-171-0/+1
|
* gh-106368: Increase Argument Clinic test coverage for cpp.Monitor (#106833)Erlend E. Aasland2023-07-172-1/+180
|
* gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (#106832)Nikita Sobolev2023-07-172-3/+6
|
* gh-106603: Make uop struct a triple (opcode, oparg, operand) (#106794)Guido van Rossum2023-07-179-109/+190
|
* gh-61215: threadingmock: Improve test suite to avoid race conditions (#106822)Mario Corchero2023-07-171-137/+58
| | | | | | | | threadingmock: Improve test suite to avoid race conditions Simplify tests and split them into multiple tests to prevent assertions from triggering race conditions. Additionally, we rely on calling the mocks without delay to validate the functionality of matching calls.
* gh-106581: Add 10 new opcodes by allowing `assert(kwnames == NULL)` (#106707)Guido van Rossum2023-07-177-34/+385
| | | | | | | | | | | | | By turning `assert(kwnames == NULL)` into a macro that is not in the "forbidden" list, many instructions that formerly were skipped because they contained such an assert (but no other mention of `kwnames`) are now supported in Tier 2. This covers 10 instructions in total (all specializations of `CALL` that invoke some C code): - `CALL_NO_KW_TYPE_1` - `CALL_NO_KW_STR_1` - `CALL_NO_KW_TUPLE_1` - `CALL_NO_KW_BUILTIN_O` - `CALL_NO_KW_BUILTIN_FAST` - `CALL_NO_KW_LEN` - `CALL_NO_KW_ISINSTANCE` - `CALL_NO_KW_METHOD_DESCRIPTOR_O` - `CALL_NO_KW_METHOD_DESCRIPTOR_NOARGS` - `CALL_NO_KW_METHOD_DESCRIPTOR_FAST`
* gh-106529: Generate uops for POP_JUMP_IF_[NOT_]NONE (#106796)Guido van Rossum2023-07-172-0/+47
| | | | | | | | These aren't automatically translated because (ironically) they are macros deferring to POP_JUMP_IF_{TRUE,FALSE}, which are not viable uops (being manually translated). The hack is that we emit IS_NONE and then set opcode and jump to the POP_JUMP_IF_{TRUE,FALSE} translation code.
* gh-106687: _ssl: use uint64_t for SSL options (#106700)Victor Stinner2023-07-172-26/+78
| | | | | | | | SSL_CTX_get_options() uses uint64_t for options: https://www.openssl.org/docs/man3.1/man3/SSL_CTX_get_options.html Fix this compiler warning on Windows with MSC: conversion from 'uint64_t' to 'long', possible loss of data
* gh-104050: Improve Argument Clinic type annotation coverage (#106810)Erlend E. Aasland2023-07-171-18/+31
| | | | | | | | | | | Add various missing annotations in the following classes: - BlockPrinter - CConverter - CLanguage - FormatCounterFormatter - Language - _TextAccumulator Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106789: avoid importing pprint from sysconfig (#106790)Irit Katriel2023-07-173-21/+14
|
* gh-106780: Add __match_args__ to tutorial example (#106784)Terry Jan Reedy2023-07-171-1/+7
| | | | | Add Point definition with this attribute before example that needs it.
* Add more recipe tests. Make the factor recipe a bit faster and clearer. ↵Raymond Hettinger2023-07-171-3/+8
| | | | (GH-106817)
* gh-106797: Remove warning logs from Python/generated_cases.c.h (gh-106798)Dong-hee Na2023-07-173-20/+24
|
* gh-104050: Argument Clinic: Annotate Clinic.parse() (#106760)Erlend E. Aasland2023-07-171-4/+13
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-105540: Convert `pytest` tests of `cases_generator` to regular tests ↵Nikita Sobolev2023-07-162-163/+218
| | | | (#106713)
* Fix the french used in the email documentation (GH-106279)Jean-Baptiste Poupon2023-07-162-7/+7
| | | | | | * Fix the french used in the email documentation The french used in one of the example was either machine translated a while ago or written by someone who does not speak french. Fixed it by using grammatically correct french.
* gh-105726: Add `__slots__` to `AbstractContextManager` and ↵Grigoriev Semyon2023-07-164-0/+29
| | | | | `AbstractAsyncContextManager` (#106771) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-106706: Streamline family syntax in cases generator DSL (#106716)Kevin Diem2023-07-165-42/+31
| | | | From `family(opname, STRUCTSIZE) = OPNAME + SPEC1 + ... + SPECn;` to `family(OPNAME, STRUCTSIZE) = SPEC1 + ... + SPECn;`
* Doc: fix section levels of devmode doc (#106801)Inada Naoki2023-07-161-3/+3
|
* Doc: devmode: add -Xdev option to example (#106253)Simone Rubino2023-07-161-1/+1
|
* Docs search: Replace jQuery with vanilla JavaScript (#106743)Hugo van Kemenade2023-07-161-30/+44
| | | | * Replace jQuery with vanilla JavaScript * Switch 'var' to 'const' or 'let'
* Docs: Normalize Argument Clinic How-To section capitalization (#106788)Erlend E. Aasland2023-07-151-11/+18
|
* faq/library: remove outdated section (#105996)Mathieu Dupuy2023-07-151-35/+0
|
* Add more examples to the recipe docs (GH-106782)Raymond Hettinger2023-07-151-0/+2
| | | Demonstrate that factor() works for large composites and large primes.
* gh-106752: Sync with zipp 3.16.2 (#106757)Jason R. Coombs2023-07-156-27/+204
| | | | | * gh-106752: Sync with zipp 3.16.2 * Add blurb
* gh-81283: compiler: remove indent from docstring (#106411)Inada Naoki2023-07-159-30/+246
| | | Co-authored-by: Éric <merwok@netwok.org>
* gh-104050: Argument Clinic: Annotate BlockParser (#106750)Erlend E. Aasland2023-07-151-11/+19
|
* gh-106368: Increase Argument Clinic BlockParser test coverage (#106759)Erlend E. Aasland2023-07-151-4/+96
|
* gh-106529: Fix subtle Tier 2 edge case with list iterator (#106756)Guido van Rossum2023-07-154-4/+38
| | | | | | | | | | | | The Tier 2 opcode _IS_ITER_EXHAUSTED_LIST (and _TUPLE) didn't set it->it_seq to NULL, causing a subtle bug that resulted in test_exhausted_iterator in list_tests.py to fail when running all tests with -Xuops. The bug was introduced in gh-106696. Added this as an explicit test. Also fixed the dependencies for ceval.o -- it depends on executor_cases.c.h.
* gh-106752: Move zipfile._path into its own package (#106753)Jason R. Coombs2023-07-1411-2/+5
| | | | | * gh-106752: Move zipfile._path into its own package so it may have supplementary behavior. * Add blurb
* gh-102799: replace internal sys.exc_info() call by sys.exception() (#106746)Irit Katriel2023-07-141-5/+5
|
* gh-106745: typing docs: Clarify that removal of PEP-585 aliases is not ↵Alex Waygood2023-07-141-25/+45
| | | | currently planned (#106748)
* gh-106554: replace `_BaseSelectorImpl._key_from_fd` with `dict.get` (#106555)J. Nick Koston2023-07-142-17/+5
|
* gh-105481: expose opcode metadata via the _opcode module (#106688)Irit Katriel2023-07-149-21/+558
|
* gh-106531: Remove importlib.resources._legacy (#106532)Jason R. Coombs2023-07-144-295/+3
| | | | | | | * gh-106531: Remove importlib.resources._legacy Syncs with importlib_resources 6.0. * Remove documentation for removed functionality.
* gh-104050: Argument Clinic: Annotate `output_templates()` (#106732)Erlend E. Aasland2023-07-141-6/+12
| | | Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* gh-106446: Fix failed doctest in stdtypes (#106447)Charlie Zhao2023-07-141-17/+20
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-105293: Do not call SSL_CTX_set_session_id_context on client side SSL ↵Grant Ramsay2023-07-142-5/+11
| | | | | | | | | | context (#105295) * gh-105293: Do not call SSL_CTX_set_session_id_context on client side SSL context Openssl states this is a "server side only" operation. Calling this on a client side socket can result in unexpected behavior * Add news entry on SSL "set session id context" changes
* gh-105626: Change the default return value of ↵Nikita Sobolev2023-07-144-4/+19
| | | | `HTTPConnection.get_proxy_response_headers` (#105628)
* gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops (#106696)Guido van Rossum2023-07-146-111/+378
| | | | Also rename `_ITER_EXHAUSTED_XXX` to `_IS_ITER_EXHAUSTED_XXX` to make it clear this is a test.
* gh-104683: Argument clinic: use an enum to describe the different kinds of ↵Alex Waygood2023-07-131-25/+44
| | | | | functions (#106721) Argument clinic: use an enum to describe the different kinds of functions
* gh-106368: Increase Argument Clinic test coverage (#106728)Erlend E. Aasland2023-07-132-0/+590
| | | | - improve output_parameter() coverage - improve coverage for Function.kind
* docs: clarify Path.suffix (GH-106650)Ned Batchelder2023-07-132-4/+6
|