aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-93005: Fixes launcher test when no Python install is available (GH-93007)Miss Islington (bot)2022-05-232-8/+8
| | | | | (cherry picked from commit 949dbf97ba09da3cfb243d5ad7f90967ad15f354) Co-authored-by: Steve Dower <steve.dower@python.org>
* GH-93115: Fix version check in sqlite3 module constants test (GH-93116)Miss Islington (bot)2022-05-231-18/+18
| | | | | (cherry picked from commit d5f0dd160011826f0196d220aefc29d2ce497428) Co-authored-by: Florian Bruhin <me@the-compiler.org>
* gh-90473: WASI: skip gethostname tests (GH-93092)Miss Islington (bot)2022-05-239-0/+30
| | | | | | | | | - WASI's ``gethostname()`` is a stub that always fails with OSError ``ENOTSUP`` - skip mailcap ``test`` if subprocess is not available - WASI process_time clock does not work. (cherry picked from commit 760ec8940aabd6a7fc471bd913ea1ac501cc604b) Co-authored-by: Christian Heimes <christian@python.org>
* gh-89158: Add some REPL secondary prompt markers (GH-93073)Miss Islington (bot)2022-05-221-3/+3
| | | | | | | This fixes an issue on tutorial/classes.rst section 9.4 where the example "class Warehouse" was truncated when pressing the >>> button to hide the prompts and output. (cherry picked from commit 88f0d0c1e8fdda036f3f64b0048911ba28ce7f06) Co-authored-by: Nicolas Haller <nicolas@haller.im>
* gh-73137: Added sub-subsection headers for flags in re (GH-93000)Miss Islington (bot)2022-05-221-30/+42
| | | | | | Fixes GH-73137 (cherry picked from commit b7a6610bc88dfecdd943e8d2817f7cd6b85fb740) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-92994: Clarify importlib "check" example (GH-92995)Miss Islington (bot)2022-05-221-0/+3
| | | | | | Fixes GH-92994 (cherry picked from commit e39cd765610c9099da3b5595186ad16223b670b0) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* binascii docs: strict_mode parameter is keyword-only (GH-93055)Miss Islington (bot)2022-05-221-1/+1
| | | | | | | | See https://github.com/python/cpython/commit/35b98e38b6edd63153fc8e092f94cb20725dacc1 Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit ac718d357af6aa42240e88add3ac348e1aebcfc2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* termios docs: fix indentation (GH-93080)Miss Islington (bot)2022-05-221-5/+5
| | | | | (cherry picked from commit ea5918e932a441aef8c22acfdcfa6345ec32d1a8) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Clean up the sqlite3 tests (GH-93056)Miss Islington (bot)2022-05-212-33/+23
| | | | | | | Remove helper managed_connect(). Use memory_database() or contextlib.closing() + addCleanup(unlink) instead. (cherry picked from commit e5d8dbdd304935dbd0631ee9605efb501332f792) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91362: reword pickle docs to account for nested classes (GH-92429)Miss Islington (bot)2022-05-211-6/+6
| | | | | | Fixes GH-91362 (cherry picked from commit f9d6c59917435980fbe1b58c57257c45bfed2244) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* Improve tests for opening Sqlite by URI (GH-93047)Miss Islington (bot)2022-05-211-5/+42
| | | | | | | * Test with with escaped non-ascii characters * Test read-only open of existing DB. (cherry picked from commit 4e2b66489289cfd4db2a02edf173ac03cbb2fffe) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.11] GH-92898: Make _Py_Cast C++ version compatible with cast operator ↵Dong-hee Na2022-05-212-2/+35
| | | | (gh-92951) (gh-93049)
* [3.11] gh-93044: No longer convert the database argument of ↵Serhiy Storchaka2022-05-214-7/+19
| | | | | | | | sqlite3.connect() to bytes (GH-93046) (GH-93048) Just pass it to the factory as is. (cherry picked from commit 14c0d33016a967a98155f2e1615660e9328aef5d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-71223: Improve rendering of some references in the docs (GH-93041)Miss Islington (bot)2022-05-217-9/+16
| | | | | | | For example, instead of "eval()uated" (link from "eval()") show "evaluated" (link from the whole word). (cherry picked from commit 7f835923c179d1d2da54b232e0113abc2c56ea31) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-93019: Fix markup in zipfile.rst (GH-93025)Miss Islington (bot)2022-05-201-1/+1
| | | | | | Fixes GH-93019 (cherry picked from commit 2fadde7e6645e45e090b0187c28877300b07cba3) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* Take advantage of math.comb() in the nth_combination() recipe (GH-93027) ↵Miss Islington (bot)2022-05-201-6/+2
| | | | (#93032)
* [3.11] gh-72073: Add Windows case in pathlib.rename (GH-93002) (GH-93028)Miss Islington (bot)2022-05-201-2/+3
| | | | | | | | | | | GH-72073 https://docs.python.org/3.12/library/pathlib.htmlGH-pathlib.Path.rename (cherry picked from commit f51ed04c663417f88e10eeb21dad23250358bafa) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:brettcannon
* gh-92611: Clarify planned removal version in PEP 594-deprecated modules ↵Miss Islington (bot)2022-05-2022-25/+25
| | | | | | | | | | (GH-92793) (GH-93026) As discussed in GH-92611 and GH-92564 and as a followup to PR GH-92612 , this 3.11+ only PR uses the proper `deprecated-removed` role for the modules deprecated by PEP 593 (PEP-594) to clearly indicate to users that a removal version is planned and what it is, so they can prepare accordingly or voice any unanticipated impacts. Related to GH-92792 ; if we decide to backport that PR, the upgrade to using `deprecated-removed` on those functions can be moved to this one. (cherry picked from commit 31fa41ed689528505c0e0cf25777773b7e81c834) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-91860: documentation for typing.dataclass_transform (GH-92768)Miss Islington (bot)2022-05-203-12/+84
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit f20a6a54fb041507a334ad71706974960d1b473f) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-91922: Fix sqlite connection on nonstardard locales and paths (GH-92926)Miss Islington (bot)2022-05-204-64/+40
| | | | | (cherry picked from commit d8537580921b2e02f477ff1a8dedcf82c24ef0c2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Doc: add missing manpage and title references in tkinter docs (GH-29008)Miss Islington (bot)2022-05-201-2/+3
| | | | | | | - add bind(3tk) manpage markup - add Tcl/Tk book reference markup (cherry picked from commit 0e12781ad9dec6e46ccb85969c0eb7be1ecad81d) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* gh-92817: Fix precedence of options to py.exe launcher (GH-92988)Miss Islington (bot)2022-05-193-11/+49
| | | | | (cherry picked from commit 73473fdeac3ff9d75ac9d189bb8552b7459812f1) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-92984: Explicitly disable incremental linking for Windows Release and PGO ↵Miss Islington (bot)2022-05-192-0/+2
| | | | | | | builds (GH-92985) (cherry picked from commit 38feffa09c74d9a853745908b7813903bae33b96) Co-authored-by: David Machaj <46852402+dmachaj@users.noreply.github.com>
* gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields ↵Miss Islington (bot)2022-05-195-8/+39
| | | | | | | (GH-92980) (cherry picked from commit 403d16fa28764718dcd0536ccb3ab8d05768465d) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498) ↵Miss Islington (bot)2022-05-194-6/+83
| | | | | | | | | | (GH-92978) (cherry picked from commit 8db2b3b6878aba9f12844526bce966b7eed81aee) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (GH-8847)Miss Islington (bot)2022-05-192-3/+1
| | | | | | | | At compile time, '+z' is already properly used with HP aCC, and shared libraries are correctly linked with '+b'. The '-fPIC' switch can safely be dropped. (cherry picked from commit 09be18a73d81aa82cc57a782f3b0a9811e43ad3b) Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
* gh-92417: `importlib` docs: remove references to unsupported Python versions ↵Miss Islington (bot)2022-05-192-10/+7
| | | | | | | | (GH-92424) (GH-92979) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit 70aa1b9b912d8254df3c61ae0a55464962f4c087) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-46879: Fix incorrect sphinx object names in doc (GH-31615) (GH-92974)Miss Islington (bot)2022-05-193-0/+7
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 2cdd57f119e3b85f1bfd28c7ff040e0d9bcaf115) Co-authored-by: Martin Fischer <martin@push-f.com>
* gh-92417: `subprocess` docs: remove note on compatibility with Python <3.5 ↵Miss Islington (bot)2022-05-191-3/+0
| | | | | | | (GH-92538) (GH-92972) (cherry picked from commit 84b86000e2bc32b0fbb6dfb6445a7ffc882067d2) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-92417: `fractions`, `decimal`: Improve docs for alternative constructor ↵Miss Islington (bot)2022-05-192-8/+9
| | | | | | | | methods (GH-92421) (GH-92970) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 090df844ea16af3a5df79aba2b9c89ac6a31ba06) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-92417: `socket` docs: remove references to Python <3.3 (GH-92544) (GH-92968)Miss Islington (bot)2022-05-191-2/+2
| | | | | (cherry picked from commit 639b62c9c479e38a6f91a80b261097574a1e7ac7) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45393: help() on operator precedence has misleading entries (GH-31246) ↵Miss Islington (bot)2022-05-192-2/+4
| | | | | | | (GH-92965) (cherry picked from commit fb082c2fc5a925085b179e63ca10b7f60b356d2f) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* gh-92417: Update docs and examples of doctest.IGNORE_EXCEPTION_DETAIL for ↵Miss Islington (bot)2022-05-191-27/+21
| | | | | | Py>=3 (GH-92502) (GH-92962) (cherry picked from commit 97b9c1096feff77a564787ef520cc7d4e1d1c45f)
* gh-92675: venv: Fix ensure_directories() to again accept a Path for env_dir ↵Miss Islington (bot)2022-05-193-4/+20
| | | | | | | | | (GH-92676) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 30deeac64925effe46cb5f1cd091ccb4c850ce83) Co-authored-by: David Foster <david@dafoster.net>
* gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)Miss Islington (bot)2022-05-1920-14/+109
| | | | | (cherry picked from commit 137fd3d88aa46669f5717734e823f4c594ab2843) Co-authored-by: Christian Heimes <christian@python.org>
* gh-91491: Complete Whats New in 3.11 for typing (GH-92708)Miss Islington (bot)2022-05-191-4/+36
| | | | | | | | | Fixes GH-91491 Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 6b51773afd5658e15d23ce220f66fcc39c02dcae) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX ↵Miss Islington (bot)2022-05-192-0/+7
| | | | | | | (GH-92718) (cherry picked from commit 654032ac5f6982b36d45e024037f37fb65166aed) Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
* Doc: amend ssl.PROTOCOL_SSLv2 and ssl.PROTOCOL_SSLv3 wording (GH-92634)Miss Islington (bot)2022-05-191-3/+3
| | | | | (cherry picked from commit 41638967a0e0bf1114c9bba9454d081605b49009) Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
* Include ``asyncio.Barrier`` in 3.11 Whats New (GH-92927)Miss Islington (bot)2022-05-191-0/+4
| | | | | (cherry picked from commit 60ee61571a60bcf4e40a4074e8db356b5af793c1) Co-authored-by: Duprat <yduprat@gmail.com>
* gh-87901: Remove the encoding argument from os.popen (GH-92836)Miss Islington (bot)2022-05-183-7/+13
| | | | | (cherry picked from commit 96f65835f8f66d058b444e0b4e436af45e2902f7) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec ↵Miss Islington (bot)2022-05-181-1/+1
| | | | | | | (GH-92814) (cherry picked from commit f2d994da104eed38f9e110e7d8f37fa6d845b207) Co-authored-by: 180909 <734461790@qq.com>
* gh-92780: Improve sqlite3.Connection.create_collation docs (GH-92790)Miss Islington (bot)2022-05-181-11/+8
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 7ee19e27150a72eec9e6a076792e3c3ae8bcffbd) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-91755: Document Py_IncRef and Py_DecRef as C functions (GH-91805)Miss Islington (bot)2022-05-181-4/+10
| | | | | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 58a3d28039863b014f57a1ac93b51e20920ebe7b) Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
* bpo-40838: document `getdoc`, `getmodule`, `getsourcefile` in `inspect` ↵Miss Islington (bot)2022-05-172-2/+7
| | | | | | | | | returns `None` (GH-30575) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit b86d783a4eff96306f315acf9a6f1aca85d47fc3) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)Miss Islington (bot)2022-05-172-1/+3
| | | | | (cherry picked from commit 33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-89898: Fix test_threading.test_args_argument() (GH-92885)Miss Islington (bot)2022-05-171-0/+1
| | | | | | | | | | | | | | | | Join the thread to not leak threads running in the background to the next test. Fix the following warning on the "AMD64 FreeBSD Shared 3.11" buildbot: test_args_argument (test.test_threading.ThreadTests.test_args_argument) ... Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2) Warning -- Dangling thread: <_MainThread(MainThread, started 35026161664)> Warning -- Dangling thread: <Thread(Thread-134 (<lambda>), started 35314998016)> ok (cherry picked from commit 970efae274538f9910e8f9b31bc890f1b7666b0f) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-89653: PEP 670: Fix PyUnicode_READ() cast (GH-92872)Miss Islington (bot)2022-05-172-1/+33
| | | | | | | _Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST() instead. (cherry picked from commit e6fd7992a92879103215b3e9f218fe07212af9b1) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-92530: Fix an issue that occurred after interrupting ↵Miss Islington (bot)2022-05-172-7/+16
| | | | | | | | | | | | | threading.Condition.notify (GH-92534) (GH-92829) If Condition.notify() was interrupted just after it released the waiter lock, but before removing it from the queue, the following calls of notify() failed with RuntimeError: cannot release un-acquired lock. (cherry picked from commit 70af994fee7c0850ae859727d9468a5f29375a38) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
* gh-81548: Clarify the deprecation of octal sequences affect byte strings ↵Miss Islington (bot)2022-05-171-2/+2
| | | | | | | | (GH-92643) Automerge-Triggered-By: GH:pablogsal (cherry picked from commit 0d8500c739dc5ea926b2ec1ec02e400738225dac) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Fix NULL check in test_type_from_ephemeral_spec in_testcapimodule.c (GH-92863)Miss Islington (bot)2022-05-171-1/+1
| | | | | (cherry picked from commit 524f03c08ca6688785c0fe99d8f2b385bf92e58f) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>