| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
(cherry picked from commit 3ed4d251587c36c3853daf42602eaad121b59bba)
Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
(GH-18315)
(cherry picked from commit 5305cc9dbfe8a5a0ab666511f3ba7f026c8983f8)
Co-authored-by: idomic <michael.ido@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
(GH-18421) (GH-18423)
(cherry picked from commit c6dedde160a9fce5d049e860f586ad8f93aec822)
Co-authored-by: sweeneyde <36520290+sweeneyde@users.noreply.github.com>
Co-authored-by: sweeneyde <36520290+sweeneyde@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
(GH-17884)
Minor fix in documentation:
- `sys.__unraisablehook__` is new in version 3.8
- Optional `sep` and `bytes_per_sep` parameters for `bytearray.hex` is also supported in Python 3.8 (just like `bytes.hex`)
(cherry picked from commit 0edc2c7678266c39a7ceb2df885cb050f887e32b)
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-18405) (GH-18408)
(cherry picked from commit d2e1098641f98594702ef29049c3c4a3f394786f)
https://bugs.python.org/issue39579
Automerge-Triggered-By: @gvanrossum
|
| |
|
|
|
| |
(cherry picked from commit 446463f8dbce0556be8020914f37089b63bb8ab6)
Co-authored-by: Julien Palard <julien@palard.fr>
|
| |
|
|
|
|
|
|
| |
To print the exports to stdout, the gendef command requires the option "-". Without this option, no output is generated.
(cherry picked from commit 2545fa87628b4caca519da8aeb0eeef368b9dc0d)
Co-authored-by: Baljak <baljci@hotmail.com>
|
| |
|
|
|
|
|
|
| |
Some numerator types used (specifically NumPy) decides to not
return a Python boolean for the "a != b" operation. Using the equivalent
call to bool() guarantees a bool return also for such types.
(cherry picked from commit 427c84f13f7719e6014a21bd1b81efdc02a046fb)
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| |
|
|
|
| |
(cherry picked from commit 54b4f14712b9350f11c983f1c8ac47a3716958a7)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 787b6d548c250f36df6d3f3179f60d754c8aa5e3)
Co-authored-by: schwarzichet <15522755+schwarzichet@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 89ae20b30e4543f379ee647c965eb46200556496)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
|
| |
|
|
|
|
|
| |
modules (GH-17824)
(cherry picked from commit 95f60010219e142a436fae18e1695cbc45407afe)
Co-authored-by: Saiyang Gou <gousaiyang@163.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When called on a closed object, readinto() segfaults on account
of a write to a freed buffer:
==220553== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==220553== Access not within mapped region at address 0x2A
==220553== at 0x48408A0: memmove (vg_replace_strmem.c:1272)
==220553== by 0x58DB0C: _buffered_readinto_generic (bufferedio.c:972)
==220553== by 0x58DCBA: _io__Buffered_readinto_impl (bufferedio.c:1053)
==220553== by 0x58DCBA: _io__Buffered_readinto (bufferedio.c.h:253)
Reproducer:
reader = open ("/dev/zero", "rb")
_void = reader.read (42)
reader.close ()
reader.readinto (bytearray (42)) GH-GH-GH- BANG!
The problem exists since 2012 when commit dc469454ec added code
to free the read buffer on close().
Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
(cherry picked from commit cb1c0746f277052e45a60d6c436a765e34722821)
Co-authored-by: Philipp Gesang <phg@phi-gamma.net>
|
| |
|
|
|
|
|
|
| |
Adds an additional assertion check based on a race condition for `test__xxsubinterpreters.DestroyTests.test_still_running` discovered in the bpo issue.
https://bugs.python.org/issue37224
(cherry picked from commit f03a8f8d5001963ad5b5b28dbd95497e9cc15596)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
|
| |
|
|
|
|
|
|
| |
Improvements in listsort.txt and a comment in sortperf.py.
Automerge-Triggered-By: @csabella
(cherry picked from commit 24e5ad4689de9adc8e4a7d8c08fe400dcea668e6)
Co-authored-by: Stefan Pochmann <stefan.pochmann@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-16973)
(cherry picked from commit 5807efd4c396d5718325e21f5a14e324a77ff77c)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit b94737a4af96b29bd4c025724f671e7bc0f6b6f1)
Co-authored-by: James Corbett <james.h.corbett@gmail.com>
|
| |
|
|
|
|
|
| |
TestCase.shortDescription (GH-18175) (#18323)
(cherry picked from commit 032de7324e30c6b44ef272cea3be205a3d768759)
Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Pickler instance (GH-18266) (#18316)
https://bugs.python.org/issue39492
Automerge-Triggered-By: @pitrou
(cherry picked from commit 0f2f35e)
Co-authored-by: Pierre Glaser <pierreglaser@msn.com>
|
| |
|
|
|
|
|
|
|
| |
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
(cherry picked from commit bfdeaa37b3df7466624c17f9450d2bd1c3d95edf)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
| |
Skip test_zipfile.test_add_file_after_2107() if time.localtime()
fails with OverflowError. It is the case on AIX 6.1 for example.
(cherry picked from commit c232c9110cfefa0935cbf158e35e91746a8a9361)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
| |
|
|
|
|
|
|
|
| |
(GH-18234)
https://bugs.python.org/issue39401
Automerge-Triggered-By: @zooba
|
| |
|
|
|
| |
(cherry picked from commit 2e6569b6692298fcc9aae0df3eb3181adb2a5099)
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace check for whether something is a method in the mock module. The
previous version fails on PyPy, because there no method wrappers exist
(everything looks like a regular Python-defined function). Thus the
isinstance(getattr(result, '__get__', None), MethodWrapperTypes) check
returns True for any descriptor, not just methods.
This condition could also return erroneously True in CPython for
C-defined descriptors.
Instead to decide whether something is a method, just check directly
whether it's a function defined on the class. This passes all tests on
CPython and fixes the bug on PyPy.
(cherry picked from commit a327677905956ae0b239ff430a1346dfe265709e)
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
|
| |
|
|
|
|
|
|
|
|
|
| |
XFS filesystem is limited to 32-bit timestamp, but the utimensat()
syscall doesn't fail. Moreover, there is a VFS bug which returns
a cached timestamp which is different than the value on disk.
https://bugzilla.redhat.com/show_bug.cgi?id=1795576
https://bugs.python.org/issue39460GH-msg360952
(cherry picked from commit 3cb49b62e61208efcefbc04414e769fc173f205d)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
| |
|
|
|
| |
(cherry picked from commit 35eac4500a8bd89b087407f59ba337343b22d403)
Co-authored-by: Julien Palard <julien@palard.fr>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some of the *SetItem methods in the C API steal a reference to the
given value. This annotates the better behaved ones to assure the
reader that these are not the ones with the inconsistent behaviour.
* 📜🤖 Added by blurb_it.
* make docs consistent with signature
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit e1e80002e28e1055f399a20918c49d50d093709e)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 0be3246d4f9c8eddcd55491901d95b09fe163f15)
Co-authored-by: Adam Meily <ameily@users.noreply.github.com>
|
| |
|
|
|
|
| |
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 148610d88a2785751ed435a4e60f07a9f1bc50a6)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-18093)
(cherry picked from commit 13c1c3556f2c12d0be2af890fabfbf44280b845c)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Windows (GH-17961)
In bpo-36264 os.path.expanduser was changed to ignore HOME on Windows.
Path.expanduser/home still honored HOME despite being documented as behaving the same
as os.path.expanduser. This makes them also ignore HOME so that both implementations
behave the same way again.
(cherry picked from commit c45a2aa9e255b5c7c211faa79f6b23895b64ab27)
Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-18227)
* Change the source for the SAT data to a primary source.
* Fix typo in the standard deviation
* Clarify that the binomial probabalities are just for the Python room.
(cherry picked from commit 01bf2196d842fc20667c5336e0a7a77eb4fdc25c)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
|
| |
|
|
|
|
|
|
| |
Whether or not overlap regions for self-intersecting polygons
or multiple shapes are filled depends on the operating system graphics,
typeof overlap, and number of overlaps.
(cherry picked from commit 2824c45a0a020f12f27da7e7162e8636c21bf869)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Expose dialog buttons to test code and complete their test coverage.
Complete test coverage for highlights and keys tabs.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit dd023ad1619b6f1ab313986e8953eea32c18f50c)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 7023288dc500008609e7a4d12ae710c2093c3fc6)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
|
| |
|
|
|
|
|
| |
(GH-18190)
(cherry picked from commit 62865f4532094017a9b780b704686ca9734bc329)
Co-authored-by: Matthew Kokotovich <mkokotovich@gmail.com>
|
| | |
|
| |
|
|
|
|
|
|
| |
(GH-17875)
(cherry picked from commit 2e9012a3e1e316c54e27f51ba5849ba06eab7da2)
Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
|
| |
|
|
|
|
| |
(cherry picked from commit 4b09dc79f4d08d85f2cc945563e9c8ef1e531d7b)
Co-authored-by: Windson yang <wiwindson@outlook.com>
|
| |
|
|
|
|
| |
(cherry picked from commit 7de617455ed788e6730c40cf854c4b72b0432194)
Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
|
| |
|
|
|
|
|
|
| |
Fixed the name of the contributor (@selik).
(cherry picked from commit 9bfb4a7061a3bc4fc5632bccfdf9ed61f62679f7)
Co-authored-by: fireattack <human.peng@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
(GH-16784) (GH-18167)
If an autospecced object is attached using attach_mock the
child would be a function with mock object as attribute from
which signature has to be derived.
(cherry picked from commit 66b00a9d3aacf6ed49412f48743e4913104a2bb3)
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
|
| |
|
|
|
|
| |
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit d0d9fa8c5e30aff71b6d5e8b2673396622f33270)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
| |
|
|
|
|
| |
Use `from ... import ...` to ensure module is fully loaded before accessing its attributes.
(cherry picked from commit 9017e0bd5e124ae6d2ed94b9e9cacb2e86270980)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
|
| |
* Add test for nested async decorator patch.
* Add test for side_effect and wraps with a function.
* Add test for side_effect with an exception in the iterable.
(cherry picked from commit 54f743eb315f00b0ff45e115dde7a5d506034153)
Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
|
| |
|
|
|
|
|
|
| |
Some portions of the pickle documentation hadn't been updated for the pickle protocol changes in Python 3.8 (new protocol 5, default protocol 4). This PR fixes those docs.
https://bugs.python.org/issue39426
(cherry picked from commit e9652e8d58392f5022759ba06b444ce970eb12db)
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-18117) (GH-18148)
When communicate() is called in a loop, it crashes when the child process
has already closed any piped standard stream, but still continues to be running
Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>.
(cherry picked from commit d3ae95e1e945ed20297e1c38ba43a18b7a868ab6)
Co-authored-by: Alex Rebert <alex@forallsecure.com>
https://bugs.python.org/issue35182
|
| |
|
|
|
| |
(cherry picked from commit 7142df5ea23b4ce0efb72746b4b3b65414e8dcb1)
Co-authored-by: Shanavas M <shanavas.m2@gmail.com>
|