summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix the long64 reader in umarshal.py (GH-107828)Martin DeMello2023-08-101-4/+4
|
* gh-107810: Improve DeprecationWarning for metaclasses with custom tp_new ↵Marc Mueller2023-08-103-4/+5
| | | | | | (GH-107834) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-107838: In dataclasses, improve error message when a non-default field ↵Eric V. Smith2023-08-102-7/+7
| | | | | follows a default field. (gh-107842) Add the name of the previous default argument field in an error message.
* GH-107674: Avoid allocating boxed ints for `sys.settrace` line events ↵Mark Shannon2023-08-102-6/+39
| | | | (GH-107780)
* GH-106485: Handle dict subclasses correctly when dematerializing `__dict__` ↵Mark Shannon2023-08-107-7/+169
| | | | (GH-107837)
* gh-106149: move CFG and basicblock definitions into flowgraph.c, use them as ↵Irit Katriel2023-08-104-478/+482
| | | | opaque types in compile.c (#107639)
* GH-107774: Add missing audit event for PEP 669 (GH-107775)Mark Shannon2023-08-104-0/+30
|
* gh-95065: Argument Clinic: Add functional tests of deprecated positionals ↵Erlend E. Aasland2023-08-105-1162/+1338
| | | | | | | | | | | | (#107768) Move the "deprecated positinal" tests from clinic.test.c to _testclinic.c. Mock PY_VERSION_HEX in order to prevent generated compiler warnings/errors to trigger. Put clinic code for deprecated positionals in Modules/clinic/_testclinic_depr_star.c.h for easy inspection of the generated code. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107409: set `__wrapped__` attribute in `reprlib.recursive_repr` (#107410)denballakh2023-08-103-0/+11
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-107689: Add docstring to `ctypes.Array` (#107697)Kostya Farber2023-08-101-2/+12
|
* Update README for the cases generator (#107826)Guido van Rossum2023-08-101-2/+6
|
* GH-107812: extend `socket`'s netlink support to FreeBSD (gh-107813)Mina Galić2023-08-105-1/+23
|
* gh-91054: make code watcher tests resilient to other watchers (#107821)Carl Meyer2023-08-092-3/+12
|
* gh-107814: Avoid output from Nuget installation in find_python.bat (GH-107815)Max Bachmann2023-08-092-2/+7
|
* GH-106485: Dematerialize instance dictionaries when possible (GH-106539)Brandt Bucher2023-08-0910-24/+88
|
* GH-105848: Simplify the arrangement of CALL's stack (GH-107788)Brandt Bucher2023-08-0916-682/+627
|
* gh-95065: Produce nicer deprecation messages in Argument Clinic (#107808)Erlend E. Aasland2023-08-092-18/+211
|
* gh-104683: Argument Clinic: Params now render their own docstrings (#107790)Erlend E. Aasland2023-08-092-18/+21
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104683: Remove unused variables from `Tools/clinic` and tests for ↵Alex Waygood2023-08-092-8/+3
| | | | `Tools/clinic` (#107771)
* GH-107724: Fix the signature of `PY_THROW` callback functions. (GH-107725)Mark Shannon2023-08-096-18/+39
|
* Future-proof helper function with zero handling. (GH-107798)Raymond Hettinger2023-08-091-0/+2
|
* Docs: clean up Argument Clinic howto's (#107797)Erlend E. Aasland2023-08-092-11/+12
| | | | - fix formatting in @text_signature howto and NEWS entry - fix formatting and example text in deprecate-positionals howto
* gh-80282: Argument Clinic: Add clarifying comment about ASCII docstring ↵Erlend E. Aasland2023-08-091-0/+5
| | | | | limitation (#107764) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106052: Fix bug in the matching of possessive quantifiers (gh-106515)Serhiy Storchaka2023-08-093-0/+21
| | | | | | It did not work in the case of a subpattern containing backtracking. Temporary implement possessive quantifiers as equivalent greedy qualifiers in atomic groups.
* gh-104683: Argument Clinic: refactor format_docstring() (#107623)Erlend E. Aasland2023-08-081-46/+36
| | | | | | | Extract helper methods for formatting the signature and parameter sections, and clean up the remaining function body. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-104683: Add --exclude option to Argument Clinic CLI (#107770)Erlend E. Aasland2023-08-085-1/+51
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-107596: Specialize str[int] (GH-107597)Brandt Bucher2023-08-0810-97/+172
|
* GH-100425: Note improved commutativity in sum(). (GH-107785)Raymond Hettinger2023-08-082-3/+3
|
* Minor accuracy improvement for statistics.correlation() (GH-107781)Raymond Hettinger2023-08-081-1/+9
|
* gh-105699: Re-enable the Multiple-Interpreters Stress Tests (gh-107572)Eric Snow2023-08-081-1/+0
| | | We had disabled them due to crashes they exposed, which have since been fixed.
* gh-91795: Update build optimization part of PCbuild/readme.txt (GH-91849)Fatih2023-08-081-3/+5
|
* gh-106368: Argument clinic: add tests for more failure paths (#107731)Alex Waygood2023-08-082-16/+97
|
* gh-95065: Argument Clinic: Add comment to preprocessor warning code (#107766)Erlend E. Aasland2023-08-082-9/+19
|
* gh-107659: Add docstrings for ctypes.pointer and ctypes.POINTER (#107660)Tomas R2023-08-083-5/+78
|
* README: remove unmaintained sections (#107703)Inada Naoki2023-08-081-24/+0
|
* gh-86457: Add docs for Argument Clinic @text_signature directive (#107747)Erlend E. Aasland2023-08-082-1/+35
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-95065: Make Argument Clinic append deprecation warnings to docstrings ↵Erlend E. Aasland2023-08-082-18/+63
| | | | (#107745)
* gh-107758: Improvements to lltrace feature (#107757)Guido van Rossum2023-08-084-8/+31
| | | | | | | | | - The `dump_stack()` method could call a `__repr__` method implemented in Python, causing (infinite) recursion. I rewrote it to only print out the values for some fundamental types (`int`, `str`, etc.); for everything else it just prints `<type_name @ 0xdeadbeef>`. - The lltrace-like feature for uops wrote to `stderr`, while the one in `ceval.c` writes to `stdout`; I changed the uops to write to stdout as well.
* gh-106812: Small stack effect fixes (#107759)Guido van Rossum2023-08-083-20/+15
| | | | | | | | | | | - Generalize the syntax for the type of a stack effect to allow a trailing `*`, so we can declare something as e.g. `PyCodeObject *`. - When generating assignments for stack effects, the type of the value on the stack should be the default (i.e., `PyObject *`) even when the variable copied to/from it has a different type, so that an appropriate cast is generated However, not when the variable is an array -- then the type is taken from the variable (as it is always `PyObject **`).
* gh-107630: Fix Remaining Subinterpreters Crashes on Py_TRACE_REFS Builds ↵Eric Snow2023-08-071-0/+6
| | | | | | | (gh-107750) This is a follow-up to gh-107567 and gh-107733. We skip test_basic_multiple_interpreters_deleted_no_reset on tracerefs builds. The test breaks interpreter isolation a little, which doesn't work well with Py_TRACE_REFS builds, so I feel fine about skipping the test.
* gh-98154: Clarify Usage of "Reference Count" In the Docs (gh-107552)Eric Snow2023-08-0715-90/+162
| | | | | PEP 683 (immortal objects) revealed some ways in which the Python documentation has been unnecessarily coupled to the implementation details of reference counts. In the end users should focus on reference ownership, including taking references and releasing them, rather than on how many reference counts an object has. This change updates the documentation to reflect that perspective. It also updates the docs relative to immortal objects in a handful of places.
* gh-107735: Move just added C API tests to better place (GH-107743)Serhiy Storchaka2023-08-071-40/+40
|
* gh-86457: Fix signature for code.replace() (GH-23199)Serhiy Storchaka2023-08-074-173/+178
| | | | Also add support of @text_signature in Argument Clinic.
* gh-107735: Add C API tests for PySys_GetObject() and PySys_SetObject() ↵Serhiy Storchaka2023-08-072-0/+84
| | | | (GH-107736)
* gh-107630: Initialize Each Interpreter's refchain Properly (gh-107733)Eric Snow2023-08-074-1/+25
| | | This finishes fixing the crashes in Py_TRACE_REFS builds. We missed this part in gh-107567.
* gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179)Serhiy Storchaka2023-08-0713-297/+2174
| | | | | | | | | | Cover all the Mapping Protocol, almost all the Sequence Protocol (except PySequence_Fast) and a part of the Object Protocol. Move existing tests to Lib/test/test_capi/test_abstract.py and Modules/_testcapi/abstract.c. Add also tests for PyDict C API.
* gh-107715: Escape class name in regular expression (GH-107716)Gertjan van Zwieten2023-08-072-1/+2
| | | | | | | | | This patch escapes the class name before embedding it in the regular expression for `pat` in `doctest.DocTestFinder._find_lineno`. While class names do not ordinarily contain special characters, it is possible to encounter these when a class is created dynamically. Escaping the name will correctly return `None` in this scenario, rather than potentially matching a different class or raising `re.error` depending on the symbols used.
* gh-106566: Optimize (?!) in regular expressions (GH-106567)Serhiy Storchaka2023-08-073-1/+7
|
* gh-100814: Fix exception for invalid callable value of Tkinter image option ↵Serhiy Storchaka2023-08-073-4/+18
| | | | | | | (GH-107692) Passing a callable object as an option value to a Tkinter image now raises the expected TclError instead of an AttributeError.
* gh-95065: Argument Clinic: Pretty-print long C strings in generated code ↵Erlend E. Aasland2023-08-072-61/+199
| | | | | (#107712) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>