summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-87961: Remove outdated notes from functions that aren't in the Limited ↵Miss Islington (bot)2022-06-103-26/+0
| | | | | | | | | | | | API (GH-93581) (GH-93604) Nowadays everything that *is* in the Limited API has a note added automatically. These notes could mislead people to think that these functions could never be added to the limited API. Remove them. (cherry picked from commit 2c3fe5eeb2b64deb2132d9259e74b521c14fd92d) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609) (GH-93631)Miss Islington (bot)2022-06-104-2/+27
| | | | | | | | copy.copy() and copy.deepcopy() now always raise a TypeError if __reduce__() returns a tuple with length 6 instead of silently ignore the 6th item or produce incorrect result. (cherry picked from commit a365dd64c2a1f0d142540d5031003f24986f489f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-93491: Add support tier detection to configure (GH-93492)Miss Islington (bot)2022-06-105-1/+196
| | | | | | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Steve Dower <steve.dower@microsoft.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> (cherry picked from commit 3124d9a5aafb64431aa9facd0ae0e12201be77fa) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-90763: Modernise xx template module initialisation (GH-93078) (#93681)Erlend Egeberg Aasland2022-06-102-43/+54
| | | | | | | Use C APIs such as PyModule_AddType instead of PyModule_AddObject. Also remove incorrect module decrefs if module fails to initialise. (cherry picked from commit a87c9b538fbfc42883417c4d5e69f1a5922690e3) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for ↵Steve Dower2022-06-105-9/+151
| | | | | | | | | case-folding (GH-93591) * bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for case-folding (GH-32010) * Use AsWideCharString to avoid memory leaks in deprectated unicode converter Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-92434: Silence compiler warning in Modules/_sqlite/connection.c on 32-bit ↵Miss Islington (bot)2022-06-101-1/+1
| | | | | | | systems (GH-93090) (cherry picked from commit d8395eb38d3d05f74a7f348da81a280ad272b8c8) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* gh-90473: Skip get_config_h() tests on WASI (GH-93645)Miss Islington (bot)2022-06-092-2/+7
| | | | | (cherry picked from commit 6099611af5b9688f015ae4796501ce101a1c2f32) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] Improve logging documentation with example and additional cookbook ↵Miss Islington (bot)2022-06-092-2/+99
| | | | re… (GH-93644) (GH-93647)
* gh-90473: disable user site packages on WASI/Emscripten (GH-93633)Miss Islington (bot)2022-06-093-4/+6
| | | | | (cherry picked from commit 5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-79096: Protect cookie file created by ↵Łukasz Langa2022-06-093-11/+39
| | | | | | | | | | | | | | | | | | | | | | {LWP,Mozilla}CookieJar.save() (GH-93463) (GH-93636) Note: This change is not effective on Microsoft Windows. Cookies can store sensitive information and should therefore be protected against unauthorized third parties. This is also described in issue #79096. The filesystem permissions are currently set to 644, everyone can read the file. This commit changes the permissions to 600, only the creater of the file can read and modify it. This improves security, because it reduces the attack surface. Now the attacker needs control of the user that created the cookie or a ways to circumvent the filesystems permissions. This change is backwards incompatible. Systems that rely on world-readable cookies will breake. However, one could argue that those are misconfigured in the first place. Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Pascal Wittmann <mail@pascal-wittmann.de> Co-authored-by: Christian Heimes <christian@python.org>
* Doc: Update references and examples of old, unsupported OSes and uarches ↵Miss Islington (bot)2022-06-097-18/+29
| | | | | | | (GH-92791) (GH-93638) (cherry picked from commit a5ba0f4ebca5020f6c77718a20663e0ac6e194ac) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-93616: Fix env changed issue in test_modulefinder (GH-93617)Miss Islington (bot)2022-06-092-37/+40
| | | | | (cherry picked from commit cffa4f7854eb11e21c25026b24e9ccd14763c8d3) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-93575: Use correct way to calculate PyUnicode struct sizes ↵Christian Heimes2022-06-083-11/+25
| | | | | | | | | | | | (GH-93602) (GH-93613) * gh-93575: Use correct way to calculate PyUnicode struct sizes * Add comment to keep test_sys and test_unicode in sync * Fix case code < 256. (cherry picked from commit 5442561c1a094b68900198bade616da9ed509ac8) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-90473: Define HOSTRUNNER for WASI (GH-93606) (GH-93612)Christian Heimes2022-06-082-0/+6
| | | | | (cherry picked from commit 22df2e0322300d25c1255ceb73cacc0ebd96b20e) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-93584: Make all install+tests targets depends on all (GH-93589) ↵Christian Heimes2022-06-082-12/+18
| | | | | | | | | | | | | (GH-93603) All install targets use the "all" target as synchronization point to prevent race conditions with PGO builds. PGO builds use recursive make, which can lead to two parallel `./python setup.py build` processes that step on each others toes. "test" targets now correctly compile PGO build in a clean repo. (cherry picked from commit 243ed5439c32e8517aa745bc2ca9774d99c99d0f) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] GH-93481: Suppress expected deprecation warning in test_pyclbr ↵Irit Katriel2022-06-081-2/+7
| | | | | | | (GH-93483) (GH-93601) (cherry picked from commit f8eae6f5c35e9def07a732f6bc7744aae106f9b2) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* gh-93421: Update sqlite3 cursor.rowcount only after SQLITE_DONE (GH-93526)Miss Islington (bot)2022-06-083-8/+22
| | | | | (cherry picked from commit 875de61c296604f3a3a51e9d76355e0f1a24c6af) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* GH-93521: For dataclasses, filter out `__weakref__` slot if present in bases ↵Miss Islington (bot)2022-06-083-4/+61
| | | | | | | (GH-93535) (cherry picked from commit 5849af7a80166e9e82040e082f22772bd7cf3061) Co-authored-by: Bluenix <bluenixdev@gmail.com>
* Fix `PurePath.relative_to` links in the pathlib documentation. (GH-93268)Miss Islington (bot)2022-06-071-2/+2
| | | | | | These are currently broken as they refer to :meth:`Path.relative_to` rather than :meth:`PurePath.relative_to`, and `relative_to` is a method on `PurePath`. (cherry picked from commit 8ef7929baffd0038bcb38978a6a91ecc63bf0de2) Co-authored-by: jacksonriley <52106215+jacksonriley@users.noreply.github.com>
* gh-84461: Emscripten's faccessat() does not accept flags (GHß92353)Miss Islington (bot)2022-06-071-0/+3
| | | | | (cherry picked from commit 70690c7233aaad4431660a64daef81b5220e2ac1) Co-authored-by: Christian Heimes <christian@python.org>
* gh-57539: Increase calendar test coverage (GH-93468) (GH-93564)Miss Islington (bot)2022-06-073-0/+15
| | | | | | | | (cherry picked from commit f0d0be3493fc5855eccfe0fbb3f25bf12760041f) Co-authored-by: Sean Fleming Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-88831: In docs for asyncio.create_task, explain why strong references to ↵Miss Islington (bot)2022-06-072-1/+19
| | | | | | | | tasks are needed (GH-93258) (GH-93566) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 75ceae05c11461beda65e6170b67b0b42fd55cd0) Co-authored-by: Andreas Grommek <76997441+agrommek@users.noreply.github.com>
* gh-86986: bump min sphinx version to 3.2 (GH-93337) (GH-93561)Miss Islington (bot)2022-06-072-1/+2
| | | | | (cherry picked from commit 57e8ee7086bf3f5c50c901e9d5896275644bbb54) Co-authored-by: Davide Rizzo <sorcio@gmail.com>
* Grammar fix to socket error string (GH-93523) (GH-93560)Miss Islington (bot)2022-06-071-1/+1
| | | | | (cherry picked from commit 890c3be8fb10bc329de06fa9d3b18dd8d90aa8b5) Co-authored-by: Evorage <owner@evorage.com>
* Fix contributor name in WhatsNew 3.11 (GH-93556)Miss Islington (bot)2022-06-071-1/+1
| | | | | (cherry picked from commit 74039330f29461ac06297b6e55c91c89e649c990) Co-authored-by: Samodya Abeysiriwardane <379594+sransara@users.noreply.github.com>
* [docs] fix some asyncio.Barrier.wait docs grammar (GH-93552) (GH-93553)Miss Islington (bot)2022-06-061-2/+2
| | | | | | (cherry picked from commit 46fde1feb5fce0f8711ff8c0e1bab317b580d387) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* Remove action=None kwarg from Barrier docs (GH-93538) (GH-93551)Miss Islington (bot)2022-06-061-1/+1
| | | | | (cherry picked from commit 71c8f96971ead9b09fa381392b2c2188d36b5f59) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534) (GH-93550)Miss Islington (bot)2022-06-0620-5/+81
| | | | | | WASI does not have the ``chmod(2)`` syscall yet. (cherry picked from commit 22fed605e096eb74f3aa33f6d25aee76fdc2a3fa) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-90473: Skip POSIX tests that don't apply to WASI (GH-93536) (GH-93540)Christian Heimes2022-06-061-2/+9
| | | | | (cherry picked from commit 80a39daecd9ea7cf5593d98221032f8b8fb1c485) Co-authored-by: Christian Heimes <christian@python.org>
* gh-83728: Add hmac.new default parameter deprecation (GH-91939) (GH-93544)Miss Islington (bot)2022-06-061-0/+2
| | | | | (cherry picked from commit 56b5daf15970be449d44e91f08db84c698ac5506) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* asyncio.Barrier docs: Fix typo (GH-93371)Miss Islington (bot)2022-06-061-1/+1
| | | | | | taks -> tasks (cherry picked from commit 8584981a5894ba79fbabbfe7e3ef37ba6f3c2f14) Co-authored-by: Omer Katz <omer.katz@omerkatz.com>
* gh-90473: WASI requires proper open(2) flags (GH-93529)Miss Islington (bot)2022-06-063-2/+9
| | | | | (cherry picked from commit 4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98) Co-authored-by: Christian Heimes <christian@python.org>
* gh-93247: Fix assert function in asyncio locks test (GH-93248)Miss Islington (bot)2022-06-061-1/+1
| | | | | (cherry picked from commit 9081bbd036934ab435291db9d32d02fd42282951) Co-authored-by: Cyker Way <cykerway@gmail.com>
* gh-89973: Fix re.error in the fnmatch module. (GH-93072)Miss Islington (bot)2022-06-053-7/+140
| | | | | | | | Character ranges with upper bound less that lower bound (e.g. [c-a]) are now interpreted as empty ranges, for compatibility with other glob pattern implementations. Previously it was re.error. (cherry picked from commit 0902c3d8edf7ef67972dd95f6a21670f5d1a4251) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-90473: wasmtime does not support absolute symlinks (GH-93490)Miss Islington (bot)2022-06-055-23/+20
| | | | | (cherry picked from commit 6f8367d3489eff07139bc908fdf666fc904ca445) Co-authored-by: Christian Heimes <christian@python.org>
* gh-93442: Add test for _Py_CAST(nullptr). (gh-93505) (gh-93509)Miss Islington (bot)2022-06-051-0/+3
| | | | | | | (cherry picked from commit 713eb184b50f2b8b138fb01187ee32fa29a815c9) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com> Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* gh-93442: Make C++ version of _Py_CAST work with 0/NULL. (GH-93500) (gh-93507)Miss Islington (bot)2022-06-053-0/+21
| | | | | | | | | | | | | | | | | Add C++ overloads for _Py_CAST_impl() to handle 0/NULL. This will allow C++ extensions that pass 0 or NULL to macros using _Py_CAST() to continue to compile. Without this, you get an error like: invalid ‘static_cast’ from type ‘int’ to type ‘_object*’ The modern way to use a NULL value in C++ is to use nullptr. However, we want to not break extensions that do things the old way. Co-authored-by: serge-sans-paille (cherry picked from commit 8bcc3fa3453e28511d04eaa0aa7d8e1a3495d518) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com> Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* Fix missing word in sys.float_info docstring (GH-93489) (GH-93495)Miss Islington (bot)2022-06-041-1/+1
| | | | | | | (cherry picked from commit e12f34b6d8200508bd50cdc9c6c5637732ff56e7) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* gh-92886: Fix test that fails when running with `-O` in `test_imaplib.py` ↵Miss Islington (bot)2022-06-042-0/+2
| | | | | | | (GH-93237) (cherry picked from commit 8150b8cf7fe09d601246f5bdc6456a0e31f31bca) Co-authored-by: jackh-ncl <1750152+jackh-ncl@users.noreply.github.com>
* gh-93156 - fix negative indexing into absolute `pathlib.PurePath().parents` ↵Miss Islington (bot)2022-06-033-0/+9
| | | | | | | | | | | | | | (GH-93273) When a `_PathParents` object has a drive or a root, the length of the object is *one less* than than the length of `self._parts`, which resulted in an off-by-one error when `path.parents[-n]` was fed through to `self._parts[:-n - 1]`. In particular, `path.parents[-1]` was a malformed path object with spooky properties. This is addressed by adding `len(self)` to negative indices. (cherry picked from commit f32e6b48d12834ba3bde01ec21c14da33abd26d6) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* gh-84461: Skip dtrace/network tests that are enabled by -u all (GH-93473)Miss Islington (bot)2022-06-032-0/+7
| | | | | (cherry picked from commit 1a8a0ddb1c62ef9aff598e7e3e3a65cf35353932) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-68966: Make mailcap refuse to match unsafe filenames/types/params ↵Miss Islington (bot)2022-06-034-4/+46
| | | | | | | | | | (GH-91993) (GH-93458) (cherry picked from commit b9509ba7a9c668b984dab876c7926fe1dc5aa0ba) Co-authored-by: Petr Viktorin <encukou@gmail.com> Automerge-Triggered-By: GH:encukou
* test.pythoninfo: Fix typo, Py_REF_DEBUG => Py_TRACE_REFS (GH-93467)Miss Islington (bot)2022-06-031-1/+1
| | | | | (cherry picked from commit d8f40ead92b5a973cff3a30482a7659d3b46b1ba) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-93433: Fix dis doc example output (GH-93434) (GH-93460)Ken Jin2022-06-031-11/+19
| | | (cherry picked from commit debf4c1ec5f0bae44d50f889b8a7dc0c3ea1fc9d)
* gh-90473: Skip and document more failing tests on WASI (GH-93436)Miss Islington (bot)2022-06-039-6/+42
| | | | | | | | | | - Mark more ``umask()`` cases - ``dup()`` is not supported - ``/dev/null`` is not available - document missing features - mark more modules as not available (cherry picked from commit 069c96f84ccd302436be180c8628289cc0efa977) Co-authored-by: Christian Heimes <christian@python.org>
* gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945)Miss Islington (bot)2022-06-033-1/+25
| | | | | (cherry picked from commit b013804134b07894205b06744628f6b25b879d85) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* gh-93418: Fix an assert when an f-string expression is followed by an '=', ↵Miss Islington (bot)2022-06-023-1/+6
| | | | | | | | | but no closing brace. (gh-93419) (gh-93422) (cherry picked from commit ee70c70aa93d7a41cbe47a0b361b17f9d7ec8acd) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* Post 3.11.0b3Pablo Galindo2022-06-011-1/+1
|
* Python 3.11.0b3v3.11.0b3Pablo Galindo2022-06-017-9/+31
|
* gh-92597: Improve error message for AST nodes with invalid ranges (GH-93398) ↵Miss Islington (bot)2022-06-011-3/+3
| | | | | | | (GH-93414) (cherry picked from commit 8a221a853787c18d5acaf46f5c449d28339cde21) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>