summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.4v3.9.4Łukasz Langa2021-04-046-9/+25
|
* [3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 ↵Gregory P. Smith2021-04-049-74/+79
| | | | | | | (#25179) This reverts commit 8b795ab5541d8a4e69be4137dfdc207714270b77. It changed the PyThreadState structure size, breaking the ABI in 3.9.3.
* bpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178)Miss Islington (bot)2021-04-042-3/+89
|
* Replace broken example code with correct simpler code. (GH-25162) (GH-25166)Miss Islington (bot)2021-04-031-2/+2
|
* Add more tests for the descriptor tutorial (GH-25164) (#25165)Miss Islington (bot)2021-04-031-7/+57
| | | | | | | (cherry picked from commit e4c8895ee5457b11f52841b79b51f3c3d6373fef) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)Miss Islington (bot)2021-04-021-3/+19
| | | | | | | | Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has. Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit b2a91e0c9ee18b50cc86b21211c2258520a9f5d0) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* Post 3.9.3Łukasz Langa2021-04-021-1/+1
|
* Merge tag 'v3.9.3' into 3.9Łukasz Langa2021-04-0237-89/+355
|\ | | | | | | Python 3.9.3
| * Python 3.9.3v3.9.3Łukasz Langa2021-04-0237-89/+355
| |
* | [3.9] bpo-26053: Fix args echoed by pdb run command (GH-25149)Irit Katriel2021-04-023-1/+15
|/ | | | | | | | | * bpo-26053: Fix args echoed by pdb run command (GH-22033) (cherry picked from commit 652bfdee9495dca241d48278742fe035b7a82bdb) * bpo-26053: Fix test_pdb.test_issue26053() (GH-25139) (cherry picked from commit bd4ab8e73906a4f12d5353f567228b7c7497baf7)
* bpo-43700: Replace Zulip badge with Discourse badge (GH-25141)Miss Islington (bot)2021-04-021-3/+3
| | | | | | Automerge-Triggered-By: GH:zware (cherry picked from commit bef7b26f7229f8b7cde843118a7bc7e2b00f0372) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140)Miss Islington (bot)2021-04-021-1/+1
|
* Doc: io: Remove "In-memory streams" section (GH-24927)Miss Islington (bot)2021-04-011-10/+0
| | | | | (cherry picked from commit b045cdaf341f80b7d1e4804b932b6e415600c2e1) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-42840: Document providing kwargs to type. (GH-24173)Miss Islington (bot)2021-04-011-1/+8
| | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 72fcd14a82369ed32a5846d76f50e3026cf4eec2) Co-authored-by: Erik Soma <stillusingirc@gmail.com>
* bpo-37945: Fix test_locale.test_getsetlocale_issue1813() (GH-25110) (GH-25112)Miss Islington (bot)2021-03-312-1/+9
| | | | | | Skip the test if setlocale() fails. (cherry picked from commit f3ab670fea75ebe177e3412a5ebe39263cd428e3) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42225: IDLE - document two unix-related problems. (GH-25078)Miss Islington (bot)2021-03-313-9/+39
| | | | | | | 1. Bad IP masquerade rules can prevent startup. 2. X cannot handle some complex colored chars. (cherry picked from commit 1b4a9c7956d5dc64f8002f62bf0faae2d1892f90) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)Miss Islington (bot)2021-03-304-1/+7
| | | | | (cherry picked from commit 51a85ddce8b336addcb61b96f04c9c5edef07296) Co-authored-by: Alex Prengère <2138730+alexprengere@users.noreply.github.com>
* [3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088)Christian Heimes2021-03-3011-17/+18
| | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran. (cherry picked from commit a54fc683f237d8f0b6e999a63aa9b8c0a45b7fef) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)Miss Islington (bot)2021-03-301-0/+1
| | | | | (cherry picked from commit dfeec347f21b86879ba8f27f567bb275b243f1bc) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-33164: blake2: Fix Coverity scan (GH-25060)Miss Islington (bot)2021-03-304-4/+4
| | | | | (cherry picked from commit 068ebf9729d440cef03e4c57e3db83c851146172) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-43660: Fix crash when displaying exceptions with custom values for ↵Miss Islington (bot)2021-03-293-1/+20
| | | | | | | | | sys.stderr (GH-25075) (GH-25083) (cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)Miss Islington (bot)2021-03-291-0/+2
| | | | | | | | This test checks result code of the connection directly, so it never raises an exception that can be suppressed by `support.transient_internet`. Directly support skipping the test in case of unreachable network. (cherry picked from commit 29c451c6989c3c94fa0a9facf187c24f3cbf2420) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Carl Meyer <carl@oddbird.net>
* bpo-43659: Fix test_curses on AIX (GH-25074)Miss Islington (bot)2021-03-291-0/+1
| | | | | | | | curses.update_lines_cols() is only defined when the curses library provides either resizeterm() or resize_term() functions which are optional and are not provided on AIX. (cherry picked from commit c8b5738810516df5722caf049003e9b319427bec) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
* bpo-35930: Raising an exception raised in a "future" instance will create ↵Miss Islington (bot)2021-03-292-15/+25
| | | | | | | | | | | | reference cycles (GH-24995) (#25070) Before: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0002.png After: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0003.png (cherry picked from commit 32430aadadf6e012e39167d3c18a24e49fb84874) Co-authored-by: Jesús Cea <jcea@jcea.es> Co-authored-by: Jesús Cea <jcea@jcea.es>
* bpo-43433: Preserve query and fragment in the URL of the server in ↵Miss Islington (bot)2021-03-293-3/+45
| | | | | | | ServerProxy. (GH-25057) (cherry picked from commit c1b073a630bb731de18bb17afb2b8b1388b92a72) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42988: Remove the pydoc getfile feature (GH-25015)Miss Islington (bot)2021-03-293-24/+4
| | | | | | | | | | CVE-2021-3426: Remove the "getfile" feature of the pydoc module which could be abused to read arbitrary files on the disk (directory traversal vulnerability). Moreover, even source code of Python modules can contain sensitive data like passwords. Vulnerability reported by David Schwörer. (cherry picked from commit 9b999479c0022edfc9835a8a1f06e046f3881048) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-31907: [doc] clarify that str.format() does not support arbitrary ↵Miss Islington (bot)2021-03-281-2/+2
| | | | | | | | | expressions (GH-25053) (GH-25055) (cherry picked from commit fb1d01b9630b5069fe975f16e07a027d90b89434) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-43644: Add docs for importlib.resources.as_file. (GH-25048)Miss Islington (bot)2021-03-281-0/+16
| | | | | (cherry picked from commit af50c84643ce21cfbdfdabbdfae6bd5e1368c542) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.9] bpo-43617: Check autoconf-archive package in configure.ac (GH-25016) ↵Christian Heimes2021-03-277-219/+229
| | | | | | | | (GH-25034) Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 5d6e8c1c1a5f667cdce99cb3c563ac922198678d) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-39231: correct tutorial annotations section (GH-25029)Miss Islington (bot)2021-03-271-1/+1
| | | | | (cherry picked from commit a53e9a7cf5912a44c5143e353912e44cfcfca7dc) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)Miss Islington (bot)2021-03-271-1/+1
| | | | | | | | It doesn't actually affect whether match_hostname() is called (it never is in this context any longer), but whether hostname verification occurs in the first place. (cherry picked from commit 9798cef92b882cd82a338d3368eaf3c4a32f5c2d) Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
* bpo-43620: Remove reference to os.sep from os.path.join() doc (GH-25025) ↵Miss Islington (bot)2021-03-261-5/+4
| | | | | | | | (#25027) - removed ambiguous reference to os.sep from os.path.join() doc (cherry picked from commit 21a2cabb3795f5170c746ab8f29e9d25c7442550) Co-authored-by: Jared Sutton <jpsutton@gmail.com>
* [3.9] Clarify attribute docs on types.ModuleType (GH-24974) (#24994)Brett Cannon2021-03-230-0/+0
| | | | | (cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc) Co-authored-by: Brett Cannon <brett@python.org>
* Clarify attribute docs on types.ModuleType (GH-24974)Miss Islington (bot)2021-03-231-2/+30
| | | | | (cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc) Co-authored-by: Brett Cannon <brett@python.org>
* bpo-43555: Report the column offset for invalid line continuation character ↵Miss Islington (bot)2021-03-224-6/+13
| | | | | | | | | (GH-24939) (#24975) (cherry picked from commit 96eeff516204b7cc751103fa33dcc665e387846e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback ↵Miss Islington (bot)2021-03-214-0/+29
| | | | | | | | | | | | | | | (GH-24957) OpenSSL copies the internal message callback from SSL_CTX->msg_callback to SSL->msg_callback. SSL_set_SSL_CTX() does not update SSL->msg_callback to use the callback value of the new context. PySSL_set_context() now resets the callback and _PySSL_msg_callback() resets thread state in error path. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 77cde5042a2f1eae489c11a67540afaf43cd5cdf) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-43517 (followup): Install additional test directory (GH-24950) ↵Antoine Pitrou2021-03-201-0/+1
| | | | | | | | | | (GH-24951) Should fix some CI failures on buildbots that test an installed version of Python. (cherry picked from commit 66c8adfa27aeea004657ef29b6db4e4c360ad611) Co-authored-by: Antoine Pitrou <antoine@python.org>
* [3.9] bpo-43517: Fix false positive in detection of circular imports ↵Antoine Pitrou2021-03-205-2/+81
| | | | | | | | | (GH-24895) (GH-24948) (cherry picked from commit 2fd16ef406bba239b1334057fb499496a84b3aa2) Co-authored-by: Antoine Pitrou <antoine@python.org> Automerge-Triggered-By: GH:pitrou
* bpo-43521: Allow ast.unparse with empty sets and NaN (GH-24897)Miss Islington (bot)2021-03-183-9/+27
| | | | | | Automerge-Triggered-By: GH:pablogsal (cherry picked from commit 08ff4369afca84587b1c82034af4e9f64caddbf2) Co-authored-by: Kodi Arfer <Kodiologist@users.noreply.github.com>
* bpo-41561: Add workaround for Ubuntu's custom security level (GH-24915)Miss Islington (bot)2021-03-183-1/+31
| | | | | | | | | | | | | Ubuntu 20.04 comes with a patched OpenSSL 1.1.1. Default security level 2 blocks TLS 1.0 and 1.1 connections. Regular OpenSSL 1.1.1 builds allow TLS 1.0 and 1.1 on security level 2. See: See: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1899878 See: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/1917625 Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit f6c6b5821bff815bdc810de53992fd1fbdb2edd4) Co-authored-by: Christian Heimes <christian@python.org>
* Add a warning block around the get_referrers() documentation (GH-24511)Miss Islington (bot)2021-03-181-4/+5
| | | | | (cherry picked from commit 813db24f7c2c536d587d1832c3c52b44fa9e242e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843)Miss Islington (bot)2021-03-174-69/+148
| | | | | | | | | | | | | Python no longer fails at startup with a fatal error if a command line argument contains an invalid Unicode character. The Py_DecodeLocale() function now escapes byte sequences which would be decoded as Unicode characters outside the [U+0000; U+10ffff] range. Use MAX_UNICODE constant in unicodeobject.c. (cherry picked from commit 9976834f807ea63ca51bc4f89be457d734148682) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.9] bpo-43499: Restrict co_code to be under INT_MAX in codeobject ↵Ammar Askar2021-03-172-1/+11
| | | | | (GH-20628) (GH-24896) (cherry picked from commit 3b3b83c965447a8329b34cb4befe6e9908880ee5)
* bpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387) (GH-24894)Miss Islington (bot)2021-03-161-1/+2
| | | | | | | | | | | Fix warning: Objects\exceptions.c(2324,56): warning C4098: 'MemoryError_dealloc': 'void' function returning a value (cherry picked from commit bbeb223e9a5e9f9374df384efa386b4068a65c0e) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-43499: Silence compiler warnings about using legacy C API on Windows ↵Serhiy Storchaka2021-03-168-0/+42
| | | | (GH-24873)
* bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)Miss Islington (bot)2021-03-161-11/+15
| | | | | | See PEP 624. (cherry picked from commit 1330338583d183250186a8123b99d2283e945b4f) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* [3.9] bpo-43285: Add a What's New entry for 3.9.3. (GH-24888)Gregory P. Smith2021-03-161-0/+9
| | | Covers the ftplib security fix.
* bpo-43285 Make ftplib not trust the PASV response. (GH-24838)Miss Islington (bot)2021-03-153-3/+43
| | | | | | | | | | | | | | | | | | bpo-43285: Make ftplib not trust the PASV response. The IPv4 address value returned from the server in response to the PASV command should not be trusted. This prevents a malicious FTP server from using the response to probe IPv4 address and port combinations on the client network. Instead of using the returned address, we use the IP address we're already connected to. This is the strategy other ftp clients adopted, and matches the only strategy available for the modern IPv6 EPSV command where the server response must return a port number and nothing else. For the rare user who _wants_ this ugly behavior, set a `trust_server_pasv_ipv4_address` attribute on your `ftplib.FTP` instance to True. (cherry picked from commit 0ab152c6b5d95caa2dc1a30fa96e10258b5f188e) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Fix typo in the word "spaghetti" (GH-24866)Miss Islington (bot)2021-03-151-1/+1
| | | | | | Automerge-Triggered-By: GH:Mariatta (cherry picked from commit 93d33b47af70ede473f82d7953509a0607259c31) Co-authored-by: Kazantcev Andrey <45011689+heckad@users.noreply.github.com>
* [3.9] [doc] Document logging.basicConfig default format (GH-23710) (GH-24835)Miss Islington (bot)2021-03-151-1/+3
| | | (cherry picked from commit 35cacce5253c50eed0d285836f9ca0ac568991ca)