summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45829: Specialize BINARY_SUBSCR for __getitem__ implemented in Python. ↵Mark Shannon2021-11-181-0/+1
| | | | (GH-29592)
* bpo-45510: Specialize BINARY_SUBTRACT (GH-29523)Dong-hee Na2021-11-181-0/+2
|
* bpo-45835: Fix race condition in test_queue (#29601)Sam Gross2021-11-181-11/+11
| | | | | | | | | | Some of the tests in test_queue had a race condition in which a non-sentinel value could be enqueued after the final sentinel value leading to not all the inputs being processed (and test failures). This changes feed() to enqueue a sentinel once the inputs are exhausted, which guarantees that the final queued object is a sentinel. This requires the number of feeder threads to match the number of consumer threads, but that's already the case in the relevant tests.
* bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` ↵Dennis Sweeney2021-11-171-0/+31
| | | | (GH-29590)
* bpo-42540: reallocation of id_mutex should not force default allocator ↵Sam Gross2021-11-171-0/+16
| | | | | | | (GH-29564) Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads, the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini and should not force the default raw allocator.
* bpo-45512: Extend `sqlite3` test suite regarding isolation levels (GH-29576)Erlend Egeberg Aasland2021-11-172-3/+124
|
* bpo-28806: Continue work: improve the netrc library (GH-26330)Emmanuel Arias2021-11-172-122/+314
| | | | | | | | | Continue with the improvement of the library netrc Original work and report Xiang Zhang <angwerzx@126.com> * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are ↵Pablo Galindo Salgado2021-11-161-0/+8
| | | | not provided (GH-29582)
* bpo-45126: Harden `sqlite3` connection initialisation (GH-28227)Erlend Egeberg Aasland2021-11-161-0/+38
|
* bpo-45292: Use raw strings for regex in tests (GH-29545)Irit Katriel2021-11-161-3/+3
|
* bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)Victor Stinner2021-11-1514-2346/+19
| | | | | | | | | | | | | | | | Remove the asyncore and asynchat modules, deprecated in Python 3.6: use the asyncio module instead. Remove the smtpd module, deprecated in Python 3.6: the aiosmtpd module can be used instead, it is based on asyncio. * Remove asyncore, asynchat and smtpd documentation * Remove test_asyncore, test_asynchat and test_smtpd * Rename Lib/asynchat.py to Lib/test/support/_asynchat.py * Rename Lib/asyncore.py to Lib/test/support/_asyncore.py * Rename Lib/smtpd.py to Lib/test/support/_smtpd.py * Remove DeprecationWarning from private _asyncore, _asynchat and _smtpd modules * _smtpd: remove deprecated properties
* bpo-45677: Reword first section of `sqlite3` docs (#29326)Erlend Egeberg Aasland2021-11-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-45677: Avoid addressing the reader as 'you' in sqlite3 docs * Adjust wording * Adjust wording again * Typo * Update Doc/library/sqlite3.rst Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> * Address review: adjust wording * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Apply Alex' suggestion, and apply 80 char limit to PR * Minor adjustment Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45512: Raise exception if sqlite3.Connection.__init__ is called with bad ↵Erlend Egeberg Aasland2021-11-151-2/+16
| | | | | | | | | | | | | | | isolation level (#29561) * bpo-45512: Raise sqlite3.Connection.__init__ is called with bad isolation level * Also explicitly test allowed isolation levels * Use subTest for better error messages if something goes wrong * Update Lib/test/test_sqlite3/test_dbapi.py Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-45752: Remove "array" from list of things that cannot be copied in ↵Alex Waygood2021-11-141-2/+2
| | | | | `copy` module docstring (GH-29555) Automerge-Triggered-By: GH:asvetlov
* bpo-45738: Fix computation of error location for invalid continuation (GH-29550)Pablo Galindo Salgado2021-11-141-1/+7
| | | characters in the parser
* bpo-45745: Remove regrtest --findleaks options (GH-29514)Victor Stinner2021-11-124-17/+4
| | | | | Remove the --findleaks command line option of regrtest: use the --fail-env-changed option instead. Since Python 3.7, it was a deprecated alias to the --fail-env-changed option.
* bpo-45711: Re-bump the magic number and update doc (GH-29528)Brandt Bucher2021-11-121-2/+5
|
* bpo-45235: Revert an argparse bugfix that caused a regression (GH-29525)Raymond Hettinger2021-11-122-13/+6
| | | | | * Revert "bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420) (GH-28443)" This reverts commit a18d52269ab6071a605d6c72f6af585a4c533ca4.
* bpo-45773: Stop "optimizing" certain jump patterns (GH-29505)Brandt Bucher2021-11-111-0/+7
|
* bpo-45636: Merge all numeric operators (GH-29482)Brandt Bucher2021-11-116-64/+74
|
* bpo-45696: Deep-freeze selected modules (GH-29118)Guido van Rossum2021-11-111-1/+3
| | | | | | | This gains 10% or more in startup time for `python -c pass` on UNIX-ish systems. The Makefile.pre.in generating code builds on Eric's work for bpo-45020, but the .c file generator is new. Windows version TBD.
* bpo-45754: Use correct SQLite limit when checking statement length (GH-29489)Erlend Egeberg Aasland2021-11-102-7/+7
|
* bpo-45711: remove unnecessary DUP_TOP and POP in exception handling (GH-29495)Irit Katriel2021-11-102-90/+88
|
* [bpo-45765] Fix distribution discovery on empty path. (#29487)Jason R. Coombs2021-11-091-1/+1
|
* bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG ↵Irit Katriel2021-11-092-0/+22
| | | | before a no-arg opcode (GH-29480)
* Factor-out constant calculation. (GH-29491)Raymond Hettinger2021-11-091-2/+4
|
* bpo-45764: improve error message when missing '(' after 'def' (GH-29484)Carl Friedrich Bolz-Tereick2021-11-091-0/+11
| | | | | to achieve this, change the grammar to expect the '(' token after 'def' NAME. Automerge-Triggered-By: GH:pablogsal
* bpo-45637: Remove broken fallback in gdb helpers to obtain frame variable ↵Pablo Galindo Salgado2021-11-091-0/+2
| | | | (GH-29257)
* General cleanup of test_pydoc (GH-29459)Zachary Ware2021-11-071-43/+43
| | | | | | | | | | | - Uniform usage of `test.support.requires_docstrings` instead of a local check for `-OO`. - Added `requires_docstrings` to a couple more methods that need it. - Replaced a few instances of `test.test_pydoc` with `__name__` to allow for different methods of running just this test file. - Rewrote `test_server` to run faster and better test the server. - Removed unused import. - Removed unused locals. - Minor whitespace cleanups.
* bpo-27313: Use non-deprecated methods for tracing (GH-29425)Serhiy Storchaka2021-11-061-5/+5
|
* bpo-45644: Make json.tool read infile before writing to outfile (GH-29273)Chris Wesseling2021-11-062-7/+23
| | | | | | | | | so that $ python -m json.tool foo.json foo.json doesn't result in an empty foo.json. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Merge tag 'v3.11.0a2'Pablo Galindo2021-11-051-40/+59
|\ | | | | | | Python 3.11.0a2
| * Python 3.11.0a2v3.11.0a2Pablo Galindo2021-11-051-40/+59
| |
* | bpo-45679: add `tuple` tests with `lru_cache` to `test_functools` (GH-29339)Nikita Sobolev2021-11-051-0/+27
|/
* bpo-45243: Use connection limits to simplify `sqlite3` tests (GH-29356)Erlend Egeberg Aasland2021-11-053-21/+54
|
* bpo-45716: Improve the error message when using True/False/None as keywords ↵Pablo Galindo Salgado2021-11-051-2/+8
| | | | in a call (GH-29413)
* bpo-45678: Add more ``singledispatchmethod`` tests (GH-29412)Alex Waygood2021-11-051-0/+99
| | | | | | | In order to fix a bug in the 3.9 branch in #29394, more tests were added to ``test_functools.py`` to ensure that ``singledispatchmethod`` still correctly wrapped a target method, even if the target method had already been wrapped by multiple other decorators. This PR brings the new tests into the 3.11 and 3.10 branches as well.
* bpo-45292: [PEP 654] Update traceback display code to work with exception ↵Irit Katriel2021-11-052-14/+642
| | | | groups (GH-29207)
* bpo-27313: Fix ttk_guionly tests failing on Framework builds on macOS (GH-29411)Łukasz Langa2021-11-051-46/+20
|
* bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291 (GH-29416)Łukasz Langa2021-11-051-1/+4
|
* bpo-45613: Set `sqlite3.threadsafety` dynamically (GH-29227)Erlend Egeberg Aasland2021-11-032-4/+3
| | | | | | | | | Use the compile-time selected default SQLite threaded mode to set the DB-API 2.0 attribute 'threadsafety' Mappings: - SQLITE_THREADSAFE=0 => threadsafety=0 - SQLITE_THREADSAFE=1 => threadsafety=3 - SQLITE_THREADSAFE=2 => threadsafety=1
* bpo-45506: Stop skipping test_embed. (gh-29300)Eric Snow2021-11-031-1/+3
| | | | | In gh-29063 I ended up disabling test_embed on non-Windows by accident. This gets it running again. https://bugs.python.org/issue45506
* bpo-45678: Add ``functools.singledispatchmethod`` tests (GH-29328)Alex Waygood2021-11-031-1/+41
|
* bpo-45578: add tests for `dis.distb` (GH-29332)Nikita Sobolev2021-11-031-0/+40
|
* bpo-24139: Fix test_sqlite3 `test_extended_error_code_on_exception()` on ↵Erlend Egeberg Aasland2021-11-031-1/+1
| | | | s390x RHEL buildbots (GH-29382)
* bpo-24139: Add support for SQLite extended result codes (GH-28076)Erlend Egeberg Aasland2021-11-021-2/+127
|
* bpo-45406: make inspect.getmodule() return None when getabsfile() raises ↵Irit Katriel2021-11-022-1/+10
| | | | FileNotFoundError (GH-28824)
* bpo-45243: Add support for setting/getting `sqlite3` connection limits ↵Erlend Egeberg Aasland2021-11-011-0/+38
| | | | (GH-28463)
* bpo-45668: Fix PGO tests without test extensions (GH-29315)Christian Heimes2021-11-0112-28/+59
|
* bpo-10572: Fixup Lib/test/libregrtest/pgo.py (GH-29327)Erlend Egeberg Aasland2021-11-011-1/+1
|