fa26245 | Christian Heimes | 25 October 2021, 08:25:27 UTC | bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179) The :mod:`math` and :mod:`cmath` implementation now require a C99 compatible ``libm`` and no longer ship with workarounds for missing acosh, asinh, expm1, and log1p functions. The changeset also removes ``_math.c`` and moves the last remaining workaround into ``_math.h``. This simplifies static builds with ``Modules/Setup`` and resolves symbol conflicts. Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Brett Cannon <brett@python.org> Signed-off-by: Christian Heimes <christian@python.org> | 25 October 2021, 08:25:27 UTC |
51ed2c5 | Tim Peters | 25 October 2021, 03:27:24 UTC | bpo-45530: speed listobject.c's unsafe_tuple_compare() (GH-29076) Keep track of whether unsafe_tuple_compare() calls are resolved by the very first tuple elements, and adjust strategy accordingly. This can significantly cut the number of calls made to the full-blown PyObject_RichCompareBool(), and especially when duplicates are rare. Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 25 October 2021, 03:27:24 UTC |
07236d5 | Nikita Sobolev | 24 October 2021, 13:06:32 UTC | bpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150) Refs https://github.com/python/cpython/pull/29147 Automerge-Triggered-By: GH:ericvsmith | 24 October 2021, 13:06:32 UTC |
9e05da6 | William Andrea | 23 October 2021, 16:24:02 UTC | Expand about soft keywords in the docs for keyword.py (GH-29139) Add link at the top and fix the existing links to point to the "[soft keywords](https://docs.python.org/3.10/reference/lexical_analysis.html#soft-keywords)" section created in the Python 3.10 docs. Changes should be backported to 3.10 as well. | 23 October 2021, 16:24:02 UTC |
8ce20bb | Filipe Laíns | 23 October 2021, 15:47:55 UTC | bpo-45516: add protocol description to the TraversableResources documentation (#29173) Signed-off-by: Filipe Laíns <lains@riseup.net> | 23 October 2021, 15:47:55 UTC |
17c6104 | Eric Snow | 22 October 2021, 23:20:03 UTC | bpo-45506: Normalize _PyPathConfig.stdlib_dir when calculated. (#29040) The recently added PyConfig.stdlib_dir was being set with ".." entries. When __file__ was added for from modules this caused a problem on out-of-tree builds. This PR fixes that by normalizing "stdlib_dir" when it is calculated in getpath.c. https://bugs.python.org/issue45506 | 22 October 2021, 23:20:03 UTC |
f30ad65 | Irit Katriel | 22 October 2021, 23:13:46 UTC | bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569) | 22 October 2021, 23:13:46 UTC |
4bc5473 | Nikita Sobolev | 22 October 2021, 21:57:24 UTC | bpo-45574: fix warning about `print_escape` being unused (GH-29172) It used to be like this: <img width="1232" alt="Снимок экрана 2021-10-22 в 23 07 40" src="https://user-images.githubusercontent.com/4660275/138516608-fef6ec01-a96a-40f4-81ef-52265b0f536b.png"> Quick `grep` tells that it is just used in one place under `Py_DEBUG`: https://github.com/python/cpython/blame/f6e8b80d20159596cf641305bad3a833bedd2f4f/Parser/tokenizer.c#L1047-L1051 <img width="752" alt="Снимок экрана 2021-10-22 в 23 08 09" src="https://user-images.githubusercontent.com/4660275/138516684-ea503136-1e92-48a5-95bb-419e190d5866.png"> I am not sure, but it also looks like a private thing, it should not affect other users. Automerge-Triggered-By: GH:pablogsal | 22 October 2021, 21:57:24 UTC |
423fa1c | Dennis Sweeney | 22 October 2021, 21:24:08 UTC | bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) * Use Py_EnterRecursiveCall() in issubclass() Reviewed-by: Gregory P. Smith <greg@krypto.org> [Google] | 22 October 2021, 21:24:08 UTC |
f6e8b80 | Christian Heimes | 22 October 2021, 18:02:54 UTC | bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161) | 22 October 2021, 18:02:54 UTC |
ec93721 | Christian Heimes | 22 October 2021, 16:28:23 UTC | bpo-45570: Simplify setup macros for pyexpat (GH-29159) * ``HAVE_EXPAT_CONFIG_H`` is not used by our code and not used by system-wide expat header files * ``USE_PYEXPAT_CAPI`` is no longer used by our code * ``XML_POOR_ENTROPY`` should be defined in expat_config.h Signed-off-by: Christian Heimes <christian@python.org> | 22 October 2021, 16:28:23 UTC |
b781cc3 | Serhiy Storchaka | 22 October 2021, 14:14:58 UTC | bpo-45502: Fix test_shelve (GH-29003) Run test_shelve with all underlying dbm implementations and pickle protocols. Also make test_shelve discoverable. | 22 October 2021, 14:14:58 UTC |
03e9f5d | Christian Heimes | 22 October 2021, 13:36:28 UTC | bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157) setup.py no longer defines Py_BUILD_CORE_MODULE. Instead every module defines the macro before #include "Python.h" unless Py_BUILD_CORE_BUILTIN is already defined. Py_BUILD_CORE_BUILTIN is defined for every module that is built by Modules/Setup. The PR also simplifies Modules/Setup. Makefile and makesetup already define Py_BUILD_CORE_BUILTIN and include Modules/internal for us. Signed-off-by: Christian Heimes <christian@python.org> | 22 October 2021, 13:36:28 UTC |
86dfb55 | Pablo Galindo Salgado | 22 October 2021, 08:52:24 UTC | bpo-45562: Only show debug output from the parser in debug builds (GH-29140) | 22 October 2021, 08:52:24 UTC |
276468d | Petr Viktorin | 22 October 2021, 08:12:06 UTC | bpo-43795: Add a test for Stable ABI symbol availability using ctypes (GH-26354) This is a cross-platform check that the symbols are actually exported in the ABI, not e.g. hidden in a macro. Caveat: PyModule_Create2 & PyModule_FromDefAndSpec2 are skipped. These aren't exported on some of our buildbots. This is a bug (bpo-44133). This test now makes sure all the others don't regress. | 22 October 2021, 08:12:06 UTC |
843b890 | Gregory P. Smith | 22 October 2021, 01:22:25 UTC | bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127) Raise RLIMIT_NOFILE in test.libregrtest. On macOS the default is often too low for our testsuite to succeed. Co-authored by reviewer: Victor Stinner | 22 October 2021, 01:22:25 UTC |
01cf4fb | Brett Cannon | 22 October 2021, 00:07:26 UTC | bpo-45548: Make `Modules/Setup` easier to read (GH-29143) | 22 October 2021, 00:07:26 UTC |
098a33f | Zachary Ware | 22 October 2021, 00:02:12 UTC | bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141) | 22 October 2021, 00:02:12 UTC |
83f202a | Dong-hee Na | 21 October 2021, 23:20:43 UTC | bpo-43706: Use PEP 590 vectorcall to speed up enumerate() (GH-25154) | 21 October 2021, 23:20:43 UTC |
37fad7d | Dong-hee Na | 21 October 2021, 22:58:04 UTC | bpo-44019: Add test_all_exported_names for operator module (GH-29124) | 21 October 2021, 22:58:04 UTC |
d1b2477 | Mark Dickinson | 21 October 2021, 22:09:47 UTC | bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 21 October 2021, 22:09:47 UTC |
5137538 | andrei kulakov | 21 October 2021, 21:13:37 UTC | bpo-41983: add availability info to socket docs (GH-27519) * add availability info to AF_PACKET section * add availability for AF_QIPCRTR as well | 21 October 2021, 21:13:37 UTC |
0224b71 | Neil Schemenauer | 21 October 2021, 21:05:46 UTC | bpo-45526: obmalloc radix use 64 addr bits (GH-29062) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 21 October 2021, 21:05:46 UTC |
887a557 | Mark Dickinson | 21 October 2021, 20:57:49 UTC | bpo-44344: Document that pow can return a complex number for non-complex inputs. (GH-27853) Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 21 October 2021, 20:57:49 UTC |
087f089 | Eric V. Smith | 21 October 2021, 20:42:55 UTC | bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129) | 21 October 2021, 20:42:55 UTC |
3754f55 | Ryan Mast | 21 October 2021, 20:34:18 UTC | Add workflow_dispatch trigger to GHA workflows (GH-27873) | 21 October 2021, 20:34:18 UTC |
add46f8 | E-Paine | 21 October 2021, 20:25:52 UTC | bpo-45160: Ttk optionmenu only set variable once (GH-28291) | 21 October 2021, 20:25:52 UTC |
0c4c2e6 | Nikita Sobolev | 21 October 2021, 20:16:50 UTC | Move several typing tests to a proper class, refs GH-28563 (GH-29126) | 21 October 2021, 20:16:50 UTC |
311910b | Neil Schemenauer | 21 October 2021, 13:38:36 UTC | bpo-45521: Fix a bug in the obmalloc radix tree code. (GH-29051) MAP_BOT_LENGTH was incorrectly used to compute MAP_TOP_MASK instead of MAP_TOP_LENGTH. On 64-bit machines, the error causes the tree to hold 46-bits of virtual addresses, rather than the intended 48-bits. | 21 October 2021, 13:38:36 UTC |
9942f42 | Christian Heimes | 21 October 2021, 13:12:20 UTC | bpo-45522: Allow to disable freelists on build time (GH-29056) Freelists for object structs can now be disabled. A new ``configure`` option ``--without-freelists`` can be used to disable all freelists except empty tuple singleton. Internal Py*_MAXFREELIST macros can now be defined as 0 without causing compiler warnings and segfaults. Signed-off-by: Christian Heimes <christian@python.org> | 21 October 2021, 13:12:20 UTC |
5a14f71 | Thomas | 21 October 2021, 10:19:20 UTC | bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) | 21 October 2021, 10:19:20 UTC |
a53456e | Kreus Amredes | 21 October 2021, 10:05:36 UTC | bpo-44019: Add operator.call() to __all__ for the operator module (GH-29110) | 21 October 2021, 10:05:36 UTC |
8a310dd | Petr Viktorin | 21 October 2021, 09:46:20 UTC | bpo-45315: PyType_FromSpec: Copy spec->name and have the type own the memory for its name (GH-29103) | 21 October 2021, 09:46:20 UTC |
2cbf50e | Ken Jin | 21 October 2021, 08:46:48 UTC | bpo-44220: Export PyStructSequence_UnnamedField in the limited API (GH-26331) | 21 October 2021, 08:46:48 UTC |
7c4d961 | Ethan Furman | 21 October 2021, 03:32:11 UTC | bpo-44174: [Enum] add reference to name mangling (GH-29116) | 21 October 2021, 03:32:11 UTC |
dd86f63 | Brett Cannon | 21 October 2021, 00:34:49 UTC | bpo-45548: add some missing entries to `Modules/Setup` (GH-29115) Also remove a duplicate entry for `_weakref`. | 21 October 2021, 00:34:49 UTC |
876fc7f | Barry Warsaw | 20 October 2021, 21:05:29 UTC | bpo-35673: Add a public alias for namespace package __loader__ attribute (#29049) Rename namespace package __loader__ class to be public. Make the old name, i.e. _NamespaceLoader, an alias for the public name, for backward compatibility. | 20 October 2021, 21:05:29 UTC |
6270d3e | Kyungmin Lee | 20 October 2021, 19:54:41 UTC | bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) An object implementing the os.PathLike protocol can represent a file system path as a str or bytes object. Therefore, _infer_return_type function should infer os.PathLike[str] object as str type and os.PathLike[bytes] object as bytes type. | 20 October 2021, 19:54:41 UTC |
bc85eb7 | Mark Shannon | 20 October 2021, 18:53:48 UTC | bpo-45527: Don't count cache hits, just misses. (GH-29092) | 20 October 2021, 18:53:48 UTC |
d89fb9a | Hugo van Kemenade | 20 October 2021, 18:48:55 UTC | bpo-45320: Remove long-deprecated inspect methods (GH-28618) | 20 October 2021, 18:48:55 UTC |
d8e1819 | Zackery Spytz | 20 October 2021, 17:14:59 UTC | bpo-41374: Remove obsolete exclusion of netinet/tcp.h on Cygwin (GH-21649) | 20 October 2021, 17:14:59 UTC |
d2cd5ee | Jeong YunWon | 20 October 2021, 17:09:03 UTC | bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100) | 20 October 2021, 17:09:03 UTC |
dff0b71 | Łukasz Langa | 20 October 2021, 16:54:31 UTC | bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile (GH-29094) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> | 20 October 2021, 16:54:31 UTC |
1dfac27 | Gregory P. Smith | 20 October 2021, 16:17:52 UTC | Cleanup a couple of comments left on PR 28775 post-merge. (GH-29079) | 20 October 2021, 16:17:52 UTC |
81520fe | Christian Heimes | 20 October 2021, 15:18:34 UTC | bpo-45536: Check OpenSSL APIs in configure (GH-29088) | 20 October 2021, 15:18:34 UTC |
d9e1dae | Alex Waygood | 20 October 2021, 15:15:59 UTC | Add PEPs 593 & 647 to list of PEPs at top of typing docs (GH-29097) | 20 October 2021, 15:15:59 UTC |
6ef4507 | Barry Warsaw | 20 October 2021, 15:08:57 UTC | Add a comment about how to fix bogus test_host_resolution_bad_address failures (#29085) | 20 October 2021, 15:08:57 UTC |
8863a0f | Mark Shannon | 20 October 2021, 15:08:28 UTC | bpo-44525: Specialize simple Python calls. (GH-29033) | 20 October 2021, 15:08:28 UTC |
8d6740f | Serhiy Storchaka | 20 October 2021, 14:36:27 UTC | bpo-45229: Make doctest tests discoverable (GH-28986) | 20 October 2021, 14:36:27 UTC |
a774285 | Thomas Grainger | 20 October 2021, 13:51:07 UTC | bpo-25625: [doc] fix async/aync typo (GH-29091) | 20 October 2021, 13:51:07 UTC |
98fa3b5 | Petr Viktorin | 20 October 2021, 09:32:14 UTC | bpo-45474: Exclude all of marshal.h if Py_LIMITED_API is defined (GH-29061) Also, reword the What's New messages: this doesn't change the limited API, it only brings the Py_LIMITED_API macro closer to the ideal of only allowing the limited API. Automerge-Triggered-By: GH:encukou | 20 October 2021, 09:32:14 UTC |
085ccb0 | Zachary Ware | 20 October 2021, 03:34:23 UTC | bpo-38371: Remove remaining use of tk.split from bigmem tcl test (GH-29082) | 20 October 2021, 03:34:23 UTC |
4fe454c | Zachary Ware | 20 October 2021, 02:54:19 UTC | bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) Since v8.6.11, a few configuration options seem to accept an empty value where they did not previously; particularly the `type` of a `Menu` widget, and the `compound` of any ttk widget with a label. Providing an explicit expected error message to `checkEnumParam` bypasses the check of an empty value, which no longer raises `TclError`. | 20 October 2021, 02:54:19 UTC |
3163e68 | Ken Jin | 19 October 2021, 23:16:36 UTC | bpo-44525: Specialize ``CALL_FUNCTION`` for C function calls (GH-26934) | 19 October 2021, 23:16:36 UTC |
3592980 | Filipe Laíns | 19 October 2021, 22:19:27 UTC | bpo-25625: add contextlib.chdir (GH-28271) Added non parallel-safe :func:`~contextlib.chdir` context manager to change the current working directory and then restore it on exit. Simple wrapper around :func:`~os.chdir`. Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 19 October 2021, 22:19:27 UTC |
ad6d162 | Alex Waygood | 19 October 2021, 20:30:27 UTC | bpo-39679: Add tests for classmethod/staticmethod singledispatchmethods (GH-29034) In Python 3.8 and 3.9, stacking `@functools.singledispatchmethod` on top of `@classmethod` or `@staticmethod` caused an exception to be raised if the method was registered using type-annotations rather than `@method.register(int)`. This was not caught by unit tests, however, as the tests only tested the `@method.register(int)` way of registering additional implementations. The bug is no longer present in Python 3.10+, but `test_functools.py` is still lacking regression tests for these cases. This commit adds these test cases. | 19 October 2021, 20:30:27 UTC |
f4b1244 | Eric Snow | 19 October 2021, 20:11:16 UTC | bpo-45506: Go back to not running most of test_embed in out-of-tree builds. (gh-29063) In gh-28954 I adjusted how test_embed determines if it should be skipped. That broke out-of-tree builds. This change fixes them. https://bugs.python.org/issue45506 | 19 October 2021, 20:11:16 UTC |
a106343 | Pablo Galindo Salgado | 19 October 2021, 19:24:12 UTC | bpo-45494: Fix parser crash when reporting errors involving invalid continuation characters (GH-28993) There are two errors that this commit fixes: * The parser was not correctly computing the offset and the string source for E_LINECONT errors due to the incorrect usage of strtok(). * The parser was not correctly unwinding the call stack when a tokenizer exception happened in rules involving optionals ('?', [...]) as we always make them return valid results by using the comma operator. We need to check first if we don't have an error before continuing. | 19 October 2021, 19:24:12 UTC |
bda69ab | Julien Palard | 19 October 2021, 19:13:24 UTC | [doc]: Fix missing space in c-api/init.rst and add rstlint rule (GH-28988) | 19 October 2021, 19:13:24 UTC |
975b94b | Serhiy Storchaka | 19 October 2021, 19:11:28 UTC | bpo-45500: Rewrite test_dbm (GH-29002) * Generate test classes at import time. It allows to filter them when run with unittest. E.g: "./python -m unittest test.test_dbm.TestCase_gnu -v". * Create a database class in a new directory which will be removed after test. It guarantees that all created files and directories be removed and will not conflict with other dbm tests. * Restore dbm._defaultmod after tests. Previously it was set to the last dbm module (dbm.dumb) which affected other tests. * Enable the whichdb test for dbm.dumb. * Move test_keys to the correct test class. It does not test whichdb(). * Remove some outdated code and comments. | 19 October 2021, 19:11:28 UTC |
236e301 | Filipe Laíns | 19 October 2021, 18:42:13 UTC | bpo-42174: fallback to sane values if the columns or lines are 0 in get_terminal_size (GH-29046) I considered only falling back when both were 0, but that still seems wrong, and the highly popular rich[1] library does it this way, so I thought we should probably inherit that behavior. [1] https://github.com/willmcgugan/rich Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 19 October 2021, 18:42:13 UTC |
5742416 | Serhiy Storchaka | 19 October 2021, 18:40:30 UTC | bpo-42222: Improve tests for invalid argument types in randrange() (GH-29021) | 19 October 2021, 18:40:30 UTC |
fdbdf3f | Gregory P. Smith | 19 October 2021, 18:28:27 UTC | bpo-40360: Make the 2to3 deprecation more obvious. (GH-29064) | 19 October 2021, 18:28:27 UTC |
7bafa0c | Filipe Laíns | 19 October 2021, 18:18:50 UTC | bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | 19 October 2021, 18:18:50 UTC |
8e40ca1 | Paul Ganssle | 19 October 2021, 18:09:41 UTC | Add zoneinfo to the datetime documentation (GH-29038) We should have done this way back when 3.9 was released, but it fell off the radar. Co-authored-by: Paul Ganssle <git@m.ganssle.io> | 19 October 2021, 18:09:41 UTC |
6e35b09 | Ken Jin | 19 October 2021, 16:25:31 UTC | Record cache hits for BINARY_SUBSCR specializations (GH-29060) | 19 October 2021, 16:25:31 UTC |
09c04e7 | Erlend Egeberg Aasland | 19 October 2021, 13:44:45 UTC | bpo-42064: Add module backref to `sqlite3` callback context (GH-28242) | 19 October 2021, 13:44:45 UTC |
8702b66 | Erlend Egeberg Aasland | 19 October 2021, 10:59:57 UTC | bpo-43851: Build SQLite with SQLITE_OMIT_AUTOINIT on Windows (GH-25414) | 19 October 2021, 10:59:57 UTC |
52af075 | Victor Stinner | 19 October 2021, 10:10:22 UTC | bpo-45434: Only exclude <stdlib.h> in Python 3.11 limited C API (GH-29027) The Python 3.11 limited C API no longer includes stdlib.h, stdio.h, string.h and errno.h. * Exclude Py_MEMCPY() from Python 3.11 limited C API. * xxlimited C extension is now built with Python 3.11 limited C API. | 19 October 2021, 10:10:22 UTC |
0a4c82d | Inada Naoki | 19 October 2021, 02:51:48 UTC | bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e. | 19 October 2021, 02:51:48 UTC |
c029567 | Filipe Laíns | 19 October 2021, 00:52:28 UTC | bpo-45516: use documentation links in TraversableResources' description (GH-29045) I think this makes the documentation much more digestible :) Signed-off-by: Filipe Laíns <lains@riseup.net> | 19 October 2021, 00:52:28 UTC |
5f09bb0 | Victor Stinner | 19 October 2021, 00:04:52 UTC | bpo-35134: Add Include/cpython/longobject.h (GH-29044) Move Include/longobject.h non-limited API to a new Include/cpython/longobject.h header file. Move the following definitions to the internal C API: * _PyLong_DigitValue * _PyLong_FormatAdvancedWriter() * _PyLong_FormatWriter() | 19 October 2021, 00:04:52 UTC |
aad88d3 | Victor Stinner | 18 October 2021, 23:31:57 UTC | bpo-35134: Split warnings.h and weakrefobject.h (GH-29042) Split header files to move the non-limited API to Include/cpython/: * Include/warnings.h => Include/cpython/warnings.h * Include/weakrefobject.h => Include/cpython/weakrefobject.h Exclude PyWeakref_GET_OBJECT() from the limited C API. It never worked since the PyWeakReference structure is opaque in the limited C API. Move _PyWarnings_Init() and _PyErr_WarnUnawaitedCoroutine() to the internal C API. | 18 October 2021, 23:31:57 UTC |
4d03de3 | Filipe Laíns | 18 October 2021, 22:58:13 UTC | bpo-45516: add protocol description to the Traversable documentation (#29039) * bpo-45516: add protocol description to the Traversable documentation Signed-off-by: Filipe Laíns <lains@riseup.net> * Update Doc/library/importlib.rst Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * Update Lib/importlib/abc.py * Update Doc/library/importlib.rst Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> | 18 October 2021, 22:58:13 UTC |
6a533a4 | andrei kulakov | 18 October 2021, 18:26:23 UTC | bpo-45221: Fix handling of LDFLAGS and CPPFLAGS options in setup.py (GH-29031) | 18 October 2021, 18:26:23 UTC |
034f607 | Victor Stinner | 18 October 2021, 16:40:43 UTC | bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032) * Rename _PyThreadState_DisableTracing() to _PyThreadState_PauseTracing() * Rename _PyThreadState_ResetTracing() to _PyThreadState_ResumeTracing() | 18 October 2021, 16:40:43 UTC |
70945d5 | Mark Shannon | 18 October 2021, 08:57:24 UTC | bpo-45256: Avoid C calls for most Python to Python calls. (GH-28937) * Avoid making C calls for most calls to Python functions. * Change initialize_locals(steal=true) and _PyTuple_FromArraySteal to consume the argument references regardless of whether they succeed or fail. | 18 October 2021, 08:57:24 UTC |
fd03917 | Dong-hee Na | 18 October 2021, 08:31:18 UTC | bpo-45434: Include stdlib.h for specialize stat (GH-29015) | 18 October 2021, 08:31:18 UTC |
54a4e1b | Raymond Hettinger | 17 October 2021, 23:20:34 UTC | Improve multiserver queue recipe (GH-29012) | 17 October 2021, 23:20:34 UTC |
b3f0cea | Serhiy Storchaka | 17 October 2021, 12:06:40 UTC | bpo-45229: Make test_http_cookiejar discoverable (GH-29004) | 17 October 2021, 12:06:40 UTC |
a27f53b | Benjamin Szőke | 17 October 2021, 11:59:22 UTC | Fix contributor person name in rst files (GH-29005) | 17 October 2021, 11:59:22 UTC |
42ac06d | Terry Jan Reedy | 16 October 2021, 22:44:00 UTC | bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) Since the keyword list is frozen, only compute it once per session. The colorizer already handles context keywords. | 16 October 2021, 22:44:00 UTC |
b9cdd0f | Eric Snow | 16 October 2021, 19:16:08 UTC | bpo-45020: Default to using frozen modules unless running from source tree. (gh-28940) The default was "off". Switching it to "on" means users get the benefit of frozen stdlib modules without having to do anything. There's a special-case for running-in-source-tree, so contributors don't get surprised when their stdlib changes don't get used. https://bugs.python.org/issue45020 | 16 October 2021, 19:16:08 UTC |
fe0d9e2 | Pablo Galindo Salgado | 16 October 2021, 17:27:43 UTC | bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855) | 16 October 2021, 17:27:43 UTC |
5afa0a4 | Raymond Hettinger | 16 October 2021, 15:16:53 UTC | bpo-42222: Remove deprecated support for non-integer values (GH-28983) | 16 October 2021, 15:16:53 UTC |
15ad52f | Dong-hee Na | 16 October 2021, 15:12:58 UTC | bpo-45489: Update ForwardRef to support | operator. (GH-28991) | 16 October 2021, 15:12:58 UTC |
4ecd119 | Luca Chiodini | 16 October 2021, 12:55:12 UTC | bpo-45463: Clarify that global statements allows multiple names (GH-28851) The global statement allows specifying a list of identifiers (https://docs.python.org/3/reference/simple_stmts.html#the-global-statement). The "Execution model" chapter described the global statement as if it only allowed one single name. Pluralize "name" in the appropriate places. | 16 October 2021, 12:55:12 UTC |
11b2ae7 | srinivasan | 15 October 2021, 21:24:25 UTC | bpo-45442: Add deactivate step to venv tutorial. (GH-28981) @vsajip Sorry for the trouble—made a [fairly significant] git error in the previous PR. Have edited the patch as you had said in #28959. Automerge-Triggered-By: GH:vsajip | 15 October 2021, 21:24:25 UTC |
00ffc45 | Victor Stinner | 15 October 2021, 17:45:34 UTC | bpo-45440: Remove pymath.c fallbacks (GH-28977) Remove fallbacks for missing round(), copysign() and hypot() in Python/pymath.c. Python now requires these functions to build. These fallbacks were needed on Visual Studio 2012 and older. They are no longer needed since Visual Stuido 2013. Python is now built with Visual Studio 2017 or newer since Python 3.6. | 15 October 2021, 17:45:34 UTC |
51f8196 | Victor Stinner | 15 October 2021, 17:44:35 UTC | bpo-30459: Use (void) in macros setting variables (GH-28982) Convert the result of macros setting variables to void to avoid risks of misusing them: * _PyGCHead_SET_NEXT() * asdl_seq_SET() * asdl_seq_SET_UNTYPED() | 15 October 2021, 17:44:35 UTC |
547d26a | Victor Stinner | 15 October 2021, 14:06:30 UTC | bpo-43760: Add PyThreadState_EnterTracing() (GH-28542) Add PyThreadState_EnterTracing() and PyThreadState_LeaveTracing() functions to the limited C API to suspend and resume tracing and profiling. Add an unit test on the PyThreadState C API to _testcapi. Add also internal _PyThreadState_DisableTracing() and _PyThreadState_ResetTracing(). | 15 October 2021, 14:06:30 UTC |
354c352 | Victor Stinner | 15 October 2021, 13:21:21 UTC | bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975) Rename Include/namespaceobject.h to Include/internal/pycore_namespace.h. The _testmultiphase extension is now built with the Py_BUILD_CORE_MODULE macro defined to access _PyNamespace_Type. object.c: remove unused "pycore_context.h" include. | 15 October 2021, 13:21:21 UTC |
a7f8dfd | Victor Stinner | 15 October 2021, 11:43:44 UTC | bpo-44113: Move the What's New entry to Deprecate section (GH-28974) | 15 October 2021, 11:43:44 UTC |
79bc5e1 | Pablo Galindo Salgado | 15 October 2021, 11:18:22 UTC | bpo-45445: Remove incorrectly commited test file (GH-28972) | 15 October 2021, 11:18:22 UTC |
105582e | Victor Stinner | 15 October 2021, 11:06:05 UTC | bpo-45434: Remove Include/eval.h header file (GH-28973) Move Include/eval.h content into Include/ceval.h and Include/cpython/ceval.h, and remove Include/eval.h. | 15 October 2021, 11:06:05 UTC |
063abd9 | Victor Stinner | 15 October 2021, 09:56:34 UTC | bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969) Move the interpreteridobject.h header file from Include/ to Include/internal/. It only provides private functions. | 15 October 2021, 09:56:34 UTC |
59a633d | Graham Inggs | 15 October 2021, 09:38:55 UTC | bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848) Strip trailing '\n'. | 15 October 2021, 09:38:55 UTC |
8e5de40 | Victor Stinner | 15 October 2021, 07:46:29 UTC | bpo-35134: Move classobject.h to Include/cpython/ (GH-28968) Move classobject.h, context.h, genobject.h and longintrepr.h header files from Include/ to Include/cpython/. Remove redundant "#ifndef Py_LIMITED_API" in context.h. Remove explicit #include "longintrepr.h" in C files. It's not needed, Python.h already includes it. | 15 October 2021, 07:46:29 UTC |
9ce9cfe | Benjamin Peterson | 15 October 2021, 06:10:52 UTC | bpo-45479: Futher simplify Py_UniversalNewlineFgets. (GH-28967) Thank you to Eryk Sun for the suggestions in https://github.com/python/cpython/pull/28965#discussion_r729527143. | 15 October 2021, 06:10:52 UTC |
160c38d | Benjamin Peterson | 15 October 2021, 04:28:52 UTC | closes bpo-45479: Degunkify Py_UniversalNewlineFgets. (GH-28965) Remove dead variables and control flow. | 15 October 2021, 04:28:52 UTC |