summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-93018: Fix for the compatibility problems with expat (gh-93900)Matěj Cepl2022-12-072-15/+10
|
* [Enum] Remove unused code from `test_enum.py` (GH-96986)Nikita Sobolev2022-12-071-14/+0
|
* gh-100050: Fix an assertion error when raising unclosed parenthesis errors ↵Pablo Galindo Salgado2022-12-063-0/+22
| | | | | in the tokenizer (GH-100065) Automerge-Triggered-By: GH:pablogsal
* PyUnicode_KIND() uses _Py_RVALUE() (#100060)Victor Stinner2022-12-061-1/+1
| | | | The PyUnicode_KIND() macro is modified to use _Py_RVALUE(), so it can no longer be used as a l-value.
* gh-94943: [Enum] improve repr() when inheriting from a dataclass (GH-99740)Ethan Furman2022-12-065-4/+102
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Post 3.12.0a3Thomas Wouters2022-12-061-1/+1
|
* Python 3.12.0a3v3.12.0a3Thomas Wouters2022-12-0684-193/+847
|
* gh-93453: No longer create an event loop in get_event_loop() (#98440)Serhiy Storchaka2022-12-0618-251/+114
| | | | | | | | | | | | | | | asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* GH-99729: Unlink frames before clearing them (GH-100030)Brandt Bucher2022-12-066-11/+60
|
* bpo-37860: re-add netlify.toml to set up deploy previews for docs (#92852)Ashwin Ramaswami2022-12-063-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | * Revert "bpo-46184: remove `netlify.toml` (#30272)" This reverts commit fbaf2e604cd354f1ebc6be029480010c6715a8ca. * Delete runtime.txt * Create runtime.txt * Delete runtime.txt * Update netlify.toml * Update netlify.toml * Add netlify badge * Update Doc/tools/templates/layout.html Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update layout.html Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-100008: VS 2017 is required since Python 3.11 (#100045)Victor Stinner2022-12-061-0/+1
|
* GH-100026: Include the number of raw input files in summarize_stats.py ↵Michael Droettboom2022-12-061-0/+4
| | | | (GH-100027)
* gh-99957: Add `frozen_default` parameter on `dataclass_transform` (#99958)Erik De Bonte2022-12-064-1/+13
|
* gh-100001: Remove doc typo, add versionadded (#100042)Gregory P. Smith2022-12-051-1/+3
| | | gh-100001: Remove new doc typo, add versionadded.
* gh-100001: Also escape \s in http.server log messages. (#100038)Gregory P. Smith2022-12-053-0/+8
| | | | | | | Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so that it is technically possible to parse the line and reconstruct what the original data was. Without this a \xHH is ambiguious as to if it is a hex replacement we put in or the characters r"\x" came through in the original request line.
* gh-99984: Fix Compiler Warnings (#100036)Eric Snow2022-12-051-2/+6
| | | https://github.com/python/cpython/issues/99984
* Use sphinxext-opengraph to generate OpenGraph metadata (#99931)Hugo van Kemenade2022-12-054-4/+33
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-100001: Omit control characters in http.server stderr logs. (#100002)Gregory P. Smith2022-12-054-2/+43
| | | Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
* gh-99741: Implement Multi-Phase Init for the _xxsubinterpreters Module ↵Eric Snow2022-12-056-190/+384
| | | | | | | (gh-99742) _xxsubinterpreters is an internal module used for testing. https://github.com/python/cpython/issues/99741
* dataclasses.rst: Prevent horizontal scrolling (gh-100025)Ram Rachum2022-12-051-1/+2
|
* bpo-44817: Ignore additional errors in ntpath.realpath (GH-27574)Michael Förderer2022-12-052-1/+6
|
* gh-98680: Add PyBUF_* constants to the Limited API listing (GH-100018)Petr Viktorin2022-12-052-0/+47
| | | | | | ``PyBUF_*`` constants are marked as part of Limited API of Python 3.11+. These were available in 3.11.0 with `Py_LIMITED_API` defined for 3.11, and are necessary to use the buffer API. Omitting them in `stable_abi.toml` was a mistake.
* gh-60203: Revert changes in cycle.__setstate__ (#99982)Serhiy Storchaka2022-12-052-2/+39
| | | | In case if only True/False be supported as boolean arguments in future, we should continue to support 1/0 here.
* gh-99892: test_unicodedata: skip test on download failure (#100011)Victor Stinner2022-12-052-3/+6
| | | | Skip test_normalization() of test_unicodedata if it fails to download NormalizationTest.txt file from pythontest.net.
* gh-100008: Document Python build requirements (#100009)Victor Stinner2022-12-052-1/+47
| | | | Document also configure --without-freelists option added to Python 3.11.
* gh-100005: Skip test_script_as_dev_fd() on FreeBSD (#100006)Victor Stinner2022-12-052-1/+4
| | | | On FreeBSD, skip test_script_as_dev_fd() of test_cmd_line_script if fdescfs is not mounted (at /dev/fd).
* gh-93464: [Enum] Add versionchanged tag (#99997)Ethan Furman2022-12-051-0/+5
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* no-issue: Fix typo in pycore_object.h (gh-99994)Ikko Ashimine2022-12-051-1/+1
|
* gh-98248: Normalizing the error messages in function struct.pack (GH-98252)Felix Ye2022-12-043-72/+179
| | | | Provide consistent and informative error messages in function struct.pack when its integral arguments are not in range.
* [Enum] Fix typos in the documentation (GH-99960)Géry Ogam2022-12-041-26/+26
|
* gh-98458: unittest: bugfix for infinite loop while handling chained ↵AlexTate2022-12-043-1/+60
| | | | | | | exceptions that contain cycles (#98459) * Bugfix addressing infinite loop while handling self-referencing chained exception in TestResult._clean_tracebacks() * Bugfix extended to properly handle exception cycles in _clean_tracebacks. The "seen" set follows the approach used in the TracebackException class (thank you @iritkatriel for pointing it out) * adds a test for a single chained exception that holds a self-loop in its __cause__ and __context__ attributes
* GH-91054: Reset static events counts in code watchers tests (#99978)Itamar Ostricher2022-12-042-3/+12
|
* gh-60203: Always pass True/False as boolean arguments in tests (GH-99983)Serhiy Storchaka2022-12-045-8/+9
| | | Unless we explicitly test non-bool values.
* gh-85747: "Preface" section of asyncio-eventloop.rst: Switch to active voice ↵Brian Skinn2022-12-041-7/+10
| | | | and suggest other edits (#99784)
* bpo-15999: Accept arbitrary values for boolean parameters. (#15609)Serhiy Storchaka2022-12-0352-302/+297
| | | builtins and extension module functions and methods that expect boolean values for parameters now accept any Python object rather than just a bool or int type. This is more consistent with how native Python code itself behaves.
* gh-99934: test_marshal.py: add more elements in test_deterministic_sets ↵Alexander Kanavin2022-12-032-1/+2
| | | | | | (GH-99935) Existing elements do produce different output on x86_64, but they do not on x86. Let's make the data longer to ensure it differs.
* GH-66285: remove redundant `time.sleep` from `test_fork_signal_handling` ↵Kumar Aditya2022-12-031-1/+0
| | | | (GH-99963)
* GH-98831: Support cache effects in super- and macro instructions (#99601)Guido van Rossum2022-12-034-272/+482
|
* gh-99741: Clean Up the _xxsubinterpreters Module (gh-99940)Eric Snow2022-12-024-310/+652
| | | | | This cleanup up resolves a few subtle bugs and makes the implementation for multi-phase init much cleaner. https://github.com/python/cpython/issues/99741
* gh-99955: standardize return values of functions in assembler and optimizer. ↵Irit Katriel2022-12-021-42/+54
| | | | (#99956)
* gh-99741: Fix the Cross-Interpreter Data API (gh-99939)Eric Snow2022-12-023-25/+88
| | | | | There were some minor issues that showed up while I was working on porting _xxsubinterpreters to multi-phase init. This fixes them. https://github.com/python/cpython/issues/99741
* GH-91054: Add code object watchers API (GH-99859)Itamar Ostricher2022-12-0211-0/+364
| | | | | | * Add API to allow extensions to set callback function on creation and destruction of PyCodeObject Co-authored-by: Ye11ow-Flash <janshah@cs.stonybrook.edu>
* gh-99894: Ensure the local names don't collide with the test file in ↵Pablo Galindo Salgado2022-12-011-6/+6
| | | | | traceback suggestion error checking (#99895) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (GH-99613)Serhiy Storchaka2022-12-014-0/+95
| | | | Previously *consumed was not set in this case.
* Doc: Add summary line to isolation_level & autocommit sqlite3.connect params ↵C.A.M. Gerlach2022-12-011-0/+2
| | | | | | | (#99917) Add summary lines to isolation_level and autocommit connect() params Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* GH-98906 ```re``` module: ```search() vs. match()``` section should mention ↵ram vikram singh2022-11-301-6/+12
| | | | | ```fullmatch()``` (GH-98916) Mention fullmatch along with search and match.
* gh-89189: More compact range iterator (GH-27986)Serhiy Storchaka2022-11-307-50/+88
|
* bpo-47220: Document the optional callback parameter of weakref.WeakMethod ↵Géry Ogam2022-11-302-2/+6
| | | | (GH-25491)
* GH-99905: Fix output of misses in summarize_stats.py execution counts (GH-99906)Michael Droettboom2022-11-301-3/+3
| | | This was an indentation error introduced in 2844aa6a
* gh-99845: PEP 670: Convert PyObject macros to functions (#99850)Victor Stinner2022-11-301-5/+8
| | | | | | | | | Convert macros to static inline functions to avoid macro pitfalls, like duplication of side effects: * _PyObject_SIZE() * _PyObject_VAR_SIZE() The result type is size_t (unsigned).