| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
systems (GH-93090)
(cherry picked from commit d8395eb38d3d05f74a7f348da81a280ad272b8c8)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 6099611af5b9688f015ae4796501ce101a1c2f32)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
| |
re… (GH-93644) (GH-93647)
|
|
|
|
|
| |
(cherry picked from commit 5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
{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>
|
|
|
|
|
|
|
| |
(GH-92791) (GH-93638)
(cherry picked from commit a5ba0f4ebca5020f6c77718a20663e0ac6e194ac)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
|
|
|
|
|
| |
(cherry picked from commit cffa4f7854eb11e21c25026b24e9ccd14763c8d3)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
|
| |
(cherry picked from commit 22df2e0322300d25c1255ceb73cacc0ebd96b20e)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
|
|
|
| |
(GH-93483) (GH-93601)
(cherry picked from commit f8eae6f5c35e9def07a732f6bc7744aae106f9b2)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 875de61c296604f3a3a51e9d76355e0f1a24c6af)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
|
|
|
|
|
|
|
| |
(GH-93535)
(cherry picked from commit 5849af7a80166e9e82040e082f22772bd7cf3061)
Co-authored-by: Bluenix <bluenixdev@gmail.com>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
(cherry picked from commit 70690c7233aaad4431660a64daef81b5220e2ac1)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
(cherry picked from commit 57e8ee7086bf3f5c50c901e9d5896275644bbb54)
Co-authored-by: Davide Rizzo <sorcio@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 890c3be8fb10bc329de06fa9d3b18dd8d90aa8b5)
Co-authored-by: Evorage <owner@evorage.com>
|
|
|
|
|
| |
(cherry picked from commit 74039330f29461ac06297b6e55c91c89e649c990)
Co-authored-by: Samodya Abeysiriwardane <379594+sransara@users.noreply.github.com>
|
|
|
|
|
|
| |
(cherry picked from commit 46fde1feb5fce0f8711ff8c0e1bab317b580d387)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 71c8f96971ead9b09fa381392b2c2188d36b5f59)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
|
|
|
|
|
| |
WASI does not have the ``chmod(2)`` syscall yet.
(cherry picked from commit 22fed605e096eb74f3aa33f6d25aee76fdc2a3fa)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
| |
(cherry picked from commit 80a39daecd9ea7cf5593d98221032f8b8fb1c485)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
| |
(cherry picked from commit 56b5daf15970be449d44e91f08db84c698ac5506)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
|
|
|
|
|
|
| |
taks -> tasks
(cherry picked from commit 8584981a5894ba79fbabbfe7e3ef37ba6f3c2f14)
Co-authored-by: Omer Katz <omer.katz@omerkatz.com>
|
|
|
|
|
| |
(cherry picked from commit 4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
| |
(cherry picked from commit 9081bbd036934ab435291db9d32d02fd42282951)
Co-authored-by: Cyker Way <cykerway@gmail.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
(cherry picked from commit 6f8367d3489eff07139bc908fdf666fc904ca445)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
| |
(cherry picked from commit 713eb184b50f2b8b138fb01187ee32fa29a815c9)
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
(cherry picked from commit e12f34b6d8200508bd50cdc9c6c5637732ff56e7)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
|
|
|
|
|
|
|
| |
(GH-93237)
(cherry picked from commit 8150b8cf7fe09d601246f5bdc6456a0e31f31bca)
Co-authored-by: jackh-ncl <1750152+jackh-ncl@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
|
| |
(cherry picked from commit 1a8a0ddb1c62ef9aff598e7e3e3a65cf35353932)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
|
|
|
| |
(GH-91993) (GH-93458)
(cherry picked from commit b9509ba7a9c668b984dab876c7926fe1dc5aa0ba)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Automerge-Triggered-By: GH:encukou
|
|
|
|
|
| |
(cherry picked from commit d8f40ead92b5a973cff3a30482a7659d3b46b1ba)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
| |
(cherry picked from commit debf4c1ec5f0bae44d50f889b8a7dc0c3ea1fc9d)
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
| |
(cherry picked from commit b013804134b07894205b06744628f6b25b879d85)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
|
| |
(GH-93414)
(cherry picked from commit 8a221a853787c18d5acaf46f5c449d28339cde21)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
|