summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-44180: Report generic syntax errors in the furthest position reached in ↵Miss Islington (bot)2021-05-213-1/+10
| | | | | | | the first parser pass (GH-26253) (GH-26281) (cherry picked from commit b51081c1a8cf01b92ba0692173e1b9274a57f455) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.10] bpo-43882 - Mention urllib.parse changes in Whats new section. (GH-26275)Senthil Kumaran2021-05-211-0/+7
| | | | | | | | | * [3.10] bpo-43882 - Mention urllib.parse changes in Whats new section. * escape the \n chars, ReSTify :rfc:, urllib.parse is a :mod: * minor formatting. Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.10] bpo-38671: Add test that `pathlib.Path.resolve()` returns an absolute ↵Barney Gale2021-05-211-0/+10
| | | | | | | | | | | | path. (GH-26184) (GH-26270) Issue should be fixed in [bpo-43757]() Co-Authored-by: Tzu-ping Chung <uranusjr@gmail.com> (cherry picked from commit 18f41c04ff4161531f4d08631059fd3ed37c0218) Co-authored-by: Barney Gale <barney.gale@gmail.com> Automerge-Triggered-By: GH:encukou
* bpo-38820: Test with OpenSSL 3.0.0-alpha17 (GH-26266)Miss Islington (bot)2021-05-202-2/+2
| | | | | (cherry picked from commit 7109624d45bcf28fbb46a53354785dc5ff953a16) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-36160: Fix test_site so that it can run independently of other tests ↵Miss Islington (bot)2021-05-201-2/+4
| | | | | | | (GH-12131) (GH-26262) (cherry picked from commit 1270ad6ec8fe1f71e7d88086474f96f99670ac3a) Co-authored-by: native-api <vano@mail.mipt.ru>
* Update link in SECURITY.md (GH-21320) (GH-26259)Miss Islington (bot)2021-05-201-3/+2
| | | | | | (cherry picked from commit 4d396e7d79bd1152f991147718dc5f094a3cc957) Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
* [doc] Fix typo in asyncio-eventloop documentation (GH-22311) (GH-26256)Miss Islington (bot)2021-05-191-2/+2
| | | | | (cherry picked from commit b66a03a49157076cb15a002aaf44a011cc79be3b) Co-authored-by: Bruno <brunogeninatti@gmail.com>
* bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as ↵Miss Islington (bot)2021-05-191-2/+2
| | | | | | | coroutine methods (GH-20870) (GH-26254) (cherry picked from commit c054e8f78f53035e06d6dc58c423d76c8a5fa39a) Co-authored-by: naglis <naglis@users.noreply.github.com>
* Fix compiler warning for misleading guarding in the tkinter (GH-26244) ↵Miss Islington (bot)2021-05-191-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-26251) The newest gcc emmits this warning: ``` /Modules/_tkinter.c:272:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 272 | if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; } | ^~ /Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’ 2869 | LEAVE_PYTHON | ^~~~~~~~~~~~ /Modules/_tkinter.c:243:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 243 | (*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*))) | ^ /Modules/_tkinter.c:272:57: note: in expansion of macro ‘tcl_tstate’ 272 | if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; } | ^~~~~~~~~~ /Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’ 2869 | LEAVE_PYTHON ``` that's because the macro packs together two statements at the same level as the "if". The warning is misleading but is very noisy so it makes sense to fix it. (cherry picked from commit 95d04710c5fb0df5393b5add2c5c2de2412673eb) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44168: Fix error message in the parser for keyword arguments for invalid ↵Miss Islington (bot)2021-05-194-561/+611
| | | | | | | | | expressions (GH-26210) (GH-26247) (cherry picked from commit 33c0c90dea06fda1df99482521559ebef7210bea) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Fix compiler warning in the xml module (GH-26245) (GH-26249)Miss Islington (bot)2021-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The newest version of gcc complains about passing un-initialized arrays as constant pointers: ``` /Modules/expat/xmltok_ns.c: In function ‘findEncodingNS’: /Modules/expat/xmltok.h:272:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized] 272 | (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’ 95 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ^~~~~~~~~~~~~~ /Modules/expat/xmltok.h:272:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’} 272 | (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’ 95 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ^~~~~~~~~~~~~~ In file included from /Modules/expat/xmltok.c:1657: /Modules/expat/xmltok_ns.c:92:8: note: ‘buf’ declared here 92 | char buf[ENCODING_MAX]; ``` (cherry picked from commit be93f81e58ba3742589259ef84325a95b547e424) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)Miss Islington (bot)2021-05-196-73/+345
| | | | | (cherry picked from commit 60d343a81679ea90ae0e08fadcd132c16906a51a) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
* bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-22411) ↵Miss Islington (bot)2021-05-191-1/+2
| | | | | | | | (GH-26218) (cherry picked from commit 4fdcc39f711e1b586a94e2c5088fdd7e78fd9f58) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-44106: Purge unused sqlite3 doc includes (GH-26234)Miss Islington (bot)2021-05-198-138/+0
| | | | | (cherry picked from commit d798acc8733b605f7fc9c3c1a85cd14ee2a56add) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-44106: Improve sqlite3 example database contents (GH-26027)Miss Islington (bot)2021-05-199-42/+37
| | | | | (cherry picked from commit 92d1064727d6b7f4136f9c09ab52ae15e3676afe) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-30593: Doc'ed that executescript() disregards isolation level (GH-26220)Miss Islington (bot)2021-05-191-1/+5
| | | | | (cherry picked from commit 901443757333a66ff2b5c85eba30dc1c48eac321) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] bpo-41963: document that ConfigParser strips off comments (GH-26197) ↵Łukasz Langa2021-05-183-1/+12
| | | | | | | | | (GH-26214) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Laura Gutierrez Funderburk <58710704+lgfunderburk@users.noreply.github.com> Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com> (cherry picked from commit 02ee8191263848f8c8999f72286148946b83e5c9)
* [3.10] bpo-25872: Add unit tests for linecache and threading (GH-25913) ↵Irit Katriel2021-05-182-1/+60
| | | | | | | | (GH-26212) (cherry picked from commit 115dea9e2602b96b63390f00cc880e90c433efa2) Co-authored-by: uniocto <serit142sa33go@gmail.com>
* bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)Miss Islington (bot)2021-05-173-1/+13
| | | | | | | | For IPv4 mapped IPv6 addresses, defer privacy check to the mapped IPv4 address. Solves bug where public mapped IPv4 addresses are considered private by the IPv6 check. Automerge-Triggered-By: GH:gpshead (cherry picked from commit 83f0f8d62f279f846a92fede2244beaa0149b9d8) Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
* bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large ↵Miss Islington (bot)2021-05-172-10/+8
| | | | | | | | | | files (GH-25058) (GH-26190) `shutil.unpack_archive()` tries to read the whole file into memory, making no use of any kind of smaller buffer. Process crashes for really large files: I.e. archive: ~1.7G, unpacked: ~10G. Before the crash it can easily take away all available RAM on smaller systems. Had to pull the code form `zipfile.Zipfile.extractall()` to fix this Automerge-Triggered-By: GH:gpshead (cherry picked from commit f32c7950e0077b6d9a8e217c2796fc582f18ca08) Co-authored-by: Igor Bolshakov <ibolsch@gmail.com>
* bpo-44145: Release the GIL around HMAC_Update. (GH-26157)Miss Islington (bot)2021-05-172-2/+7
| | | | | | | | | It was always meant to be released for parallelization. This now matches the other similar code in the module. Thanks michaelforney for noticing! (cherry picked from commit c10392e7ddb3eafbd11e9ffe335c07648426715f) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Apply edits from Allen Downey's review of the linear_regression docs. ↵Miss Islington (bot)2021-05-172-23/+15
| | | | (GH-26176) (GH-26185)
* [doc] Fix typo in os module (GH-24464)Miss Islington (bot)2021-05-161-1/+1
| | | | | | Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit fdc7e52f5f1853e350407c472ae031339ac7f60c) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* fix docstring typo in bdb.py (GH-22323) (#26179)Miss Islington (bot)2021-05-161-1/+1
| | | | | (cherry picked from commit be54fb5ae73db507a0cdb1884d553aca5966f0e6) Co-authored-by: flizzywine <1041958497@qq.com>
* Fix a typo/error in a news entry (bidst_wheel -> bdist_wheel) (GH-24284) ↵Miss Islington (bot)2021-05-161-1/+1
| | | | | | | | | (#26181) Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 56df20d7014bfe2df9cd46dece93271b516c50f6) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-39950: Fix deprecation warning in test for `pathlib.Path.link_to()` ↵Miss Islington (bot)2021-05-162-2/+3
| | | | | | | (GH-26155) (GH-26178) (cherry picked from commit 1a08c5ac49b748d5e4e4b508d22d3804e3cd4dcc) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.10] Fix typo in comment (GH-26162) (GH-26164)Miss Islington (bot)2021-05-161-1/+1
| | | | | | | | (cherry picked from commit de367378f67d7e90e4015100b19277685a3c9bb3) Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com> Automerge-Triggered-By: GH:iritkatriel
* [3.10] Remove a redundant assignment in Tools/unittestgui/unittestgui.py ↵Irit Katriel2021-05-161-1/+0
| | | | | | | | (GH-21438) (GH-26171) (cherry picked from commit a42d98ed91cd1f08b2e9734ca6ca136dd10dff5d) Co-authored-by: Serhii Hidenko <shidenko97@gmail.com>
* bpo-44143: Fix crash in the parser when raising tokenizer errors with an ↵Miss Islington (bot)2021-05-153-0/+4
| | | | | | | exception set (GH-26144) (GH-26148) (cherry picked from commit 80b089179fa798c8ceaab2ff699c82499b2fcacd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-32133: Improve numbers docs (GH-26124) (GH-26149)Miss Islington (bot)2021-05-151-1/+1
|
* bpo-44139: Use a more descriptive syntax error comprehension case in the ↵Miss Islington (bot)2021-05-151-2/+2
| | | | | | | What's New for 3.10 (GH-26145) (GH-26146) (cherry picked from commit c5b833046d9dbb2063f776703fc513b71664b859) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.10] bpo-37788: Fix reference leak when Thread is never joined (GH-26103) ↵Miss Islington (bot)2021-05-153-1/+26
| | | | | | | | | (GH-26138) When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown. If many threads are created this way, the _shutdown_locks set could therefore grow endlessly. To avoid such a situation, purge expired locks each time a new one is added or removed. (cherry picked from commit c10c2ec7a0e06975e8010c56c9c3270f8ea322ec) Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-44072: fix Complex, Integral docs for `**` (GH-25986)Miss Islington (bot)2021-05-143-6/+13
| | | | | | In numbers module docstrings and docs. (cherry picked from commit 4aa63d65a9971d14f1a2131b989dca0dab514a9d) Co-authored-by: Rory Yorke <rory.yorke@gmail.com>
* bpo-43729: Clarify comment in tutorial example (GH-25191) (#26136)Miss Islington (bot)2021-05-141-1/+1
| | | | | | | (cherry picked from commit 07797121cc290ede0b3d3cf02068f3d993cddd15) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Subprocess Protocols Documentation (GH-20950) (GH-26133)Miss Islington (bot)2021-05-141-1/+1
|
* [3.10] [doc] Fix typos in cgi.rst (GH-24766) (GH-26132)Irit Katriel2021-05-141-4/+4
| | | | | (cherry picked from commit 19d839ae20db9c6f740646e99df7f4601cb9f4dc) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Update doc as relative import can be used with star import (GH-25667) (GH-26121)Miss Islington (bot)2021-05-141-1/+1
| | | | | | | (cherry picked from commit 3d4b5f1019123a7d74801500eb18ec8fa12136bc) Co-authored-by: Saiyang Gou <gousaiyang@163.com> Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* Reword paragraph on specific value for Py_LIMITED_API (GH-26101) (GH-26123)Miss Islington (bot)2021-05-141-12/+12
| | | | | (cherry picked from commit ddd30b2dd207c3c963874f0644cdff2ee5989575) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-44108: sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) (GH-26125)Miss Islington (bot)2021-05-141-1/+1
| | | | | | | (cherry picked from commit be7e467bcf5e419302d887904ef3e8fd310c68e7) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Updated code example for asyncio.gather (GH-20604) (GH-26119)Miss Islington (bot)2021-05-141-8/+11
| | | | | | | | | | The previous example did not fully showcase the interest of using gather. Here the example showcases "the result is an aggregate list of returned values". (cherry picked from commit 56b8ea65d28bd865e2363e10e9f1c2ca3433ffc2) Co-authored-by: josephernest <nouvellecollection@gmail.com> Co-authored-by: josephernest <nouvellecollection@gmail.com>
* bpo-43977: Update pattern matching language reference docs (GH-25917) (GH-26117)Miss Islington (bot)2021-05-142-8/+36
| | | | | | | | | | * Update patma language reference with new changes to sequence and mapping * update 3.10 whatsnew too (cherry picked from commit 53c91ac5253bf1cb3cb20e1345e798a53f4c3517) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-43795: PEP 652 user documentation (GH-25668) (GH-26034)Miss Islington (bot)2021-05-147-1105/+1188
| | | | | | | | | | | - Reformat the C API and ABI Versioning page (and extend/clarify a bit) - Rewrite the stable ABI docs into a general text on C API Compatibility - Add a list of Limited API contents, and notes for the individual items. - Replace `Include/README.rst` with a link to a devguide page with the same info (cherry picked from commit b05955d6f5f149523b5855a335444b7c6324bdb7) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-43757: Document os.path.realpath(strict=True) in 3.10 whatsnew. ↵Miss Islington (bot)2021-05-141-0/+8
| | | | | | | | | (GH-26090) (#26099) (cherry picked from commit d1560d2429dff8e7d397801786e966dd33bb1bd7) Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Barney Gale <barney.gale@gmail.com>
* [3.10] bpo-43908: Add What's New entry for Py_TPFLAGS_IMMUTABLETYPE flag ↵Miss Islington (bot)2021-05-131-0/+10
| | | | | | | | | | (GH-25816) (GH-26115) (cherry picked from commit a09fc9c63f1b5980c62ff2712f67500bacb92b04) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:gvanrossum
* bpo-28146: Fix a confusing error message in str.format() (GH-24213)Miss Islington (bot)2021-05-133-4/+14
| | | | | | Automerge-Triggered-By: GH:pitrou (cherry picked from commit 4aeee0b47b3a2b604bbac37040320ffc88c291f2) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-44114: Remove redundant cast. (GH-26098)Miss Islington (bot)2021-05-131-2/+2
| | | | | (cherry picked from commit e0c614e5fd017ca43cab55a9f8490133750c704f) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)Miss Islington (bot)2021-05-131-1/+4
| | | | | | | | The patch from [bpo-44074]() does not account for a possibly non-English locale and blindly greps for "HEAD branch" in a possibly localized text. Automerge-Triggered-By: GH:pitrou (cherry picked from commit 1aa3530314d339725519f4ad95b7dea4b00b657e) Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-44098: Drop ParamSpec from most ``__parameters__`` in typing generics ↵Miss Islington (bot)2021-05-133-14/+59
| | | | | | | | | | | (GH-26013) (#26091) Added two new attributes to ``_GenericAlias``: * ``_typevar_types``, a single type or tuple of types indicating what types are treated as a ``TypeVar``. Used for ``isinstance`` checks. * ``_paramspec_tvars ``, a boolean flag which guards special behavior for dealing with ``ParamSpec``. Setting it to ``True`` means this class deals with ``ParamSpec``. Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit b2f3f8e3d81b0bb0ba18f563d82c28ba133c0790)
* [3.10] bpo-43933: Force RETURN_VALUE bytecodes to have line numbers (GH-26061)Mark Shannon2021-05-132-0/+50
| | | * Guarantee that line number is set for returns.
* bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and ↵Miss Islington (bot)2021-05-131-0/+5
| | | | | | | chmod() in 3.10 whatsnew. (GH-26089) (cherry picked from commit 366c69f3f63a2a1cce57dabe8f7c2e67d1df625d) Co-authored-by: Barney Gale <barney.gale@gmail.com>