summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45562: Only show debug output from the parser in debug builds (GH-29140)Pablo Galindo Salgado2021-10-221-0/+2
|
* bpo-43795: Add a test for Stable ABI symbol availability using ctypes (GH-26354)Petr Viktorin2021-10-222-0/+881
| | | | | | | | | 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.
* bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127)Gregory P. Smith2021-10-222-0/+27
| | | | | | | 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
* bpo-45548: Make `Modules/Setup` easier to read (GH-29143)Brett Cannon2021-10-221-196/+115
|
* bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141)Zachary Ware2021-10-221-8/+3
|
* bpo-43706: Use PEP 590 vectorcall to speed up enumerate() (GH-25154)Dong-hee Na2021-10-212-0/+42
|
* bpo-44019: Add test_all_exported_names for operator module (GH-29124)Dong-hee Na2021-10-211-0/+12
|
* bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851)Mark Dickinson2021-10-215-3/+62
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-41983: add availability info to socket docs (GH-27519)andrei kulakov2021-10-211-0/+4
| | | | | * add availability info to AF_PACKET section * add availability for AF_QIPCRTR as well
* bpo-45526: obmalloc radix use 64 addr bits (GH-29062)Neil Schemenauer2021-10-212-20/+38
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-44344: Document that pow can return a complex number for non-complex ↵Mark Dickinson2021-10-211-1/+4
| | | | | inputs. (GH-27853) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)Eric V. Smith2021-10-212-1/+4
|
* Add workflow_dispatch trigger to GHA workflows (GH-27873)Ryan Mast2021-10-213-0/+3
|
* bpo-45160: Ttk optionmenu only set variable once (GH-28291)E-Paine2021-10-213-1/+18
|
* Move several typing tests to a proper class, refs GH-28563 (GH-29126)Nikita Sobolev2021-10-211-16/+16
|
* bpo-45521: Fix a bug in the obmalloc radix tree code. (GH-29051)Neil Schemenauer2021-10-212-1/+4
| | | | | 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.
* bpo-45522: Allow to disable freelists on build time (GH-29056)Christian Heimes2021-10-2115-35/+218
| | | | | | | | 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>
* bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)Thomas2021-10-211-0/+7
|
* bpo-44019: Add operator.call() to __all__ for the operator module (GH-29110)Kreus Amredes2021-10-212-1/+2
|
* bpo-45315: PyType_FromSpec: Copy spec->name and have the type own the memory ↵Petr Viktorin2021-10-215-16/+162
| | | | for its name (GH-29103)
* bpo-44220: Export PyStructSequence_UnnamedField in the limited API (GH-26331)Ken Jin2021-10-215-1/+6
|
* bpo-44174: [Enum] add reference to name mangling (GH-29116)Ethan Furman2021-10-211-1/+2
|
* bpo-45548: add some missing entries to `Modules/Setup` (GH-29115)Brett Cannon2021-10-212-2/+21
| | | Also remove a duplicate entry for `_weakref`.
* bpo-35673: Add a public alias for namespace package __loader__ attribute ↵Barry Warsaw2021-10-207-6/+42
| | | | | | | | (#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.
* bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as ↵Kyungmin Lee2021-10-203-0/+28
| | | | | | | | | 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.
* bpo-45527: Don't count cache hits, just misses. (GH-29092)Mark Shannon2021-10-203-107/+33
|
* bpo-45320: Remove long-deprecated inspect methods (GH-28618)Hugo van Kemenade2021-10-206-260/+48
|
* bpo-41374: Remove obsolete exclusion of netinet/tcp.h on Cygwin (GH-21649)Zackery Spytz2021-10-202-3/+3
|
* bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)Jeong YunWon2021-10-202-2/+5
|
* bpo-45464: [doc] Explain that subclassing multiple exceptions is fragile ↵Łukasz Langa2021-10-202-0/+27
| | | | | | (GH-29094) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Cleanup a couple of comments left on PR 28775 post-merge. (GH-29079)Gregory P. Smith2021-10-202-2/+2
|
* bpo-45536: Check OpenSSL APIs in configure (GH-29088)Christian Heimes2021-10-203-0/+105
|
* Add PEPs 593 & 647 to list of PEPs at top of typing docs (GH-29097)Alex Waygood2021-10-201-1/+1
|
* Add a comment about how to fix bogus test_host_resolution_bad_address ↵Barry Warsaw2021-10-201-2/+4
| | | | failures (#29085)
* bpo-44525: Specialize simple Python calls. (GH-29033)Mark Shannon2021-10-207-60/+176
|
* bpo-45229: Make doctest tests discoverable (GH-28986)Serhiy Storchaka2021-10-202-23/+18
|
* bpo-25625: [doc] fix async/aync typo (GH-29091)Thomas Grainger2021-10-201-1/+1
|
* bpo-45474: Exclude all of marshal.h if Py_LIMITED_API is defined (GH-29061)Petr Viktorin2021-10-203-9/+15
| | | | | 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
* bpo-38371: Remove remaining use of tk.split from bigmem tcl test (GH-29082)Zachary Ware2021-10-201-1/+0
|
* bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077)Zachary Ware2021-10-202-5/+11
| | | | | | | 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`.
* bpo-44525: Specialize ``CALL_FUNCTION`` for C function calls (GH-26934)Ken Jin2021-10-197-50/+365
|
* bpo-25625: add contextlib.chdir (GH-28271)Filipe Laíns2021-10-194-3/+83
| | | | | | | | 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>
* bpo-39679: Add tests for classmethod/staticmethod singledispatchmethods ↵Alex Waygood2021-10-192-0/+44
| | | | | | | | | | | | | (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.
* bpo-45506: Go back to not running most of test_embed in out-of-tree builds. ↵Eric Snow2021-10-191-1/+1
| | | | | | | (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
* bpo-45494: Fix parser crash when reporting errors involving invalid ↵Pablo Galindo Salgado2021-10-195-123/+137
| | | | | | | | | | | | 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.
* [doc]: Fix missing space in c-api/init.rst and add rstlint rule (GH-28988)Julien Palard2021-10-192-7/+14
|
* bpo-45500: Rewrite test_dbm (GH-29002)Serhiy Storchaka2021-10-191-69/+57
| | | | | | | | | | | | * 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.
* bpo-42174: fallback to sane values if the columns or lines are 0 in ↵Filipe Laíns2021-10-193-2/+8
| | | | | | | | | | | | | 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>
* bpo-42222: Improve tests for invalid argument types in randrange() (GH-29021)Serhiy Storchaka2021-10-191-20/+11
|
* bpo-40360: Make the 2to3 deprecation more obvious. (GH-29064)Gregory P. Smith2021-10-192-3/+8
|