summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.8.7v3.8.7Łukasz Langa2020-12-2121-118/+268
|
* Fix typo in docstring (GH-23515)Miss Islington (bot)2020-12-211-1/+1
| | | | | (cherry picked from commit 711381dfb09fbd434cc3b404656f7fd306161a64) Co-authored-by: Fernando Toledo <42938011+fernandohtr@users.noreply.github.com>
* bpo-42669: Document that `except` rejects nested tuples (GH-23822) (GH-23871)Miss Islington (bot)2020-12-202-1/+3
| | | | | | | | | | | | | | | | | | In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural. For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this: try: self.getInputValue() return True except (InputErrors, SomethingElse): return False As of Python 3.0, this raises `TypeError: catching classes that do not inherit from BaseException is not allowed` instead: one must instead either break it up into multiple `except` clauses or flatten the tuple. However, the reference documentation was never updated to match this new restriction. Make it clear that the definition is no longer recursive. Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit c95f8bc2700b42f4568886505a819816c9b0ba28) Co-authored-by: Colin Watson <cjwatson@debian.org> Co-authored-by: Colin Watson <cjwatson@debian.org>
* bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using ↵Miss Islington (bot)2020-12-203-13/+6
| | | | | | | | | | | | | configure (GH-23708) Now all platforms use a value for the "EXT_SUFFIX" build variable derived from SOABI (for instance in FreeBSD, "EXT_SUFFIX" is now ".cpython-310d.so" instead of ".so"). Previously only Linux, Mac and VxWorks were using a value for "EXT_SUFFIX" that included "SOABI". Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit a44ce6c9f725d336aea51a946b42769f29fed613) Co-authored-by: Matti Picus <matti.picus@gmail.com>
* bpo-41724: Explain when the conversion is not possible with detect_types ↵Miss Islington (bot)2020-12-201-1/+3
| | | | | | | | enabled (GH-23855) (GH-23863) * Explain when the conversion is not possible with detect_types enabled (cherry picked from commit 09a36cdfb7c22f44df45b44e5561776206bcedfb) Co-authored-by: sblondon <sblondon@users.noreply.github.com>
* [3.8] bpo-42630: Improve error reporting in Tkinter for absent default root ↵Serhiy Storchaka2020-12-1919-88/+317
| | | | | | | | | | | | | | | (GH-23781) (GH-23854) * Tkinter functions and constructors which need a default root window raise now RuntimeError with descriptive message instead of obscure AttributeError or NameError if it is not created yet or cannot be created automatically. * Add tests for all functions which use default root window. * Fix import in the pynche script. (cherry picked from commit 3d569fd6dccf9f582bafaca04d3535094cae393e)
* [3.8] bpo-17140: Document multiprocessing's ThreadPool (GH-23812) (GH-23835)Miss Islington (bot)2020-12-182-0/+41
| | | | | | | | | Up until now, the `multiprocessing.pool.ThreadPool` class has gone undocumented, despite being a public class in multiprocessing that is included in `multiprocessing.pool.__all__`. (cherry picked from commit 84ebcf271a2cc8bfd1762acb279502b8b6ef236e) Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
* bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461)Miss Islington (bot)2020-12-183-1/+66
| | | | | (cherry picked from commit 17ef4319a34f5a2f95e7823dfb5f5b8cff11882d) Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
* bpo-39096: Format specification documentation fixes for numeric types (GH-23575)Miss Islington (bot)2020-12-181-12/+23
| | | | | (cherry picked from commit 886b2e5c7a2caf87070728dba8f18c3d65e51071) Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
* bpo-26564: fix obsolete comment in traceback.c (GH-23819)Miss Islington (bot)2020-12-171-1/+2
| | | | | (cherry picked from commit 40125ab3252453bf205ed906e46bf9741c27bf9d) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-42613: Fix freeze.py config directory (GH-23792)Miss Islington (bot)2020-12-172-10/+12
| | | | | | Fix freeze.py tool to use the prope config and library directories. (cherry picked from commit 1c653f17cb84d81df3a74ab0b42140d2bb68c5c4) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23389)Miss Islington (bot)2020-12-172-4/+5
| | | | | | | | Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63. (cherry picked from commit 13b865f0e17c88b081c23f7f05cf91166d220a50) Co-authored-by: David CARLIER <devnexen@gmail.com> Co-authored-by: David CARLIER <devnexen@gmail.com>
* bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795) (GH-23814)Miss Islington (bot)2020-12-171-13/+11
| | | | | | | | Use shorter timeout and replace send() with sendall(). (cherry picked from commit 79782fe4f8cf73d7fdf8db02073bbadf7ff817b6) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-38323: Add guard clauses in MultiLoopChildWatcher. (GH-22756)Miss Islington (bot)2020-12-161-14/+18
| | | | | | This is a trivial refactor in preparation for a fix for bpo-38323. (cherry picked from commit 66d3b589c44fcbcf9afe1e442d9beac3bd8bcd34) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
* bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (GH-22654)Miss Islington (bot)2020-12-163-2/+30
| | | | | (cherry picked from commit 8374d2ee1589791be8892b00f4bbf8121dde24bd) Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
* bpo-42644: Validate values in logging.disable() (GH-23786)Miss Islington (bot)2020-12-163-0/+20
| | | | | | | | | | | | | | | | | | | | | | * bpo-42644: Validate values in logging.disable() Technically make the value of manager a property that checks and convert values assigned to it properly. This has the side effect of making `logging.disable` also accept strings representing the various level of warnings. We want to validate the type of the disable attribute at assignment time, as it is later compared to other levels when emitting warnings and would generate a `TypeError: '>=' not supported between ....` in a different part of the code base, which can make it difficult to track down. When assigned an incorrect value; it will raise a TypeError when the wrong type, or ValueError if an invalid str. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit b32d8b4f9bcd2e7d11240b6b9de0262cf8f5e09d) Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
* [3.8] bpo-39416: change word case to not imply ABC (GH-22867) (GH-22869)Miss Islington (bot)2020-12-161-1/+1
| | | | | follow-up to bpo-39416 Co-authored-by: kpinc <kop@karlpinc.com>
* Update idlelib/help.html to current Sphinx output (GH-22833)Miss Islington (bot)2020-12-161-33/+37
| | | | | | idle.rst is unchanged (cherry picked from commit a460d45063844a21c20fa8b0d23878165f99f3b5) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-40219: Lowered ttk LabeledScale dummy (GH-21467)Miss Islington (bot)2020-12-152-1/+5
| | | | | (cherry picked from commit b9ced83cf427ec86802ba4c9a562c6d9cafc72f5) Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
* bpo-33610: Edit idlelib.codecontext (GH-23773)Miss Islington (bot)2020-12-151-5/+8
| | | | | | Add sentence to module docstring and import tkinter items. (cherry picked from commit 6f79e60b66dacefca147bdaa80eb37f936a72991) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)Miss Islington (bot)2020-12-143-6/+79
| | | | | | | | | | | | Add positional only args support to lib2to3 pgen2. This adds 3.8's PEP-570 support to lib2to3's pgen2. lib2to3, while being deprecated is still used by things to parse all versions of Python code today. We need it to support parsing modern 3.8 and 3.9 constructs. Also add tests for complex *expr and **expr's. (cherry picked from commit 42c9f0fd0a5e67d4ae0022bfd7370cb9725a5b01) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-42598: Fix implicit function declarations in configure (GH-23690) (GH-23757)Miss Islington (bot)2020-12-133-12/+16
| | | | | | | | This is invalid in C99 and later and is an error with some compilers (e.g. clang in Xcode 12), and can thus cause configure checks to produce incorrect results. (cherry picked from commit 674fa0a740151e0416c9383f127b16014e805990) Co-authored-by: Joshua Root <jmr@macports.org>
* [3.8] [doc] Link to issue regarding logging.disable level param default ↵Andre Delfino2020-12-101-2/+2
| | | | | | | value GH-23731 (cherry picked from commit 2a35137328154aa2513649dcf0bbef02c998e27c) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853)Miss Islington (bot)2020-12-095-2/+20
| | | | | (cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd) Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
* [3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706)Ethan Furman2020-12-082-52/+127
| | | * [3.8] [Enum] reformat and add doc strings (GH-23705).
* bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23704)Miss Islington (bot)2020-12-083-1/+16
| | | (cherry picked from commit 37440eef7f9a0c27e13fc9ce0850574bb00688b0)
* [3.8] bpo-41910: move news entry (GH-23698)Terry Jan Reedy2020-12-081-9/+9
|
* bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692) ↵Victor Stinner2020-12-082-92/+135
| | | | | | | | | | | | | | | (GH-23696) Fix encoding name when running a ".pyc" file on Windows: PyRun_SimpleFileExFlags() now uses the correct encoding to decode the filename. * Add pyrun_file() subfunction. * Add pyrun_simple_file() subfunction. * PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than _Py_fopen(). (cherry picked from commit b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d) (cherry picked from commit f0e42ae03c41ec32fcb3064772f46ff7f2c5ff3b)
* Post 3.8.7rc1Łukasz Langa2020-12-081-1/+1
|
* Merge tag 'v3.8.7rc1' into 3.8Łukasz Langa2020-12-0873-684/+1419
|\ | | | | | | Python 3.8.7rc1
| * Python 3.8.7rc1v3.8.7rc1Łukasz Langa2020-12-0773-684/+1419
| |
* | bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23672)Miss Islington (bot)2020-12-073-3/+35
| | | | | | (cherry picked from commit c266736ec1f9ebef38b134ceb4832df015711b38)
* | bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to ↵Pablo Galindo2020-12-071-1/+1
| | | | | | | | allow using older Python versions (GH-23685)
* | bpo-42536: GC track recycled tuples (GH-23623) (GH-23652)Brandt Bucher2020-12-0712-1/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector: - collections.OrderedDict.items - dict.items - enumerate - functools.reduce - itertools.combinations - itertools.combinations_with_replacement - itertools.permutations - itertools.product - itertools.zip_longest - zip Previously, they could have become untracked by a prior garbage collection. (cherry picked from commit 226a012d1cd61f42ecd3056c554922f359a1a35d)
* | bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match ↵Miss Islington (bot)2020-12-073-2/+10
|/ | | | | | | distutils (GH-22088) (cherry picked from commit c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6) Co-authored-by: Matti Picus <matti.picus@gmail.com>
* bpo-17735: inspect.findsource now raises OSError when co_lineno is out of ↵Miss Islington (bot)2020-12-043-1/+21
| | | | | | | | range (GH-23633) This can happen when a file was edited after it was imported. (cherry picked from commit 2e0760bb2edb595050aff82f236cd32b44d3dfb3) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)Miss Islington (bot)2020-12-044-4/+49
| | | | | (cherry picked from commit 6e1eec71f59c344fb23c7977061dc2c97b77d51b) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)Miss Islington (bot)2020-12-042-5/+3
| | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb 10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64). (cherry picked from commit 066394018a8463643cc63d933493f0afa99d72cc) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)Miss Islington (bot)2020-12-032-3/+3
| | | | | | | | Fix test_asyncio.test_call_later() race condition: don't measure asyncio performance in the call_later() unit test. The test failed randomly on the CI. (cherry picked from commit 7e5e13d113798117d5ef25c5ffdbd0eb39420f98) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 ↵Miss Islington (bot)2020-12-031-0/+9
| | | | | | | (GH-23612) (cherry picked from commit f3c3ea91a76526edff928c95b9c6767e077b7448) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)Miss Islington (bot)2020-12-011-3/+0
| | | | | (cherry picked from commit 1867b462de427bcb8dfbcd256028410aea6ae929) Co-authored-by: Victor Stinner <vstinner@python.org>
* build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)Miss Islington (bot)2020-12-012-2/+2
| | | | | | | | | | | | Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit a43fea88577c460eed7cc92a37b5fce787d6aab1) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23583)Miss Islington (bot)2020-12-011-1/+1
| | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.0 to v2.2.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.0...726a6dcd0199f578459862705eed35cda05af50b) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 8acd0e0d4976e91500149ee189f369f2b83b7537) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix bz2 examples markup (GH-23580)Miss Islington (bot)2020-12-011-8/+0
| | | | | (cherry picked from commit 80a429eae95c15c2c2a6753376f2697c90c2b6b9) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)Miss Islington (bot)2020-12-013-3/+25
| | | | | (cherry picked from commit 427613f005f0f412d12f0d775d2b609bae0ae1ad) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)Miss Islington (bot)2020-11-301-1/+1
| | | | | | restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.) (cherry picked from commit e41bfd15dd148627b4f39c2a5837bddd8894d345) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42142: Try to fix timeouts in ttk tests (GH-23474)Miss Islington (bot)2020-11-302-19/+7
| | | | | | | Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop use update() which should proceed all queued events. (cherry picked from commit 6cc2c419f6cf5ed336609ba01055e77d7c553e6d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] bpo-42474: test TracebackException comparison to non-equal instances ↵Irit Katriel2020-11-301-1/+51
| | | | (GH-23558)
* bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)Miss Islington (bot)2020-11-292-1/+6
| | | | | | | | | * bpo-42406: Fix whichmodule() with multiprocessing Signed-off-by: Renato L. de F. Cunha <renatoc@br.ibm.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> (cherry picked from commit 86684319d3dad8e1a7b0559727a48e0bc50afb01) Co-authored-by: Renato Cunha <renatocunha@acm.org>
* bpo-39096: Improve description of 'e', 'f' and 'g' presentation types ↵Miss Islington (bot)2020-11-291-12/+31
| | | | | | | | | | | | | | | | | | (GH-23537) (GH-23551) * Improve description of 'e', 'f' and 'g' presentation types * Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications * Fix false statement that the alternate form is valid for Decimal * Nitpick: remove the Harvard/Oxford comma * Add note that the decimal point is also removed if no digits follow it, except in alternate form (cherry picked from commit c642374b3ef72f6f300616f07aea2a3f9ed83e51) Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Mark Dickinson <mdickinson@enthought.com>