summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-47146: Soft-deprecate structmember.h, expose its contents via Python.h ↵Petr Viktorin2022-11-2219-345/+667
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-99014) The ``structmember.h`` header is deprecated, though it continues to be available and there are no plans to remove it. There are no deprecation warnings. Old code can stay unchanged (unless the extra include and non-namespaced macros bother you greatly). Specifically, no uses in CPython are updated -- that would just be unnecessary churn. The ``structmember.h`` header is deprecated, though it continues to be available and there are no plans to remove it. Its contents are now available just by including ``Python.h``, with a ``Py`` prefix added if it was missing: - `PyMemberDef`, `PyMember_GetOne` and`PyMember_SetOne` - Type macros like `Py_T_INT`, `Py_T_DOUBLE`, etc. (previously ``T_INT``, ``T_DOUBLE``, etc.) - The flags `Py_READONLY` (previously ``READONLY``) and `Py_AUDIT_READ` (previously all uppercase) Several items are not exposed from ``Python.h``: - `T_OBJECT` (use `Py_T_OBJECT_EX`) - `T_NONE` (previously undocumented, and pretty quirky) - The macro ``WRITE_RESTRICTED`` which does nothing. - The macros ``RESTRICTED`` and ``READ_RESTRICTED``, equivalents of `Py_AUDIT_READ`. - In some configurations, ``<stddef.h>`` is not included from ``Python.h``. It should be included manually when using ``offsetof()``. The deprecated header continues to provide its original contents under the original names. Your old code can stay unchanged, unless the extra include and non-namespaced macros bother you greatly. There is discussion on the issue to rename `T_PYSSIZET` to `PY_T_SSIZE` or similar. I chose not to do that -- users will probably copy/paste that with any spelling, and not renaming it makes migration docs simpler. Co-Authored-By: Alexander Belopolsky <abalkin@users.noreply.github.com> Co-Authored-By: Matthias Braun <MatzeB@users.noreply.github.com>
* gh-99662: fix typo in typing.TypeVarTuple docs (#99672)GabrielAnguita2022-11-221-1/+1
|
* gh-99659: Use correct exceptions in sqlite3 bigmem tests (#99660)Łukasz Langa2022-11-212-4/+7
| | | | | | The tests in question were added in 0eec6276fdcd by Serhiy. Apparently, sqlite3 changed exceptions raised in those cases in the mean time but the tests never ran because they require a high `-M` setting in the test runner.
* gh-98629: Fixes sys._git and sys.version creation on Windows (GH-99664)Steve Dower2022-11-212-1/+2
|
* gh-96002: Add functional test for Argument Clinic (#96178)colorfulappl2022-11-2112-1/+3695
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Add more details in test_unittest (GH-99626)Serhiy Storchaka2022-11-212-35/+67
|
* gh-99578: Fix refleak in _imp.create_builtin() (#99642)Victor Stinner2022-11-213-1/+35
| | | | Fix a reference bug in _imp.create_builtin() after the creation of the first sub-interpreter for modules "builtins" and "sys".
* GH-95815: Document less specific error for os.remove (#99571)Ronald Oussoren2022-11-211-1/+1
| | | | | | | os.remove can raise PermissionError instead of IsADirectoryError, when the object to be removed is a directory (in particular on macOS). This reverts a change done in #14262.
* gh-99337: Fix compile errors with gcc 12 on macOS (#99470)Ronald Oussoren2022-11-217-9/+54
| | | | | | | | Fix a number of compile errors with GCC-12 on macOS: 1. In pylifecycle.c the compile rejects _Pragma within a declaration 2. posixmodule.c was missing a number of ..._RUNTIME macros for non-clang on macOS 3. _ctypes assumed that __builtin_available is always present on macOS
* gh-90994: Improve error messages upon call arguments syntax errors (GH-96893)Lysandros Nikolaou2022-11-204-1149/+1427
|
* gh-99581: Fix a buffer overflow in the tokenizer when copying lines that ↵Pablo Galindo Salgado2022-11-203-1/+25
| | | | fill the available buffer (#99605)
* gh-61460: Add a comment describing the multiprocessing.connection protocol ↵Gregory P. Smith2022-11-201-0/+68
| | | | | | | | (gh-99623) Describe the multiprocessing connection protocol. It isn't a good protocol, but it is what it is. This way we can more easily reason about making changes to it in a backwards compatible way.
* gh-99211: Point to except/except* on syntax errors when mixing them (GH-99215)Lysandros Nikolaou2022-11-203-674/+718
| | | Automerge-Triggered-By: GH:lysnikolaou
* gh-99201: fix IndexError when initializing sysconfig config variablesFilipe Laíns2022-11-192-1/+8
|
* Doc: Make functions.html readable again. (GH-99476)Julien Palard2022-11-191-60/+60
|
* gh-99284: [ctypes] remove `_use_broken_old_ctypes_structure_semantics_` ↵Nikita Sobolev2022-11-197-27/+7
| | | | | (GH-99285) It was untested and undocumented. No code has been found in the wild that ever used it.
* gh-85073: Add some missing links to source (GH-99363)Stanley2022-11-188-0/+22
| | | Add some missing links to source from Python docs
* Doc: Replace question mark with fullstop (#99558)Rafael Fontenelle2022-11-181-1/+1
| | | | The sentence "Set the LC_CTYPE locale to the user preferred locale." should end with a period instead of a question mark.
* Doc: Fix broken link to emscripten networking website (#99531)Alexander Ryabov2022-11-181-1/+1
| | | There was an extra `>` in the url.
* gh-99553: fix bug where an ExceptionGroup subclass can wrap a BaseException ↵Irit Katriel2022-11-184-5/+37
| | | | (GH-99572)
* gh-99442: Fix handling in py.exe launcher when argv[0] does not include a ↵Steve Dower2022-11-183-51/+44
| | | | file extension (GH-99542)
* GH-98831: Refactor and fix cases generator (#99526)Guido van Rossum2022-11-186-308/+405
| | | | Also complete cache effects for BINARY_SUBSCR family.
* GH-99298: Clean up attribute specializations (GH-99398)Brandt Bucher2022-11-175-57/+39
|
* GH-98686: Get rid of BINARY_OP_GENERIC and COMPARE_OP_GENERIC (GH-99399)Brandt Bucher2022-11-178-206/+161
|
* Add a macro for "inlining" new frames (GH-99490)Brandt Bucher2022-11-173-86/+28
|
* Misc copyedits in docs on built-in types (GH-24466)Adorilson Bezerra2022-11-171-10/+14
| | | | | | | | | | | | # DOC: Improvements in library/stdtypes This PR does the following: 1. Replaces :meth: by :func: around repr function 2. Adds links to Unicode Standard site 3. Makes explicit "when" you can call the `iskeyword` function. The previous text could cause confusion to readers, especially those with English as a second language. The reader could understand that the `isidentifier` method calls the `iskeyword` function. Now, it is explicit that the dev can do it. 4. Replaces a URL with an inline link. Automerge-Triggered-By: GH:AlexWaygood
* gh-93649: Split float/long tests from _testcapimodule.c (GH-99549)Erlend E. Aasland2022-11-179-625/+677
| | | Automerge-Triggered-By: GH:erlend-aasland
* gh-99377: Revert audit events for thread state creation and free, because ↵Steve Dower2022-11-173-39/+1
| | | | the GIL is not properly held at these times (GH-99543)
* gh-99443: `descr_set_trampoline_call` return type should be `int` not ↵Hood Chatham2022-11-161-1/+1
| | | | `PyObject*` (#99444)
* Remove old comment (GH-99489)Brandt Bucher2022-11-161-9/+0
|
* gh-99370: Prefer LIBDIR from sysconfig when locating libpython for test ↵Steve Dower2022-11-161-1/+3
| | | | (GH-99523)
* gh-93649: Split watcher API tests from _testcapimodule.c (#99532)Erlend E. Aasland2022-11-168-616/+651
|
* gh-81057: Move the global Dict-Related Versions to _PyRuntimeState (gh-99497)Eric Snow2022-11-1616-48/+89
| | | | | We also move the global func version. https://github.com/python/cpython/issues/81057
* gh-99300: Replace Py_INCREF() with Py_NewRef() (#99530)Victor Stinner2022-11-1618-74/+40
| | | | Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef() and Py_XNewRef().
* gh-99377: Add audit events for thread creation and clear (GH-99378)Steve Dower2022-11-167-7/+117
|
* gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400)Eric Snow2022-11-169-90/+82
| | | | | This is part of the effort to consolidate global variables, to make them easier to manage (and make it easier to later move some of them to PyInterpreterState). https://github.com/python/cpython/issues/81057
* gh-81057: Move More Globals in Core Code to _PyRuntimeState (gh-99516)Eric Snow2022-11-1624-129/+240
| | | https://github.com/python/cpython/issues/81057
* gh-99518: Fix escape symbol in `test_enum` (#99519)Nikita Sobolev2022-11-161-1/+1
|
* gh-93649: Split memory and docstring tests from _testcapimodule.c (#99517)Erlend E. Aasland2022-11-167-671/+767
|
* gh-96269: static and shared ext need different deps (#96316)Christian Heimes2022-11-162-5/+10
|
* gh-99300: Replace Py_INCREF() with Py_NewRef() (#99513)Victor Stinner2022-11-1612-44/+22
| | | | Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef() and Py_XNewRef().
* gh-98940: Fix Mac/Extras.install.py File filter bug (#98943)zhangbo2022-11-162-4/+4
| | | | | Slightly simplify the script and fix a case issue in the name of ``.DS_Store`` files. Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* GH-98831: Implement basic cache effects (#99313)Guido van Rossum2022-11-164-128/+202
|
* Update Windows readme.txt to clarify Visual Studio required versions (GH-99522)Ben Kuhn2022-11-161-1/+1
| | | | | This is just a minor update to add a clarification to the requirements in the Windows build readme. Automerge-Triggered-By: GH:zooba
* gh-99460 Emscripten trampolines on optimized METH_O and METH_NOARGS code ↵Hood Chatham2022-11-152-6/+6
| | | | paths (#99461)
* gh-92647: [Enum] use final status to determine lookup or create (GH-99500)Ethan Furman2022-11-153-7/+28
| | | | | | | * use final status to determine lookup or create * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-81057: Move Globals in Core Code to _PyRuntimeState (gh-99496)Eric Snow2022-11-1517-168/+236
| | | | | This is the first of several changes to consolidate non-object globals in core code. https://github.com/python/cpython/issues/81057
* Merge the 3.12.0a2 release into main.Thomas Wouters2022-11-15108-3287/+3338
|\
| * gh-99300: Use Py_NewRef() in Python/Python-ast.c (#99499)Victor Stinner2022-11-152-144/+78
| | | | | | | | | | | | Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Python/Python-ast.c. Update Parser/asdl_c.py to regenerate code.
| * gh-93649: Split pytime and datetime tests from _testcapimodule.c (#99494)Erlend E. Aasland2022-11-157-678/+744
| |