summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-106236: Replace `assert` with `raise RuntimeError` in `threading.py` ↵Nikita Sobolev2023-07-123-3/+14
| | | | | (#106237) Replace `assert` with `raise ` in `threading.py` so that -OO does not alter _DummyThread behavior.
* gh-106529: Split FOR_ITER_RANGE into uops (#106638)Guido van Rossum2023-07-126-28/+146
| | | | For an example of what this does for Tier 1 and Tier 2, see https://github.com/python/cpython/issues/106529#issuecomment-1631649920
* gh-106656: Remove --emit-line-directives from regen-cases (#106657)Guido van Rossum2023-07-123-863/+2
| | | | | | | If you prefer to see `#line` directives in generated_cases.c.h, run ``` make regen-cases CASESFLAG=-l ``` But please don't commit the result.
* GH-104909: Break LOAD_GLOBAL specializations in micro-ops. (GH-106677)Mark Shannon2023-07-126-502/+586
|
* gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649)Steve Dower2023-07-126-8/+10
|
* gh-105481: move Python/opcode_metadata.h to ↵Irit Katriel2023-07-129-16/+16
| | | | Include/internal/pycore_opcode_metadata.h (#106673)
* gh-105373: Elaborate Pending Removal in What's New in Python 3.13 (#106675)Victor Stinner2023-07-121-2/+9
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106521: Remove _PyObject_LookupAttr() function (GH-106642)Serhiy Storchaka2023-07-1245-352/+351
|
* Add Plausible for docs metrics (#106644)Hugo van Kemenade2023-07-121-0/+1
|
* gh-104683: Argument clinic: Minor readability improvements for ↵Alex Waygood2023-07-111-5/+8
| | | | `Destination.__init__` (#106652)
* gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source ↵Ijtaba Hussain2023-07-112-1/+3
| | | | | | | | | directory (#103213) Fetch CONFIG_ARGS from the original source directory, instead of from the copied source tree. When "make clean" is executed in the copied source tree, the build directory is cleared and the configure argument lookup fails. However, the original source directory still contains this information.
* gh-106529: Implement JUMP_FORWARD in uops (with test) (#106651)Guido van Rossum2023-07-112-0/+32
| | | | Note that this may generate two SAVE_IP uops in a row. Removing unneeded SAVE_IP uops is the optimizer's job.
* gh-104050: Argument Clinic: Annotate the `Block` class (#106519)Alex Waygood2023-07-111-15/+17
|
* gh-104584: readability improvements in optimizer.c (#106641)Irit Katriel2023-07-111-18/+19
|
* gh-96165: Clarify passing ":memory:" in sqlite3.connect() (#106451)Mariusz Felisiak2023-07-111-2/+3
|
* gh-96165: Clarify omitting the FROM clause in SQLite queries (#106513)Mariusz Felisiak2023-07-111-0/+7
|
* gh-106307: C API: Add PyMapping_GetOptionalItem() function (GH-106308)Serhiy Storchaka2023-07-1115-896/+739
| | | | Also add PyMapping_GetOptionalItemString() function.
* gh-106597: Add debugging struct with offsets for out-of-process tools (#106598)Pablo Galindo Salgado2023-07-113-1/+151
|
* gh-106521: Add PyObject_GetOptionalAttr() function (GH-106522)Serhiy Storchaka2023-07-1111-23/+119
| | | | | | It is a new name of former _PyObject_LookupAttr(). Add also PyObject_GetOptionalAttrString().
* gh-106529: Support JUMP_BACKWARD in Tier 2 (uops) (#106543)Guido van Rossum2023-07-115-30/+63
| | | | | During superblock generation, a JUMP_BACKWARD instruction is translated to either a JUMP_TO_TOP micro-op (when the target of the jump is exactly the beginning of the superblock, closing the loop), or a SAVE_IP + EXIT_TRACE pair, when the jump goes elsewhere. The new JUMP_TO_TOP instruction includes a CHECK_EVAL_BREAKER() call, so a closed loop can still be interrupted.
* gh-102541: Add test case for help() for non_existent_module (#106340)Kirill Podoprigora2023-07-111-1/+10
| | | | | | Test fix for when one enters, for instance, 'abd' at the 'help>' prompt. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-106625 : Add missing code to tutorial 4.6 example (#106623)RustyNail2023-07-111-2/+3
| | | | | | | | | | | | | | | * Added missing import statement. * Update Doc/tutorial/controlflow.rst * Update Doc/tutorial/controlflow.rst * Update controlflow.rst * Make point regular class with __init__. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-106403: Restore weakref support for TypeVar and friends (#106418)Jelle Zijlstra2023-07-113-5/+42
|
* gh-106498: Revert incorrect colorsys.rgb_to_hls change (#106627)Terry Jan Reedy2023-07-113-1/+13
| | | | | | gh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d. For floats 2.0, 1.0, and 0.9999999999999999, this assumption is false. The net change of 1.1102230246251565e-16 to 0.0 results in division by 0. Revert the replacement. Add test.
* wasm: do not use inline comment in .editorconfig (#106610)Eisuke Kawashima2023-07-111-1/+2
| | | | It is no longer valid since 0.15.0 https://github.com/editorconfig/specification/blob/v0.15/index.rst#no-inline-comments
* gh-106360: remove redundant #ifdef (#106622)Irit Katriel2023-07-112-7/+3
|
* gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (#106468)Ethan Furman2023-07-113-61/+86
| | | | | | | | | | | For example: class Flag(enum.Flag): A = 0x01 B = 0x02 MASK = 0xff ~Flag.MASK is Flag(0)
* gh-103968: What's New: Add porting hints for PyType_From with metaclasses ↵Petr Viktorin2023-07-111-1/+25
| | | | (GH-105698)
* gh-106078: Move external C-API functions to decimal module global state ↵Charlie Zhao2023-07-112-29/+24
| | | | (#106616)
* GH-106529: Define POP_JUMP_IF_NONE in terms of POP_JUMP_IF_TRUE (GH-106599)Mark Shannon2023-07-114-235/+281
|
* gh-106572: Convert PyObject_DelAttr() to a function (#106611)Victor Stinner2023-07-1112-8/+33
| | | | | | | | * Convert PyObject_DelAttr() and PyObject_DelAttrString() macros to functions. * Add PyObject_DelAttr() and PyObject_DelAttrString() functions to the stable ABI. * Replace PyObject_SetAttr(obj, name, NULL) with PyObject_DelAttr(obj, name).
* Remove unused branches from mock module (#106617)Chris Withers2023-07-112-8/+3
| | | | | | | * lambda has a name of __none__, but no async lambda so this branch is not needed * _get_signature_object only returns None for bound builtins. There are no async builtins so this branch isn't needed * Exclude a couple of methods from coverage checking in the downstream rolling backport of mock
* gh-106529: Silence compiler warning in jump target patching (#106613)Guido van Rossum2023-07-111-2/+2
| | | (gh-106551 caused a compiler warning about on Windows.)
* gh-104635: Add a test case for variables that have a dependency. (gh-106583)Dong-hee Na2023-07-111-0/+9
|
* gh-106529: Implement POP_JUMP_IF_XXX uops (#106551)Guido van Rossum2023-07-105-72/+181
| | | | | | | | | | | | | | | - Hand-written uops JUMP_IF_{TRUE,FALSE}. These peek at the top of the stack. The jump target (in superblock space) is absolute. - Hand-written translation for POP_JUMP_IF_{TRUE,FALSE}, assuming the jump is unlikely. Once we implement jump-likelihood profiling, we can implement the jump-unlikely case (in another PR). - Tests (including some test cleanup). - Improvements to len(ex) and ex[i] to expose the whole trace.
* gh-102988: Detect email address parsing errors and return empty tuple to ↵Thomas Dwyer2023-07-105-10/+172
| | | | | | | | | indicate the parsing error (old API) (#105127) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). This fixes or at least ameliorates CVE-2023-27043. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-94777: Fix deadlock in ProcessPoolExecutor (#94784)Louis Paulot2023-07-103-0/+23
| | | Fixes a hang in multiprocessing process pool executor when a child process crashes and code could otherwise block on writing to the pipe. See GH-94777 for more details.
* gh-103186: Fix or catch 'extra' stderr output from unittests (#103196)Ijtaba Hussain2023-07-103-7/+14
| | | | | | | | | | | | Reduce test noise by fixing or catching and testing stderr messages from individual tests. test_cmd_line_script.test_script_as_dev_fd calls spawn_python and hence subprocess.Popen with incompatible arguments. On POSIX, pass_fds forces close_fds to be True (subprocess.py line 848). Correct the call. test_uuid.test_cli_namespace_required_for_uuid3: when the namespace is omitted, uuid.main calls argparse.Argument_Parser.error, which prints to stderr before calling sys.exit, which raises SystemExit. Unittest assertRaises catches the exception but not the previous output. Catch the output and test it. test_warnings.test_catchwarnings_with_simplefilter_error similarly prints before raising. Catch the output and test it. --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-105227: Add PyType_GetDict() (GH-105747)Eric Snow2023-07-106-1/+68
| | | | | This compensates for static builtin types having `tp_dict` set to `NULL`. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* GH-61215: threadingmock: Remove unused branch for `timeout` (#106591)Mario Corchero2023-07-101-3/+1
| | | | | | threadingmock: Remove unused branch for `timeout` This is no longer needed as the mock does not hold a "timeout" parameter, the timeout is stored in `_mock_wait_timeout`.
* GH-100288: regen cases after #105990 (#106589)Kumar Aditya2023-07-101-7/+7
|
* gh-106078: Move static variables initialized once to decimal module global ↵Charlie Zhao2023-07-102-25/+28
| | | | state (#106475)
* Fix typo in datamodel.rst (#106587)Riahiamirreza2023-07-101-1/+1
|
* update release schedule for 3.13 (#106577)sunmy20192023-07-101-1/+1
|
* GH-104787: use managed weakrefs in `_asyncio` (#106516)Kumar Aditya2023-07-101-21/+6
|
* gh-99593: Add tests for Unicode C API (part 3) (GH-104728)Serhiy Storchaka2023-07-102-1/+972
| | | | Add tests for codecs.
* GH-100288: Specialize LOAD_ATTR for simple class attributes. (#105990)Mark Shannon2023-07-1010-290/+405
| | | * Add two more specializations of LOAD_ATTR.
* gh-106487: Allow the 'count' argument of `str.replace` to be a keyword (#106488)Hugo van Kemenade2023-07-106-14/+54
|
* Clarify how topics.py gets created. (#106121)Ned Batchelder2023-07-101-0/+1
| | | | | | | | | When changing docs, it was easy to find text in topics.py, and I wondered whether I was supposed to edit it. Thankfully, the top of the file says it's auto-generated, so I knew I didn't have to edit it. But I didn't know what started the auto-generation process. It's part of the release process, so I'll leave a note here for future editors.
* gh-105733: Fix ctypes What's New entry (#106576)Victor Stinner2023-07-101-1/+1
|