| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strings (GH-114879) (GH-115353)
Immediate merits:
* eliminate complex workarounds for 'z' format support
(NOTE: mpdecimal recently added 'z' support, so this becomes
efficient in the long term.)
* fix 'z' format memory leak
* fix 'z' format applied to 'F'
* fix missing '#' format support
Suggested and prototyped by Stefan Krah.
Fixes gh-114563, gh-91060
(cherry picked from commit 72340d15cdfdfa4796fdd7c702094c852c2b32d2)
Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: Stefan Krah <skrah@bytereef.org>
|
|
|
|
|
|
| |
gh-115285: Fix `test_dataclasses` with `-OO` mode (GH-115286)
(cherry picked from commit 4297d7301b97aba2e0df9f9cc5fa4010e53a8950)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
| |
Also add more tests for LoggerAdapter.
Also support stacklevel in LoggerAdapter._log().
(cherry picked from commit 91822018eeba12a6c9eabbc748363b2fd4291b30)
|
|
|
|
|
|
|
|
|
|
| |
* Class methods no longer have "method of builtins.type instance" note.
* Corresponding notes are now added for class and unbound methods.
* Method and function aliases now have references to the module or the
class where the origin was defined if it differs from the current.
* Bound methods are now listed in the static methods section.
* Methods of builtin classes are now supported as well as methods of
Python classes.
(cherry picked from commit 2939ad02be62110ffa2ac6c4d9211c85e1d1720f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unsigned integer type (GH-115029) (GH-115294)
Setters for members with an unsigned integer type now support
the same range of valid values for objects that has a __index__()
method as for int.
Previously, Py_T_UINT, Py_T_ULONG and Py_T_ULLONG did not support
objects that has a __index__() method larger than LONG_MAX.
Py_T_ULLONG did not support negative ints. Now it supports them and
emits a RuntimeWarning.
(cherry picked from commit d9d6909697501a2604d5895f9f88aeec61274ab0)
|
|
|
|
|
|
|
| |
Trailing "**" no longer allows to match files and non-existing paths in
recursive glob().
(cherry picked from commit aeffc7f8951e04258f0fd8cadfa6cd8b704730f6)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
| |
(GH-115288)
Feeding the parser by too small chunks defers parsing to prevent
CVE-2023-52425. Future versions of Expat may be more reactive.
(cherry picked from commit 4a08e7b3431cd32a0daf22a33421cd3035343dc4)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-115275) (#115280)
gh-115274: Fix direct invocation of `testmock/testpatch.py` (GH-115275)
(cherry picked from commit f8e9c57067e32baab4ed2fd824b892c52ecb7225)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
| |
gh-115249: Fix `test_descr` with `-OO` mode (GH-115250)
(cherry picked from commit 1f23837277e604f41589273aeb3a10377d416510)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
| |
gh-115254: Fix `test_property` with `-00` mode (GH-115255)
(cherry picked from commit b70a68fbd6b72a25b5ef430603e39c9e40f40d29)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
| |
(cherry picked from commit 33f56b743285f8419e92cfabe673fa165165a580)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
| |
(cherry picked from commit 597fad07f7bf709ac7084ac20aa3647995759b01)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
iterable (GH-114662) (#115234)
gh-114552: Update `__dir__` method docs: it allows returning an iterable (GH-114662)
(cherry picked from commit e19103a346f0277c44a43dfaebad9a5aa468bf1e)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
|
|
|
|
|
| |
(#115227)
gh-115165: Fix `typing.Annotated` for immutable types (GH-115213)
The return value from an annotated callable can raise any exception from
__setattr__ for the `__orig_class__` property.
(cherry picked from commit 564385612cdf72c2fa8e629a68225fb2cd3b3d99)
Co-authored-by: dave-shawley <daveshawley@gmail.com>
|
|
|
|
|
|
|
| |
io.BufferedRandom.read1() (GH-115163) (GH-115205)
(cherry picked from commit 846fd721d518dda88a7d427ec3d2c03c45d9fa90)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-114871) (GH-114993)
Update documentation with `__new__` and `__init__` entries.
Support use of `auto()` in tuple subclasses on member assignment lines. Previously, auto() was only supported on the member definition line either solo or as part of a tuple:
RED = auto()
BLUE = auto(), 'azul'
However, since Python itself supports using tuple subclasses where tuples are expected, e.g.:
from collections import namedtuple
T = namedtuple('T', 'first second third')
def test(one, two, three):
print(one, two, three)
test(*T(4, 5, 6))
GH- 4 5 6
it made sense to also support tuple subclasses in enum definitions.
(cherry picked from commit ff7588b729a2a414ea189a2012904da3fbd1401c)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
|
|
|
|
|
|
|
| |
(GH-115155)
(cherry picked from commit 4a7f63869aa61b24a7cc2d33f8a5e5a7fd0d76a4)
Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
(GH-115139) (#115140)
gh-114828: Fix __class__ in class-scope inlined comprehensions (GH-115139)
(cherry picked from commit fedbf77191ea9d6515b39f958cc9e588d23517c9)
Co-authored-by: Carl Meyer <carl@oddbird.net>
|
|
|
|
|
|
|
|
|
|
| |
(GH-115100)
To pass tests when executed through a Python symlink.
(cherry picked from commit 71239d50b54c90afd3fdde260848e0c6d73a5c27)
Co-authored-by: Artem Mukhin <artem.m.mukhin@gmail.com>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
|
| |
|
|
|
|
|
|
|
| |
(GH-115098)
(cherry picked from commit 76108b8b05040fc49a6bc50eb2e990576595c57c)
Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-106234) (GH-115081)
(cherry picked from commit d7334e2c2012defaf7aae920d6a56689464509d1)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
| |
methods without params (#115016) (#115067)
(cherry picked from commit 09096a1647913526a3d4fa69a9d2056ec82a8f37)
|
|
|
|
|
|
|
|
| |
(GH-114814) (GH-115036)
For example "--option=--".
(cherry picked from commit 4aa4f0906df9fc9c6c6f6657f2c521468c6b1688)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
| |
(#114980)
Also improve exception message.
(cherry picked from commit 94ec2b9c9ce898723c3fe61fbc64d6c8f4f68700)
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
|
|
|
|
|
|
|
|
| |
Test all integer member types with extreme values and values outside of
the valid range. Test support of integer-like objects. Test warnings for
wrapped out values.
(cherry picked from commit 15f6f048a6ecdf0f6f4fc076d013be3d110f8ed6)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
| |
an existing directory (GH-113837) (#115006)
* fix the usage of dst and destination in shutil.move doc
* update shutil.move doc
(cherry picked from commit da8f9fb2ea65cc2784c2400fc39ad8c800a67a42)
Co-authored-by: Dai Wentao <dwt136@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
(GH-114391) (GH-115001)
* Fix a RuntimeWarning emitted when assign an integer-like value that
is not an instance of int to an attribute that corresponds to a C
struct member of type T_UINT and T_ULONG.
* Fix a double RuntimeWarning emitted when assign a negative integer value
to an attribute that corresponds to a C struct member of type T_UINT.
(cherry picked from commit 3ddc5152550ea62280124c37d0b4339030ff7df4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unbinds "funcid" (GH-113955) (GH-114997)
Previously, "tag_unbind(tag, sequence, funcid)" methods of Text and
Canvas widgets destroyed the current binding for "sequence", leaving
"sequence" unbound, and deleted the "funcid" command.
Now they remove only "funcid" from the binding for "sequence", keeping
other commands, and delete the "funcid" command.
They leave "sequence" unbound only if "funcid" was the last bound command.
(cherry picked from commit 7e42fddf608337e83b30401910d76fd75d5cf20a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-114659) (GH-114995)
(cherry picked from commit 0ea366240b75380ed7568acbe95d72e481a734f7)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
|
|
|
|
|
|
|
|
| |
3.12 (GH-106588)" (GH-114470) (GH-114994)
This reverts commit 8fc071345b50dd3de61ebeeaa287ccef21d061b2.
(cherry picked from commit ecabff98c41453f15ecd26ac255d531b571b9bc1)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
gh-114965: Updated bundled pip to 24.0 (gh-114966)
Updated bundled pip to 24.0
(cherry picked from commit a4c298c1494b602a9650b597aad50b48e3fa1f41)
|
|
|
|
|
|
|
|
| |
top of a file (GH-114960) (GH-114963)
Also, add tests common to tarfile and zipfile.
(cherry picked from commit 96bce033c4a4da7112792ba335ef3eb9a3eb0da0)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
| |
Bump ruff to 0.2.0 (GH-114932)
(cherry picked from commit 920b89f62751e64a35fa1bebc03701af6d6f31f2)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
|
|
|
|
|
| |
(GH-103821) (GH-114901)
Also fix test_mousewheel: do not skip a check which was broken due to incorrect
delta on Aqua and XQuartz, and probably not because of `.update_idletasks()`.
(cherry picked from commit d25d4ee60cc789a8b9c222859bb720ade1ab2e30)
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
|
|
|
|
|
|
|
| |
(GH-105228) (GH-114860)
(cherry picked from commit 4dbb198d279a06fed74ea4c38f93d658baf38170)
Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
|
|
|
|
|
|
|
| |
(GH-107462) (GH-114858)
(cherry picked from commit 0bf42dae7e73febc76ea96fd58af6b765a12b8a7)
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
|
|
|
|
|
|
|
|
| |
(#114829)
gh-109534: fix reference leak when SSL handshake fails (GH-114074)
(cherry picked from commit 80aa7b3688b8fdc85cd53d4113cb5f6ce5500027)
Co-authored-by: Jamie Phan <jamie@ordinarylab.dev>
|
|
|
|
|
|
|
|
|
|
| |
(GH-114755) (GH-114798)
Prior to gh-114269, the iterator returned by ElementTree.iterparse was
initialized with the root attribute as None. This restores the previous
behavior.
(cherry picked from commit 66f95ea6a65deff547cab0d312b8c8c8a4cf8beb)
Co-authored-by: Sam Gross <colesbury@gmail.com>
|
|
|
|
|
|
|
|
| |
module (GH-114761) (#114767)
gh-106392: Fix inconsistency in deprecation warnings in datetime module (GH-114761)
(cherry picked from commit dc4cd2c9ba60e2ee7e534e2f6e93c4c135df23b9)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-114722)
The limit was removed in 66c88ce30ca2b23daa37038e1a3c0de98f241f50 (GH-4109).
(cherry picked from commit 0f54ee4c6cdba74492183eb2dd142393c7dba403)
Co-authored-by: Steven Ward <planet36@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-114655)
(cherry picked from commit 7a470541e2bbc6f3e87a6d813e2ec42cf726de7a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
EmailPolicy.fold() (GH-6986) (GH-114606)
It now always encodes non-ASCII characters in headers if utf8 is false.
(cherry picked from commit 504334c7be5a56237df2598d338cd494a42fca4c)
Co-authored-by: Rito Takeuchi <licht-t@outlook.jp>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
`requires_resource('console')` decorator (GH-114565)
(cherry picked from commit 33ae9895d4ac0d88447e529038bc4725ddd8c291)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
|
|
|
|
|
|
|
| |
(GH-114556)
(cherry picked from commit e721adf4bd47b20ba0a93ad6471084de31bf20c7)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
concurrent.futures (GH-114489)
This was left out of the 3.12 backport for three related issues:
- gh-107219 (which adds `self.call_queue._writer.close()` to `_ExecutorManagerThread` in `concurrent.futures`)
- gh-109370 (which changes this to be only called on Windows)
- gh-109047 (which moves the call to `multiprocessing.Queue`'s `_terminate_broken`)
Without this change, ProcessPoolExecutor sometimes hangs on Windows
when a worker process is terminated.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
to start (GH-114249) (GH-114516)
(cherry picked from commit ce75b4c26d18dcd840fd2e7ee362a84209648d06)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
(GH-114269) (GH-114499)
The iterator returned by ElementTree.iterparse() may hold on to a file
descriptor. The reference cycle prevented prompt clean-up of the file
descriptor if the returned iterator was not exhausted.
(cherry picked from commit ce01ab536f22a3cf095d621f3b3579c1e3567859)
Co-authored-by: Sam Gross <colesbury@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-114343) (#114488)
gh-108303: Move `.whl` test files to `Lib/test/wheeldata/` (GH-114343)
(cherry picked from commit ba253a4794ae2d35a6f6df46a98a1ed38bd61268)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|