summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename Tkinter tests for widget options (GH-23944)Serhiy Storchaka2020-12-253-210/+212
| | | | Every test for widget option starts now with "test_configure_" to distinguish it from tests for widget commands.
* bpo-35728: Add root parameter to tkinter.font.nametofont() (GH-23885)Desmond Cheong2020-12-254-4/+23
|
* bpo-42721: Improve using simple dialogs without root window (GH-23897)Serhiy Storchaka2020-12-257-24/+144
| | | | | | | | | | | | | | | | | When simple query dialogs (tkinter.simpledialog), message boxes (tkinter.messagebox) or color choose dialog (tkinter.colorchooser) are created without arguments master and parent, and the default root window is not yet created, a new temporary hidden root window will be created automatically. It will not be set as the default root window and will be destroyed right after closing the dialog window. It will help to use these simple dialog windows in programs which do not need other GUI. Previously, message boxes and color chooser created the blank root window and left it after closing the dialog window, and query dialogs just raised an exception. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-28964: add line number of node (if available) to ast.literal_eval error ↵Irit Katriel2020-12-253-1/+17
| | | | messages (GH-23677)
* bpo-15303: Support widgets with boolean value False in Tkinter (GH-23904)Serhiy Storchaka2020-12-258-29/+30
| | | Use `widget is None` instead of checking the boolean value of a widget.
* bpo-42734: Fix crasher bogus_code_obj.py (GH-23939)Serhiy Storchaka2020-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).
* bpo-29076: Add fish support to macOS installer (GH-23302)Erlend Egeberg Aasland2020-12-252-1/+18
|
* bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)Gregory P. Smith2020-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>
* bpo-42727: Fix the NEWS entry .rst (GH-23932)Gregory P. Smith2020-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 ```
* bpo-42727: [Enum] use super() and include **kwds (GH-23927)Ethan Furman2020-12-251-2/+2
| | | | | | | | for multiple inheritance support: use super().new pass **kwds to super().new
* bpo-42685: Improve placing of simple query windows. (GH-23856)Serhiy Storchaka2020-12-242-35/+38
| | | | | | * If parent is specified and mapped, the query widget is centered at the center of parent. Its position and size can be corrected so that it fits in the virtual root window. * Otherwise it is centered at the center of the screen.
* [Enum] EnumMeta.__prepare__ now accepts **kwds (#23917)Ethan Furman2020-12-243-2/+14
|
* bpo-36876: [c-analyzer tool] Add a "capi" subcommand to the c-analyzer tool. ↵Eric Snow2020-12-2410-57/+849
| | | | | | | (gh-23918) This will help identify which C-API items will need to be updated for subinterpreter support. https://bugs.python.org/issue36876
* closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)Augusto Hack2020-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
* GH: Add isidentical to the CODEOWNERS (GH-23923)Batuhan Taskaya2020-12-241-0/+7
|
* bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing (#23702)kj2020-12-246-75/+381
|
* bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914)Raymond Hettinger2020-12-244-27/+62
|
* bpo-42195: Override _CallableGenericAlias's __getitem__ (GH-23915)kj2020-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.
* bpo-41960: Add globalns and localns parameters to inspect.signature and ↵Batuhan Taskaya2020-12-235-52/+77
| | | | Signature.from_callable (GH-22583)
* bpo-25246: Optimize deque.remove() (GH-23898)Raymond Hettinger2020-12-232-32/+43
|
* bpo-32381: pymain_run_command() uses PyCF_IGNORE_COOKIE (GH-23724)Victor Stinner2020-12-233-19/+33
| | | | | | | | | | The coding cookie (ex: "# coding: latin1") is now ignored in the command passed to the -c command line option. Since pymain_run_command() uses UTF-8, pass PyCF_IGNORE_COOKIE compiler flag to the parser. pymain_run_python() no longer propages compiler flags between function calls.
* bpo-9694: Fix misleading phrase "optional arguments" (GH-23858)Raymond Hettinger2020-12-235-95/+98
|
* bpo-28468: Fix typo in _os_release_candidates (GH-23913)Victor Stinner2020-12-231-1/+1
| | | Automerge-Triggered-By: GH:tiran
* bpo-42246: Don't eliminate jumps to jumps, if it will break PEP 626. (GH-23896)Mark Shannon2020-12-237-4239/+4341
|
* BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)Matt Fowler2020-12-231-5/+5
|
* bpo-1635741: Port resource extension module to module state (GH-23462)Christian Heimes2020-12-232-13/+44
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-42620: Improve socket.getsockname doc string (GH-23742)Christian Heimes2020-12-231-2/+3
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-39465: Add pycore_atomic_funcs.h header (GH-20766)Victor Stinner2020-12-239-17/+132
| | | | | | Add pycore_atomic_funcs.h internal header file: similar to pycore_atomic.h but don't require to declare variables as atomic. Add _Py_atomic_size_get() and _Py_atomic_size_set() functions.
* Fix typos in sysmodule (GH-23883)Joannah Nanjekye2020-12-221-2/+2
|
* bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors ↵Irit Katriel2020-12-223-5/+35
| | | | without a lineno (GH-23427)
* bpo-29030: Document interaction between *choices* and *metavar*. (GH-23884)Raymond Hettinger2020-12-221-0/+5
|
* [doc] Fix missing commas in signatures (#23693)Andre Delfino2020-12-222-3/+3
| | | | | * Fix star in signatures * Fix comma in signatures
* bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868)erykoff2020-12-221-2/+10
| | | Automerge-Triggered-By: GH:ronaldoussoren
* bpo-39159: Declare error that might be raised from literal_eval (GH-19899)Batuhan Taskaya2020-12-221-1/+5
|
* bpo-42008: Fix internal _random.Random() seeding for the one argument case ↵AMIR2020-12-213-1/+22
| | | | (GH-22668)
* Fix typo in docstring (GH-23515)Fernando Toledo2020-12-211-1/+1
|
* bpo-42634: Mark reraise after except blocks as artificial. (GH-23877)Mark Shannon2020-12-216-5032/+5063
| | | | | | | * Mark reraise after except blocks as artificial. * Update importlib * Update dis test.
* bpo-35790: Correct the description of sys.exc_info() and add a code example ↵Géry Ogam2020-12-211-3/+21
| | | | (GH-11625)
* [WIP/RFC] bpo-15872: tests: remove oddity from test_rmtree_errors (GH-22967)Daniel Hahler2020-12-211-6/+3
| | | | | | | | | This was added for (some) Windows buildbots back in 2012, and should either not be necessary anymore, or it should probably get investigated why "\*.*" gets added to filenames in the first place. Ref: Automerge-Triggered-By: GH:hynek
* bpo-31904: Fix site and sysconfig modules for VxWorks RTOS (GH-21821)pxinwr2020-12-207-72/+113
|
* bpo-42669: Document that `except` rejects nested tuples (GH-23822)Colin Watson2020-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
* bpo-42572: Improve argparse docs for the type parameter. (GH-23849)Raymond Hettinger2020-12-201-50/+57
|
* bpo-42604: always set EXT_SUFFIX=${SOABI}${SHLIB_SUFFIX} when using ↵Matti Picus2020-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>
* bpo-41724: Explain when the conversion is not possible with detect_types ↵sblondon2020-12-191-1/+3
| | | | | enabled (GH-23855) * Explain when the conversion is not possible with detect_types enabled
* [doc] Mention with and except clauses in globals() (GH-13232)Andre Delfino2020-12-191-1/+1
|
* bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)Serhiy Storchaka2020-12-1919-87/+315
| | | | | | | | | | | * 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.
* bpo-42470: Do not warn on sequences which are also sets in random.sample() ↵masklinn2020-12-193-7/+25
| | | | (GH-23665)
* Fixed typo in itertools documentation (GH-23816)Casper Smet2020-12-191-0/+1
|
* bpo-42559: Not that getrandbits() is non-negative. (GH-23843)Raymond Hettinger2020-12-191-4/+5
|
* bpo-34805: Guarantee that __subclasses__() is in definition order. (GH-23844)Raymond Hettinger2020-12-192-2/+12
|