summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-98831: Remove all remaining DISPATCH() calls from bytecodes.c (#99271)Guido van Rossum2022-11-102-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 Bucher2022-11-103-30/+40
|
* gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)Vincent Fazio2022-11-103-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)Carlo2022-11-102-6/+1
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-90110: Update the C-analyzer Tool (gh-99307)Eric Snow2022-11-104-90/+14
|
* gh-99300: Use Py_NewRef() in Objects/dictobject.c (#99333)Victor Stinner2022-11-101-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 Stinner2022-11-109-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 Stinner2022-11-104-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 Shannon2022-11-1024-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 Ryzhov2022-11-103-3/+12
|
* GH-99257: Check the owner's type when specializing slots (GH-99258)Brandt Bucher2022-11-103-0/+78
|
* gh-99320: remove tests for old-style class from `test_complex` (#99321)Nikita Sobolev2022-11-101-6/+1
|
* gh-99281: [csv] remove try/except, `complex` always exists (#99282)Nikita Sobolev2022-11-101-5/+0
|
* gh-99300: Use Py_NewRef() in Python/ceval.c (#99318)Victor Stinner2022-11-103-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 Stinner2022-11-1010-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 Stinner2022-11-1014-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 Storchaka2022-11-106-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 Sobolev2022-11-092-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 Bucher2022-11-092-0/+10
|
* Update reference to the size of PyPI (#99076)jmcb2022-11-091-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 Bucher2022-11-0918-759/+563
|
* GH-90699: disallow `_Py_IDENTIFIER` in core code (GH-99210)Kumar Aditya2022-11-092-4/+10
|
* gh-98724: Fix Py_CLEAR() macro side effects (#99100)Victor Stinner2022-11-096-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 Stinner2022-11-092-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íns2022-11-091-1/+3
|
* [Enum] Typo: fix DuplicateFreeEnum example docs (GH-99265)Bruno Neyra2022-11-091-1/+1
|
* gh-99238: clarify the type of the env dict. (#99253)Gregory P. Smith2022-11-081-3/+7
|
* gh-94445: add compiler test for another case of excessive stack use (GH-99237)Carl Meyer2022-11-081-0/+7
|
* gh-99248: [Enum] fix negative number infinite loop (GH-99256)Ethan Furman2022-11-083-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 Snow2022-11-0815-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 Snow2022-11-0813-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 Stinner2022-11-088-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 Koli2022-11-081-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``: ![image](https://user-images.githubusercontent.com/37690409/200388894-fb6b7c42-b2cc-49ec-a239-e3472890db1f.png) 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: ![image](https://user-images.githubusercontent.com/37690409/200389483-b4a92105-7d2c-4285-b0fc-78a6dc0be39c.png) Automerge-Triggered-By: GH:AlexWaygood
* GH-98831: Simple input-output stack effects for bytecodes.c (#99120)Guido van Rossum2022-11-085-406/+384
|
* GH-93143: Don't turn LOAD_FAST into LOAD_FAST_CHECK (GH-99075)Brandt Bucher2022-11-083-58/+131
|
* gh-72719: Remove asyncore and asynchat modules (#96580)Nikita Sobolev2022-11-0821-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 Katriel2022-11-083-17/+226
|
* GH-90699: fix refleak in `_testcapimodule.c` (gh-99236)Kumar Aditya2022-11-081-0/+1
|
* gh-92119: ctypes: Print exception class name instead of its representation ↵Kamil Turek2022-11-084-6/+11
| | | | (#98302)
* gh-98513: Test abstract methods of some `collections` types (#98516)Nikita Sobolev2022-11-081-0/+5
|
* gh-99124: use concrete exception types in `test_builtin` (#99125)Nikita Sobolev2022-11-081-3/+3
|
* gh-98433: Fix quadratic time idna decoding. (#99092)Gregory P. Smith2022-11-083-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 Kemenade2022-11-072-1722/+3
|
* GH-90699: Remove remaining `_Py_IDENTIFIER` stdlib usage (GH-99067)Kumar Aditya2022-11-077-53/+110
|
* gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance ↵Petr Viktorin2022-11-071-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 Shannon2022-11-0713-71/+207
|
* gh-95389: expose popular ETHERTYPE_* constants in the socket module (#95390)Noam Cohen2022-11-076-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 Salgado2022-11-071-0/+9
| | | | bb56dead336357153a0c3b8cc9d9d6856d2c5a03 (#99197)
* gh-91058: Add what's new entry for the improvement in commit ↵Pablo Galindo Salgado2022-11-071-0/+10
| | | | 7cfbb49fcd4c85f9bab3797302eadf93df490344 (#99198)
* Docs: add argument spec to sqlite3 CLI docs (#99200)Erlend E. Aasland2022-11-071-1/+6
|