summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.8] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline ↵Miss Islington (bot)2021-05-051-0/+6
| | | | | | | | | and tabs. (GH-25595) (#25726) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4) Co-authored-by: Senthil Kumaran <senthil@uthcode.com> Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
* Merge tag 'v3.8.10' into 3.8Łukasz Langa2021-05-0344-95/+450
|\ | | | | | | Python 3.8.10
| * Python 3.8.10v3.8.10Łukasz Langa2021-05-0344-95/+450
| |
* | bpo-42800: Add audit events for f_code and tb_frame (GH-24182)Miss Islington (bot)2021-05-032-0/+2
|/ | | | | | | | | | | Accessing the following attributes will now fire PEP 578 style audit hooks as (object.__getattr__, obj, name): * PyTracebackObject: tb_frame * PyFrameObject: f_code * PyGenObject: gi_code, gi_frame * PyCoroObject: cr_code, cr_frame * PyAsyncGenObject: ag_code, ag_frame (cherry picked from commit bb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ ↵Erlend Egeberg Aasland2021-05-021-0/+4
| | | | | | | (GH-25818) (cherry picked from commit c96cc089f60d2bf7e003c27413c3239ee9de2990) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type ↵Miss Islington (bot)2021-05-021-0/+3
| | | | | | | | | | (GH-8721) (#25811) Embedded nulls would cause a ValueError to be raised. Thanks go to Eryk Sun for their analysis. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 73766b0341674f3920f4ea86a6f8288b801960f9) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25810)Ned Deily2021-05-021-0/+4
| | | | | | | | | | | | | This allows reliably forcing macOS universal2 framework builds to run under Rosetta 2 Intel-64 emulation on Apple Silicon Macs if needed for testing or when universal2 wheels are not yet available. (cherry picked from commit 0cb33da1cc9cebb9b2d67d446feb1cfd36fe7f55) Co-authored-by: Ned Deily <nad@python.org> Automerge-Triggered-By: GH:ned-deily Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
* [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806)Ned Deily2021-05-022-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-41100: Support macOS 11 and Apple Silicon on Python 3.8 This is a partial backport of bpo-41100 changes `e8b1c038b14b5fc8120aab62c9bf5fb840274cb6` and `96d906b144e6e6aa96c5ffebecbcc5d38034bbda` for Python 3.8. We introduce the ability to build Python from source for `arm64` on macOS, but we do not make a promise of support. This allows us to omit support for Universal2 binaries as well as weak-linking of symbols from the macOS SDK based on the deployment target, which are larger changes much more difficult to merge. This also includes a backport of subsequent bpo-42688 change `7e729978fa08a360cbf936dc215ba7dd25a06a08` to fix build errors with external `libffi`. * bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455) On macOS system provided libraries are in a shared library cache and not at their usual location. This PR teaches distutils to search in the SDK, even if there was no "-sysroot" argument in the compiler flags. (cherry picked from commit 404a719b5127602c1a948f8e189ab61cd3f147d8) * bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556) macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert. (cherry picked from commit 5291639e611dc3f55a34666036f2c3424648ba50) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (cherry picked from commit 49926cf2bcc8b44d9b8f148d81979ada191dd9d5) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: FX Coudert <fxcoudert@gmail.com> Co-authored-by: Max Bélanger <aeromax@gmail.com>
* [3.8] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25783)Stéphane Bidoul2021-05-011-0/+1
|
* bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) ↵Miss Islington (bot)2021-04-281-0/+1
| | | | | (GH-25690) (cherry picked from commit 4c49be766897968e509c41397e0e624c25b1675d)
* bpo-43962: Fix _PyInterpreterState_IDIncref() (GH-25683) (GH-25686)Victor Stinner2021-04-281-0/+5
| | | | | | _PyInterpreterState_IDIncref() now calls _PyInterpreterState_IDInitref() and always increments id_refcount. (cherry picked from commit 32c5a174445ec93747240cd8472012276ed27acf)
* [3.8] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641)Erlend Egeberg Aasland2021-04-271-0/+1
| | | | | (cherry picked from commit bf0c7c0147b73738cac63eb27ef48430284ff121) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640)Miss Islington (bot)2021-04-271-0/+1
| | | | | (cherry picked from commit ce827816442613f982c356aa2f434c3c8a0c8917) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 ↵Pete Wicken2021-04-262-0/+2
| | | | | | | | networks (GH-18757) (#25536) The `.hosts()` method now returns the single address present in a /32 or /128 network.. (cherry picked from commit 8e9c47a947954c997d4b725f4551d50a1d896722) Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
* Fix thread locks in zlib module may go wrong in rare case (#22132)Ma Lin2021-04-261-0/+1
| | | Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
* [3.8] bpo-34463: Make python tracebacks identical to C tracebacks for (#23899)Irit Katriel2021-04-261-0/+1
| | | | | | | | | | | | | | * [3.8] bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors without a lineno (GH-23427) (cherry picked from commit 069560b1171eb6385121ff3b6331e8814a4e7454) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> * 📜🤖 Added by blurb_it. * added missing newline in test Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24212)Miss Islington (bot)2021-04-261-0/+1
| | | | | | | Before, using the * operator to repeat a bytearray would copy data from the start of the internal buffer (ob_bytes) and not from the start of the actual data (ob_start). (cherry picked from commit 61d8c54f43a7871d016f98b38f86858817d927d5) Co-authored-by: Tobias Holl <TobiasHoll@users.noreply.github.com>
* bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) ↵Miss Islington (bot)2021-04-262-0/+3
| | | | | | | | | (GH-25636) (cherry picked from commit 8a307e488d596914a7a5df6b2fdd945f8ce81e69) Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com> Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
* bpo-43534: Fix the turtle module working with multiple root windows GH-25594Miss Islington (bot)2021-04-261-0/+1
| | | | | (cherry picked from commit 8af929fc76f21fb123f6a47cb3ebcf4e5b758dea) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as ↵Miss Islington (bot)2021-04-252-0/+4
| | | | | | | | dialogs by window managers on macOS and X Window (GH-25187). (GH-25588) (GH-25592) (cherry picked from commit 3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c) (cherry picked from commit 9a165399aec930f27639dd173426ccc33586662b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() ↵Miss Islington (bot)2021-04-251-0/+2
| | | | | | | transitient again (GH-24923) (cherry picked from commit b5adc8a7e5c13d175b4d3e53b37bc61de35b1457) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 ↵Stéphane Bidoul2021-04-241-0/+1
| | | | | | | | (GH-25576) (GH-25579) Update bundled pip to 21.1 and setuptools to 56.0.0. (cherry picked from commit 196983563d05e32d2dcf217e955a919f9e0c25e1) Co-authored-by: Stéphane Bidoul <stephane.bidoul@acsone.eu>
* bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)Miss Islington (bot)2021-04-231-0/+2
| | | | | (cherry picked from commit 3513d55a617012002c3f82dbf3cec7ec1abd7090) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] bpo-43920: Make load_verify_locations(cadata) error message consistent ↵Christian Heimes2021-04-231-0/+2
| | | | | | | | (GH-25554) (GH-25556) Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit b9ad88be0304136c3fe5959c65a5d2c75490cd80) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an ↵Miss Islington (bot)2021-04-221-0/+2
| | | | | | | invalid filename (GH-25529) (cherry picked from commit 4696f1285d83dd7b69f459c63e14080b1f87f797) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)Miss Islington (bot)2021-04-221-0/+3
| | | | | | It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata. (cherry picked from commit fe63a401a9b3ca1751b81b5d6ddb2beb7f3675c1) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of ↵Miss Islington (bot)2021-04-221-0/+6
| | | | | | | | | | sys.getwindowsversion() (GH-25500) The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version. Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part). sys.getwindowsversion() is not updated to avoid launching executables from that module. (cherry picked from commit 2a3f4899c63806439e5bcea0c30f7e6a6295a763) Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
* bpo-26227: Fixes decoding of host names on Windows from ANSI instead of ↵Miss Islington (bot)2021-04-211-0/+2
| | | | | | | UTF-8 (GH-25510) (cherry picked from commit dc516ef8395d15da0ab225eb0dceb2e0581f51ca) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-43472: Ensure PyInterpreterState_New audit events are raised when called ↵Miss Islington (bot)2021-04-211-0/+3
| | | | | | | through _xxsubinterpreters module (GH-25506) (cherry picked from commit 7b86e47617d81a4b14d929743425f448971e8c86) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) ↵Christian Heimes2021-04-171-0/+1
| | | | | | | | (GH-25452) Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not copy hostflags from *struct SSL_CTX* to *struct SSL*. (cherry picked from commit 330b49e397168df789fd0dd20cfe7e81b8e47258)
* bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818) ↵Miss Islington (bot)2021-04-161-0/+3
| | | | | | | | | | | | | | (#25345) * coerce bytes separator to string * Add news * Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst (cherry picked from commit b38601d49675d90e1ee6faa47f7adaeca992d02d) 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-43842: Fix race condition in test_logging SMTP test (GH-25436) ↵Victor Stinner2021-04-161-0/+4
| | | | | | | | | | (GH-25437) (GH-25440) Fix a race condition in the SMTP test of test_logging. Don't close a file descriptor (socket) from a different thread while asyncore.loop() is polling the file descriptor. (cherry picked from commit 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603) (cherry picked from commit e1903e11a3d42512effe336026e0c67f602e5848)
* [3.8] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25392)Miss Islington (bot)2021-04-131-0/+2
| | | | | | | | | | | The new checks are only executed when one or more OpenSSL-related files are modified. The checks run a handful of networking and hashing test suites. All SSL checks are optional. This PR also introduces ccache to speed up compilation. In common cases it speeds up configure and compile time from about 90 seconds to less than 30 seconds. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 8fa1489365e7af8b90286c97db55a2dc60a05cde) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* [3.8] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) ↵Christian Heimes2021-04-131-0/+2
| | | | | | (GH-25383) Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit a4833883c9b81b6b272cc7c5b67fa1658b65304c)
* [3.8] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are ↵Ethan Furman2021-04-121-0/+1
| | | | | | | released (GH-25350). (GH-25369) (cherry picked from commit 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25332)Miss Islington (bot)2021-04-101-0/+1
|
* bpo-43105: Importlib now resolves relative paths when creating module spec ↵Steve Dower2021-04-091-0/+2
| | | | objects from file locations (GH-25121)
* [3.8] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25311)Christian Heimes2021-04-091-0/+4
| | | | | (cherry picked from commit 150af7543214e1541fa582374502ac1cd70e8eb4) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)Miss Islington (bot)2021-04-091-0/+1
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372) Co-authored-by: Christian Heimes <christian@python.org>
* [3.8] bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error ↵Miss Islington (bot)2021-04-091-0/+2
| | | | | | | case (GH-25303) (GH-25306) (cherry picked from commit d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf) Co-authored-by: Christian Heimes <christian@python.org>
* [3.8] bpo-43791: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304) ↵Miss Islington (bot)2021-04-091-0/+2
| | | | | | | | | | | (GH-25308) Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 5151d642004c59cce58d669be85d9a5e987f51d3) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391)Miss Islington (bot)2021-04-071-0/+1
| | | | | | | | | | Fix Regular Expression Denial of Service (ReDoS) vulnerability in urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex has quadratic worst-case complexity and it allows cause a denial of service when identifying crafted invalid RFCs. This ReDoS issue is on the client side and needs remote attackers to control the HTTP server. (cherry picked from commit 7215d1ae25525c92b026166f9d5cac85fb1defe1) Co-authored-by: Yeting Li <liyt@ios.ac.cn>
* bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213)Miss Islington (bot)2021-04-061-0/+2
| | | | | | | Earlier releases were mislabelled and included 1.1.1i again. The tag/directory name is updated to ensure that builds get the fresh bits. However, the openssl-bin-1.1.1k tag in the repository has been forcibly updated, so fresh builds will be fine even without this change. (cherry picked from commit 611aa39142f156508945ac312724474c493a6691) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] Fix blurb for bpo-43176. (GH-25215) (GH-25218)Miss Islington (bot)2021-04-061-1/+1
| | | | | | | | (cherry picked from commit 1744c96ebc98b240f2564f75191097704b37244f) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> Automerge-Triggered-By: GH:ericvsmith
* bpo-43176: Fix processing of empty dataclasses (GH-24484)Miss Islington (bot)2021-04-061-0/+1
| | | | | | | | When a dataclass inherits from an empty base, all immutability checks are omitted. This PR fixes this and adds tests for it. Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 376ffc6ac491da74920aed1b8e35bc371cb766ac) Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
* bpo-36470: Allow dataclasses.replace() to handle InitVars with default ↵Miss Islington (bot)2021-04-051-0/+2
| | | | | | | | | | | | values (GH-20867) (GH-25201) Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com> Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 75220674c07abfc90c2cd7862d04cfa2e2354450) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Merge tag 'v3.8.9' into 3.8Łukasz Langa2021-04-0227-68/+276
|\ | | | | | | Python 3.8.9
| * Python 3.8.9v3.8.9Łukasz Langa2021-04-0227-68/+276
| |
* | [3.9] bpo-26053: Fix args echoed by pdb run command (GH-25149)Miss Islington (bot)2021-04-021-0/+1
|/ | | | | | | | | | | | * 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) (cherry picked from commit 7ad56e254519047aeb9c669b9ea2f2bf0acfd401) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-37945: Fix test_locale.test_getsetlocale_issue1813() (GH-25110) (GH-25113)Miss Islington (bot)2021-03-311-0/+2
| | | | | | Skip the test if setlocale() fails. (cherry picked from commit f3ab670fea75ebe177e3412a5ebe39263cd428e3) Co-authored-by: Victor Stinner <vstinner@python.org>