summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.8.2rc1v3.8.2rc1Łukasz Langa2020-02-1062-165/+705
|
* Grammar fix in tutorial (GH-18425) (GH-18426)Miss Islington (bot)2020-02-101-1/+1
| | | | | | (cherry picked from commit 3ed4d251587c36c3853daf42602eaad121b59bba) Co-authored-by: Don Kirkby <donkirkby@users.noreply.github.com>
* bpo-39128: Added happy_eyeballs_delay, interleave to function signature ↵Miss Islington (bot)2020-02-101-2/+3
| | | | | | | (GH-18315) (cherry picked from commit 5305cc9dbfe8a5a0ab666511f3ba7f026c8983f8) Co-authored-by: idomic <michael.ido@gmail.com>
* bpo-39590: make deque.__contains__ and deque.count hold strong references ↵Miss Islington (bot)2020-02-093-0/+17
| | | | | | | | | | (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>
* Doc: sys.__unraisablehook__ and bytearray.hex separators are new in 3.8 ↵Miss Islington (bot)2020-02-082-3/+15
| | | | | | | | | | | (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>
* [3.8] bpo-39579: Fix Attribute end_col_offset to point at the current node ↵Lysandros Nikolaou2020-02-083-2/+12
| | | | | | | | | | | | | | | (GH-18405) (GH-18408) (cherry picked from commit d2e1098641f98594702ef29049c3c4a3f394786f) https://bugs.python.org/issue39579 Automerge-Triggered-By: @gvanrossum
* bpo-39534: Doc: Clarify return in finally (GH-18324)Miss Islington (bot)2020-02-061-9/+27
| | | | | (cherry picked from commit 446463f8dbce0556be8020914f37089b63bb8ab6) Co-authored-by: Julien Palard <julien@palard.fr>
* Fix MinGW library generation command (GH-17917)Miss Islington (bot)2020-02-061-1/+1
| | | | | | | | 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>
* bpo-39274: Ensure Fraction.__bool__() returns a bool (GH-18017)Miss Islington (bot)2020-02-063-1/+41
| | | | | | | | 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>
* bpo-38149: Call sys.audit() only once per call for glob.glob(). (GH-18360)Miss Islington (bot)2020-02-062-1/+3
| | | | | (cherry picked from commit 54b4f14712b9350f11c983f1c8ac47a3716958a7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-39505: delete the redundant '/' in $env:VIRTUAL_ENV (GH-18290) (GH-18359)Miss Islington (bot)2020-02-051-1/+0
| | | | | (cherry picked from commit 787b6d548c250f36df6d3f3179f60d754c8aa5e3) Co-authored-by: schwarzichet <15522755+schwarzichet@users.noreply.github.com>
* bpo-39185 Add the d[etailed] and q[uiet] verbosity levels for msbuild (GH-17791)Miss Islington (bot)2020-02-052-0/+5
| | | | | (cherry picked from commit 89ae20b30e4543f379ee647c965eb46200556496) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
* bpo-39184: Add audit events to command execution functions in os and pty ↵Miss Islington (bot)2020-02-055-7/+56
| | | | | | | modules (GH-17824) (cherry picked from commit 95f60010219e142a436fae18e1695cbc45407afe) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* closes bpo-39510: Fix use-after-free in BufferedReader.readinto() (GH-18295)Miss Islington (bot)2020-02-043-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* bpo-37224: Improve test__xxsubinterpreters.DestroyTests (GH-18058)Miss Islington (bot)2020-02-041-1/+5
| | | | | | | | 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>
* Fixes in sorting descriptions (GH-18317)Miss Islington (bot)2020-02-042-9/+9
| | | | | | | | 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>
* bpo-38558: Link to further docs from walrus operator mention in tutorial ↵Miss Islington (bot)2020-02-032-3/+6
| | | | | | | (GH-16973) (cherry picked from commit 5807efd4c396d5718325e21f5a14e324a77ff77c) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* fixes typos in http.client documentation (GH-18300)Miss Islington (bot)2020-02-031-2/+2
| | | | | (cherry picked from commit b94737a4af96b29bd4c025724f671e7bc0f6b6f1) Co-authored-by: James Corbett <james.h.corbett@gmail.com>
* bpo-39450 Stripped whitespace before parsing the docstring in ↵Miss Islington (bot)2020-02-033-1/+12
| | | | | | | TestCase.shortDescription (GH-18175) (#18323) (cherry picked from commit 032de7324e30c6b44ef272cea3be205a3d768759) Co-authored-by: Steve Cirelli <scirelli+git@gmail.com>
* [3.8] bpo-39492: Fix a reference cycle between reducer_override and a ↵Antoine Pitrou2020-02-023-4/+43
| | | | | | | | | | | 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>
* bpo-38792: Remove IDLE shell calltip before new prompt. (GH-17150)Miss Islington (bot)2020-01-315-3/+9
| | | | | | | | | 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>
* bpo-39502: Skip test_zipfile.test_add_file_after_2107() on AIX (GH-18282)Miss Islington (bot)2020-01-302-1/+8
| | | | | | | 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>
* [3.8] bpo-39401: Avoid unsafe DLL load on Windows 7 and earlier (GH-18231) ↵Steve Dower2020-01-302-2/+5
| | | | | | | | | (GH-18234) https://bugs.python.org/issue39401 Automerge-Triggered-By: @zooba
* bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)Miss Islington (bot)2020-01-302-0/+2
| | | | | (cherry picked from commit 2e6569b6692298fcc9aae0df3eb3181adb2a5099) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
* bpo-39485: fix corner-case in method-detection of mock (GH-18255)Miss Islington (bot)2020-01-292-5/+4
| | | | | | | | | | | | | | | | | | | | 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>
* bpo-39460: Fix test_zipfile.test_add_file_after_2107() (GH-18247)Miss Islington (bot)2020-01-291-0/+12
| | | | | | | | | | | 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>
* Doc: Fix external links to functional programming tutorial. (GH-18249)Miss Islington (bot)2020-01-291-3/+3
| | | | | (cherry picked from commit 35eac4500a8bd89b087407f59ba337343b22d403) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-39153: Clarify C API *SetItem refcounting semantics (GH-18220)Miss Islington (bot)2020-01-294-6/+14
| | | | | | | | | | | | | | 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>
* bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158)Miss Islington (bot)2020-01-282-1/+2
| | | | | (cherry picked from commit 0be3246d4f9c8eddcd55491901d95b09fe163f15) Co-authored-by: Adam Meily <ameily@users.noreply.github.com>
* bpo-39287: Doc: Add UTF-8 mode section in using/windows. (GH-17935)Miss Islington (bot)2020-01-282-2/+44
| | | | | | Co-Authored-By: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit 148610d88a2785751ed435a4e60f07a9f1bc50a6) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-39393: Misleading error message on dependent DLL resolution failure ↵Miss Islington (bot)2020-01-282-2/+5
| | | | | | | (GH-18093) (cherry picked from commit 13c1c3556f2c12d0be2af890fabfbf44280b845c) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-38883: Don't use POSIX `$HOME` in `pathlib.Path.home/expanduser` on ↵Miss Islington (bot)2020-01-283-11/+20
| | | | | | | | | | | | 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>
* bpo-36018: Minor fixes to the NormalDist() examples and recipes. (GH-18226) ↵Miss Islington (bot)2020-01-281-5/+5
| | | | | | | | | | | | | (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>
* bpo-39392: Turtle overlap fill depends on OS (GH-18223)Miss Islington (bot)2020-01-272-0/+6
| | | | | | | | 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>
* [3.8] bpo-39390 shutil: fix argument types for ignore callback (GH-18122)mbarkhau2020-01-274-1/+52
|
* bpo-30780: Add IDLE configdialog tests (GH-3592)Miss Islington (bot)2020-01-274-31/+149
| | | | | | | | | 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>
* Ignore NEWS snippets in code coverage stats (GH-18194)Miss Islington (bot)2020-01-271-1/+1
| | | | | (cherry picked from commit 7023288dc500008609e7a4d12ae710c2093c3fc6) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* [3.8] bpo-39082: Allow AsyncMock to correctly patch static/class methods ↵Matthew Kokotovich2020-01-263-0/+26
| | | | | | | (GH-18190) (cherry picked from commit 62865f4532094017a9b780b704686ca9734bc329) Co-authored-by: Matthew Kokotovich <mkokotovich@gmail.com>
* bpo-36018: Add another example for NormalDist() (GH-18191) (GH-18192)Miss Islington (bot)2020-01-261-0/+36
|
* bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872) ↵Miss Islington (bot)2020-01-251-1/+1
| | | | | | | | (GH-17875) (cherry picked from commit 2e9012a3e1e316c54e27f51ba5849ba06eab7da2) Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
* bpo-36654: Add examples for using tokenize module programmatically (GH-18187)Miss Islington (bot)2020-01-251-0/+19
| | | | | | (cherry picked from commit 4b09dc79f4d08d85f2cc945563e9c8ef1e531d7b) Co-authored-by: Windson yang <wiwindson@outlook.com>
* bpo-15243: Document __prepare__ as classmethod (GH-17124)Miss Islington (bot)2020-01-251-1/+2
| | | | | | (cherry picked from commit 7de617455ed788e6730c40cf854c4b72b0432194) Co-authored-by: alclarks <57201106+alclarks@users.noreply.github.com>
* Update 3.8.rst (GH-18173) (#18182)Miss Islington (bot)2020-01-251-1/+1
| | | | | | | | Fixed the name of the contributor (@selik). (cherry picked from commit 9bfb4a7061a3bc4fc5632bccfdf9ed61f62679f7) Co-authored-by: fireattack <human.peng@gmail.com>
* bpo-38473: Handle autospecced functions and methods used with attach_mock ↵Miss Islington (bot)2020-01-253-0/+35
| | | | | | | | | | | (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>
* bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068)Miss Islington (bot)2020-01-254-8/+19
| | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit d0d9fa8c5e30aff71b6d5e8b2673396622f33270) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161)Miss Islington (bot)2020-01-242-10/+9
| | | | | | 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>
* Improve test coverage for AsyncMock. (GH-17906)Miss Islington (bot)2020-01-241-4/+49
| | | | | | | | * 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>
* bpo-39426: Fix outdated default and highest protocols in docs (GH-18154)Miss Islington (bot)2020-01-243-19/+21
| | | | | | | | 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>
* [3.8] bpo-35182: fix communicate() crash after child closes its pipes ↵Alex Rebert2020-01-233-2/+16
| | | | | | | | | | | | | | | | | (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
* bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)Miss Islington (bot)2020-01-231-4/+4
| | | | | (cherry picked from commit 7142df5ea23b4ce0efb72746b4b3b65414e8dcb1) Co-authored-by: Shanavas M <shanavas.m2@gmail.com>