Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GH-98831: Remove all remaining DISPATCH() calls from bytecodes.c (#99271) | Guido van Rossum | 2022-11-10 | 2 | -169/+175 |
| | | | | | Also mark those opcodes that have no stack effect as such. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> | ||||
* | GH-99298: Don't perform jumps before error handling (GH-99299) | Brandt Bucher | 2022-11-10 | 3 | -30/+40 |
| | |||||
* | gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206) | Vincent Fazio | 2022-11-10 | 3 | -0/+54 |
| | | | | | | | | | | | Check to see if `base_executable` exists. If it does not, attempt to use known alternative names of the python binary to find an executable in the path specified by `home`. If no alternative is found, previous behavior is preserved. Signed-off-by: Vincent Fazio <vfazio@gmail.com> Signed-off-by: Vincent Fazio <vfazio@gmail.com> | ||||
* | gh-99277: remove older version of `get_write_buffer_limits` (#99280) | Carlo | 2022-11-10 | 2 | -6/+1 |
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | ||||
* | gh-90110: Update the C-analyzer Tool (gh-99307) | Eric Snow | 2022-11-10 | 4 | -90/+14 |
| | |||||
* | gh-99300: Use Py_NewRef() in Objects/dictobject.c (#99333) | Victor Stinner | 2022-11-10 | 1 | -92/+48 |
| | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Objects/dictobject.c. | ||||
* | gh-99300: Use Py_NewRef() in Objects/ directory (#99332) | Victor Stinner | 2022-11-10 | 9 | -156/+77 |
| | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory. | ||||
* | gh-99300: Use Py_NewRef() in Parser/ directory (#99330) | Victor Stinner | 2022-11-10 | 4 | -11/+5 |
| | | | | Replace Py_INCREF() with Py_NewRef() in C files of the Parser/ directory and in the PEG generator. | ||||
* | GH-96421: Insert shim frame on entry to interpreter (GH-96319) | Mark Shannon | 2022-11-10 | 24 | -344/+448 |
| | | | | | | * Adds EXIT_INTERPRETER instruction to exit PyEval_EvalDefault() * Simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR instructions as they no longer need to check for entry frames. | ||||
* | gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736) | Anton Ryzhov | 2022-11-10 | 3 | -3/+12 |
| | |||||
* | GH-99257: Check the owner's type when specializing slots (GH-99258) | Brandt Bucher | 2022-11-10 | 3 | -0/+78 |
| | |||||
* | gh-99320: remove tests for old-style class from `test_complex` (#99321) | Nikita Sobolev | 2022-11-10 | 1 | -6/+1 |
| | |||||
* | gh-99281: [csv] remove try/except, `complex` always exists (#99282) | Nikita Sobolev | 2022-11-10 | 1 | -5/+0 |
| | |||||
* | gh-99300: Use Py_NewRef() in Python/ceval.c (#99318) | Victor Stinner | 2022-11-10 | 3 | -128/+68 |
| | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Python/ceval.c and related files. | ||||
* | gh-99300: Use Py_NewRef() in Python/ directory (#99317) | Victor Stinner | 2022-11-10 | 10 | -327/+169 |
| | | | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. Update Parser/asdl_c.py to regenerate Python/Python-ast.c. | ||||
* | gh-99300: Use Py_NewRef() in Python/ directory (#99302) | Victor Stinner | 2022-11-10 | 14 | -80/+41 |
| | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. | ||||
* | bpo-34272: Reorganize C API tests. (GH-8551) | Serhiy Storchaka | 2022-11-10 | 6 | -0/+9 |
| | | | | Move some C API tests into Lib/test/test_capi/. | ||||
* | gh-98832: Change wording in docstring of `pathlib.Path.iterdir` (GH-98833) | Nikita Sobolev | 2022-11-09 | 2 | -2/+5 |
| | | | | | Found while working on https://github.com/python/cpython/issues/98829 Automerge-Triggered-By: GH:AlexWaygood | ||||
* | GH-99205: Mark new interpreters and threads as non-static (GH-99268) | Brandt Bucher | 2022-11-09 | 2 | -0/+10 |
| | |||||
* | Update reference to the size of PyPI (#99076) | jmcb | 2022-11-09 | 1 | -2/+2 |
| | | | | | Update reference to the size of PyPI Last changed in 2008 (528576031d9655ca8004260a2bf2c783f77d1da1). | ||||
* | GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182) | Brandt Bucher | 2022-11-09 | 18 | -759/+563 |
| | |||||
* | GH-90699: disallow `_Py_IDENTIFIER` in core code (GH-99210) | Kumar Aditya | 2022-11-09 | 2 | -4/+10 |
| | |||||
* | gh-98724: Fix Py_CLEAR() macro side effects (#99100) | Victor Stinner | 2022-11-09 | 6 | -29/+175 |
| | | | | | | | The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test_py_setref() unit tests to _testcapi. | ||||
* | gh-90868: Add _PyStaticObject_CheckRefcnt() function (#99261) | Victor Stinner | 2022-11-09 | 2 | -5782/+1458 |
| | | | | | | Add _PyStaticObject_CheckRefcnt() function to make _PyStaticObjects_CheckRefcnt() shorter. Use _PyObject_ASSERT_FAILED_MSG() to log the object causing the fatal error. | ||||
* | CODEOWNERS: add myself to sysconfig and importlib.resources (#98851) | Filipe Laíns | 2022-11-09 | 1 | -1/+3 |
| | |||||
* | [Enum] Typo: fix DuplicateFreeEnum example docs (GH-99265) | Bruno Neyra | 2022-11-09 | 1 | -1/+1 |
| | |||||
* | gh-99238: clarify the type of the env dict. (#99253) | Gregory P. Smith | 2022-11-08 | 1 | -3/+7 |
| | |||||
* | gh-94445: add compiler test for another case of excessive stack use (GH-99237) | Carl Meyer | 2022-11-08 | 1 | -0/+7 |
| | |||||
* | gh-99248: [Enum] fix negative number infinite loop (GH-99256) | Ethan Furman | 2022-11-08 | 3 | -2/+23 |
| | | | | | | | | [Enum] fix negative number infinite loop - _iter_bits_lsb() now raises a ValueError if a negative number is passed in - verify() now skips checking negative numbers for named flags | ||||
* | gh-90868: Adjust the Generated Objects (gh-99223) | Eric Snow | 2022-11-08 | 15 | -7098/+7193 |
| | | | | | | | | | | | We do the following: * move the generated _PyUnicode_InitStaticStrings() to its own file * move the generated _PyStaticObjects_CheckRefcnt() to its own file * include pycore_global_objects.h in extension modules instead of pycore_runtime_init.h These changes help us avoid including things that aren't needed. https://github.com/python/cpython/issues/90868 | ||||
* | gh-98627: Add the _testsinglephase Module (gh-99039) | Eric Snow | 2022-11-08 | 13 | -21/+356 |
| | | | | | This makes it more clear that a given test is definitely testing against a single-phase init (legacy) extension module. The new module is a companion to _testmultiphase. https://github.com/python/cpython/issues/98627 | ||||
* | gh-91248: Add PyFrame_GetVar() function (#95712) | Victor Stinner | 2022-11-08 | 8 | -22/+126 |
| | | | | | | Add PyFrame_GetVar() and PyFrame_GetVarString() functions to get a frame variable by its name. Move PyFrameObject C API tests from test_capi to test_frame. | ||||
* | Fix broken link in `asyncio-subprocesses` doc (GH-99214) | Mikael Koli | 2022-11-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | # Fix broken link in Doc/library/asyncio-subprocess.rst This is a trivial fix in documentation to fix a broken link. There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.subprocess.Process) for the function ``wait_for``:  I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs. This PR fixes the link and the result looks like the following:  Automerge-Triggered-By: GH:AlexWaygood | ||||
* | GH-98831: Simple input-output stack effects for bytecodes.c (#99120) | Guido van Rossum | 2022-11-08 | 5 | -406/+384 |
| | |||||
* | GH-93143: Don't turn LOAD_FAST into LOAD_FAST_CHECK (GH-99075) | Brandt Bucher | 2022-11-08 | 3 | -58/+131 |
| | |||||
* | gh-72719: Remove asyncore and asynchat modules (#96580) | Nikita Sobolev | 2022-11-08 | 21 | -1762/+32 |
| | | | | | Remove modules asyncore and asynchat, which were deprecated by PEP 594. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | gh-99181: fix except* on unhashable exceptions (GH-99192) | Irit Katriel | 2022-11-08 | 3 | -17/+226 |
| | |||||
* | GH-90699: fix refleak in `_testcapimodule.c` (gh-99236) | Kumar Aditya | 2022-11-08 | 1 | -0/+1 |
| | |||||
* | gh-92119: ctypes: Print exception class name instead of its representation ↵ | Kamil Turek | 2022-11-08 | 4 | -6/+11 |
| | | | | (#98302) | ||||
* | gh-98513: Test abstract methods of some `collections` types (#98516) | Nikita Sobolev | 2022-11-08 | 1 | -0/+5 |
| | |||||
* | gh-99124: use concrete exception types in `test_builtin` (#99125) | Nikita Sobolev | 2022-11-08 | 1 | -3/+3 |
| | |||||
* | gh-98433: Fix quadratic time idna decoding. (#99092) | Gregory P. Smith | 2022-11-08 | 3 | -17/+45 |
| | | | | | | | | There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. This also adds an early length check in IDNA decoding to outright reject huge inputs early on given the ultimate result is defined to be 63 or fewer characters. | ||||
* | gh-98817: Remove PCbuild/lib.pyproj (GH-98818) | Hugo van Kemenade | 2022-11-07 | 2 | -1722/+3 |
| | |||||
* | GH-90699: Remove remaining `_Py_IDENTIFIER` stdlib usage (GH-99067) | Kumar Aditya | 2022-11-07 | 7 | -53/+110 |
| | |||||
* | gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance ↵ | Petr Viktorin | 2022-11-07 | 1 | -0/+11 |
| | | | | | | | (GH-99002) The flag is not inherited, but its effect -- a NULL tp_new -- is. Drop hints for people who come here wanting to “disallow instantiation”. | ||||
* | GH-96793: Specialize FOR_ITER for generators. (GH-98772) | Mark Shannon | 2022-11-07 | 13 | -71/+207 |
| | |||||
* | gh-95389: expose popular ETHERTYPE_* constants in the socket module (#95390) | Noam Cohen | 2022-11-07 | 6 | -4/+65 |
| | | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> | ||||
* | gh-98254: Add what's new entry for the improvement in commit ↵ | Pablo Galindo Salgado | 2022-11-07 | 1 | -0/+9 |
| | | | | bb56dead336357153a0c3b8cc9d9d6856d2c5a03 (#99197) | ||||
* | gh-91058: Add what's new entry for the improvement in commit ↵ | Pablo Galindo Salgado | 2022-11-07 | 1 | -0/+10 |
| | | | | 7cfbb49fcd4c85f9bab3797302eadf93df490344 (#99198) | ||||
* | Docs: add argument spec to sqlite3 CLI docs (#99200) | Erlend E. Aasland | 2022-11-07 | 1 | -1/+6 |
| |