summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [doc] Fix missing commas in signatures (GH-23693)Miss Islington (bot)2020-12-292-3/+3
| | | | | | | | * Fix star in signatures * Fix comma in signatures (cherry picked from commit 60eccd095624f39195cc5ae0b49a59022bbbb028) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-16396: fix BPO number in changelog (GH-23951) (GH-23956)Miss Islington (bot)2020-12-291-1/+1
| | | | | | | Automerge-Triggered-By: GH:jaraco (cherry picked from commit 7865f516f313bd31ca48ee1fdae2a80add2293b6) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968)Miss Islington (bot)2020-12-295-11/+27
| | | | | | | Objects which belong to different Tcl interpreters are now always different, even if they have the same name. (cherry picked from commit 1df56bc0597a051c13d53514e120e9b6764185f8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)Miss Islington (bot)2020-12-291-1/+1
| | | | | | | Tk can internally support bignum even if Tkinter is built without support of bignum. (cherry picked from commit 156b7f7052102ee1633a18e9a136ad8c38f66db0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42770: Fix a typo in the email.headerregistry docs (GH-23982)Miss Islington (bot)2020-12-291-1/+1
| | | | | | Automerge-Triggered-By: GH:zware (cherry picked from commit c56988b88fecf6dc70f039704fda6051a0754db1) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-42740: Fix get_args for PEP 585 collections.abc.Callable (GH-23963)Miss Islington (bot)2020-12-282-3/+6
| | | | | | PR 1/2. Needs backport to 3.9. (cherry picked from commit 4140f10a16f06c32fd49f9e21fb2a53abe7357f0) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965)Miss Islington (bot)2020-12-271-1/+1
| | | | | | The `pages` argument default value now reflects the implementation. (cherry picked from commit abba83b4b91f78dc556dc0b7700ecb46cba22c01) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic ↵Miss Islington (bot)2020-12-271-4/+8
| | | | | | | linked with Tk >= 8.5 (GH-23955) (cherry picked from commit b02ad2458bc127a7afdeef414fa68c9a7f1f32af) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Add convolve() to the itertools recipes (GH-23928) (GH-23949)Miss Islington (bot)2020-12-261-0/+12
|
* Rename Tkinter tests for widget options (GH-23944)Miss Islington (bot)2020-12-253-210/+212
| | | | | | | Every test for widget option starts now with "test_configure_" to distinguish it from tests for widget commands. (cherry picked from commit c1ae21c965cb4d0566df2095e4bcb274d0bd9353) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42727: [Enum] use super() and include **kwds (GH-23927)Miss Islington (bot)2020-12-251-2/+2
| | | | | | | | | for multiple inheritance support: use super().new pass **kwds to super().new (cherry picked from commit 786d97a66cac48e7a933010367b8993a5b3ab85b) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)Miss Islington (bot)2020-12-251-1/+1
| | | | | | | It did not work because the signature of code object constructor was changed. Also, it used old format of bytecode (pre-wordcode). (cherry picked from commit 954a7427ba9c2d02faed32c02090caeca873aeca) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)Miss Islington (bot)2020-12-254-3/+32
| | | | | | | | | | | | | When the modern text= spelling of the universal_newlines= parameter was added for Python 3.7, check_output's special case around input=None was overlooked. So it behaved differently with universal_newlines=True vs text=True. This reconciles the behavior to be consistent and adds a test to guarantee it. Also clarifies the existing check_output documentation. Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> (cherry picked from commit 64abf373444944a240274a9b6d66d1cb01ecfcdd) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-42727: Fix the NEWS entry .rst (GH-23932)Miss Islington (bot)2020-12-251-2/+2
| | | | | | | | | | | | | | It was causing CI failures. the offending file came from https://github.com/python/cpython/pull/23917 ``` python3 tools/rstlint.py ../Misc/NEWS.d/next/ [2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:1: default role used [2] ../Misc/NEWS.d/next/Library/2020-12-23-19-43-06.bpo-42727.WH3ODh.rst:2: default role used 2 problems with severity 2 found. Makefile:204: recipe for target 'check' failed ``` (cherry picked from commit 8badadec53cbf9dc049c5b54198c5689481e3f3f) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). ↵Ethan Furman2020-12-243-2/+14
| | | | | | (GH-23926) * [3.9] [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (cherry picked from commit 6ec0adefad60ec7cdec61c44baecf1dccc1461ab)
* closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)Miss Islington (bot)2020-12-242-1/+3
| | | | | | | | | | On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3. This changed seemed small enough to not need an issue and news blurb, if one is required please let me know. Automerge-Triggered-By: GH:benjaminp (cherry picked from commit b57ada98da0d5b0cf1ebc2c9c5502d04aa962042) Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
* bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)Miss Islington (bot)2020-12-242-1/+17
| | | | | | Added `__getitem__` for `_CallableGenericAlias` so that it returns a subclass (itself) of `types.GenericAlias` rather than the default behavior of returning a plain `types.GenericAlias`. This fixes `repr` issues occuring after `TypeVar` substitution arising from the previous behavior. (cherry picked from commit 6dd3da3cf4a0d6cb62d9c2a155434c127183454d) Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
* BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)Miss Islington (bot)2020-12-231-5/+5
| | | | | (cherry picked from commit d90ff376813843310a6f9ccc96551fa1521e8fef) Co-authored-by: Matt Fowler <matt.fow@gmail.com>
* bpo-42620: Improve socket.getsockname doc string (GH-23742)Miss Islington (bot)2020-12-231-2/+3
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit cf3565ca9a7ed0f7decd000e41fa3de400986e4d) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors ↵Miss Islington (bot)2020-12-223-5/+35
| | | | | | | without a lineno (GH-23427) (cherry picked from commit 069560b1171eb6385121ff3b6331e8814a4e7454) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-29030: Document interaction between *choices* and *metavar*. (GH-23884) ↵Miss Islington (bot)2020-12-221-0/+5
| | | | (GH-23894)
* [3.9] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23859)Andre Delfino2020-12-228-81/+80
| | | | | (cherry picked from commit 96a09df64483b70c4215c7025a19b9d2f1636c55) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* [3.9] [doc] Fix erroneous backslashes in signatures and names (GH-23658) ↵Andre Delfino2020-12-2232-90/+90
| | | | | | | | | | (GH-23827) The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch). The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.. (cherry picked from commit dcc997cd28ab33ebac44182ee55533c1b37689f7) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* 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-23870)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-42572: Improve argparse docs for the type parameter. (GH-23849) (GH-23869)Miss Islington (bot)2020-12-201-50/+57
|
* bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using ↵Miss Islington (bot)2020-12-203-13/+6
| | | | | | | | | | | | | | | configure (GH-23708) (GH-23866) 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> 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-23862) * 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> Co-authored-by: sblondon <sblondon@users.noreply.github.com>
* [3.9] bpo-42675: Document collections.abc.Callable changes (GH-23839) (#23852)kj2020-12-192-0/+22
|
* bpo-40219: Lowered ttk LabeledScale dummy (GH-21467) (GH-23788)Miss Islington (bot)2020-12-192-1/+5
| | | | (cherry picked from commit b9ced83cf427ec86802ba4c9a562c6d9cafc72f5)
* [3.9] bpo-42630: Improve error reporting in Tkinter for absent default root ↵Serhiy Storchaka2020-12-1919-87/+316
| | | | | | | | | | | | | | | (GH-23781) (GH-23853) * 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)
* bpo-42559: Not that getrandbits() is non-negative. (GH-23843) (GH-23851)Miss Islington (bot)2020-12-191-4/+5
|
* bpo-34805: Guarantee that __subclasses__() is in definition order. ↵Miss Islington (bot)2020-12-192-2/+12
| | | | (GH-23844) (GH-23850)
* bpo-42670: Fix a missing word in the itertools.product() docs (GH-23823) ↵Miss Islington (bot)2020-12-191-1/+1
| | | | (GH-23824)
* bpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)Miss Islington (bot)2020-12-182-2/+2
| | | | | (cherry picked from commit e8d22642105d57007ab1242848a8cbadc7f179df) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-41891: ensure asyncio.wait_for waits for task completion (GH-22461) (#23840)Miss Islington (bot)2020-12-183-1/+66
| | | | | | | (cherry picked from commit 17ef4319a34f5a2f95e7823dfb5f5b8cff11882d) Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com> Co-authored-by: Richard Kojedzinszky <rkojedzinszky@users.noreply.github.com>
* bpo-17140: Document multiprocessing's ThreadPool (GH-23812)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-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-42613: Fix freeze.py config directory (GH-23792) (GH-23817)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> Co-authored-by: Victor Stinner <vstinner@python.org>
* 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-42375: subprocess DragonFlyBSD build update. (GH-23320) (GH-23388)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)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>
* Fix indentation for get_stats_profile() docs (GH-23618)Miss Islington (bot)2020-12-161-1/+1
| | | | | | | The existing method is indented one too many times which makes it look like a sub-method of print_callees(). (cherry picked from commit a6ba2b901543f3006ecdb2ad8b18cb00439ff9b2) Co-authored-by: Matthew Suozzo <msuozzo@google.com>
* bpo-37961: Fix regression in tracemalloc.Traceback.__repr__ (GH-23805)Miss Islington (bot)2020-12-163-1/+22
| | | | | | Regression in 8d59eb1b66c51b2b918da9881c57d07d08df43b7. (cherry picked from commit 051b9818671625d125dee8198e0d2af5ad4c85b8) Co-authored-by: Daniel Hahler <git@thequod.de>
* Add symbols of the stable ABI to python3dll.c (GH-23598) (GH-23801)Victor Stinner2020-12-161-0/+6
| | | | | | | | | | | | Add the following symbols to python3dll.c: * PyFrame_GetCode (bpo-40421) * PyFrame_GetLineNumber (bpo-40421) * PyObject_CallNoArgs (bpo-37194) * PyThreadState_GetFrame (bpo-39947) * PyThreadState_GetID (bpo-39947) * PyThreadState_GetInterpreter (bpo-39947) (cherry picked from commit fcc6935384b933fbe1a1ef659ed455a3b74c849a)
* 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-40686: Fix compiler warnings on _zoneinfo.c (GH-23614) (GH-23804)Miss Islington (bot)2020-12-161-10/+4
| | | | | | | | | | | | | "uint8_t day" is unsigned and so "day < 0" test is always true. Remove the test to fix the following warnings on Windows: modules\_zoneinfo.c(1224): warning C4068: unknown pragma modules\_zoneinfo.c(1225): warning C4068: unknown pragma modules\_zoneinfo.c(1227): warning C4068: unknown pragma (cherry picked from commit aefb69b23f056c61e82ad228d950f348de090c70) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-19733: Re-enable tests for -image option in Tkinter (GH-23785)Miss Islington (bot)2020-12-162-6/+0
| | | | | (cherry picked from commit 5f0fe8ec70120f4586d08978b0911b436f82c421) Co-authored-by: Serhiy Storchaka <storchaka@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>