summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)Dong-hee Na2021-01-011-3/+7
|
* bpo-37193: Remove thread objects which finished process its request (GH-23127)Jason R. Coombs2020-12-312-12/+62
| | | This reverts commit aca67da4fe68d5420401ac1782203d302875eb27.
* bpo-42163, bpo-42189, bpo-42659: Support uname_tuple._replace (for all but ↵Jason R. Coombs2020-12-312-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processor) (#23010) * Add test capturing missed expectation with uname_result._replace. * bpo-42163: Override uname_result._make to allow uname_result._replace to work (for everything but 'processor'. * Replace hard-coded length with one derived from the definition. * Add test capturing missed expectation with copy/deepcopy on namedtuple (bpo-42189). * bpo-42189: Exclude processor parameter when constructing uname_result. * In _make, rely on __new__ to strip processor. * Add blurb. * iter is not necessary here. * Rely on num_fields in __new__ * Add test for slices on uname * Add test for copy and pickle. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * import pickle * Fix equality test after pickling. * Simply rely on __reduce__ for pickling. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` ↵Jason R. Coombs2020-12-315-146/+277
| | | | | | | | | | | | | | (#23758) * bpo-42382: In importlib.metadata, `EntryPoint` objects now expose a `.dist` object referencing the `Distribution` when constructed from a `Distribution`. Also, sync importlib_metadata 3.3: - Add support for package discovery under package normalization rules. - The object returned by `metadata()` now has a formally-defined protocol called `PackageMetadata` with declared support for the `.get_all()` method. * Add blurb * Remove latent footnote.
* bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in ↵Erlend Egeberg Aasland2020-12-311-6/+5
| | | | socket.ntohs and socket.htons (GH-23980)
* bpo-39068: Fix race condition in base64 (GH-17627)Brandon Stansbury2020-12-311-2/+2
| | | | There was a race condition in base64 in lazy initialization of multiple globals.
* bpo-27794: Add `name` attribute to `property` class (GH-23967)Yurii Karabas2020-12-302-1/+51
|
* bpo-40137: Convert _functools module to use PyType_FromModuleAndSpec. (GH-23405)Hai Shi2020-12-291-2/+1
|
* Allow / character in username,password fields in _PROXY envvars. (#23973)Senthil Kumaran2020-12-292-2/+14
|
* bpo-41781: Fix typo in internal function name in typing (GH-23957)Ross2020-12-291-3/+3
|
* bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968)Serhiy Storchaka2020-12-294-11/+24
| | | | Objects which belong to different Tcl interpreters are now always different, even if they have the same name.
* bpo-42749: Use dynamic version to test for unsupported bignum in Tk (GH-23966)Serhiy Storchaka2020-12-291-1/+1
| | | | Tk can internally support bignum even if Tkinter is built without support of bignum.
* bpo-42740: Support PEP 604, 612 for typing.py get_args and get_origin (GH-23942)Ken Jin2020-12-292-1/+13
|
* bpo-42740: Fix get_args for PEP 585 collections.abc.Callable (GH-23963)Ken Jin2020-12-282-3/+6
| | | PR 1/2. Needs backport to 3.9.
* bpo-42222: Modernize integer test/conversion in randrange() (#23064)Raymond Hettinger2020-12-282-11/+63
|
* bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic ↵Serhiy Storchaka2020-12-271-4/+8
| | | | linked with Tk >= 8.5 (GH-23955)
* Add small validator utility for PEG grammars (GH-23519)Pablo Galindo2020-12-261-0/+51
|
* bpo-42748: test_asdl_parser now uses exec_module instead of load_module (#23954)Dong-hee Na2020-12-261-1/+5
|
* 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-252-2/+17
|
* bpo-42721: Improve using simple dialogs without root window (GH-23897)Serhiy Storchaka2020-12-256-24/+135
| | | | | | | | | | | | | | | | | 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-252-1/+16
| | | | messages (GH-23677)
* bpo-15303: Support widgets with boolean value False in Tkinter (GH-23904)Serhiy Storchaka2020-12-257-29/+29
| | | 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-42388: Fix subprocess.check_output input=None when text=True (GH-23467)Gregory P. Smith2020-12-252-1/+27
| | | | | | | | | | 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: [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-241-35/+34
| | | | | | * 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-242-2/+12
|
* bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing (#23702)kj2020-12-244-61/+317
|
* bpo-38308: Add optional weighting to statistics.harmonic_mean() (GH-23914)Raymond Hettinger2020-12-242-18/+49
|
* 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-232-49/+51
| | | | Signature.from_callable (GH-22583)
* bpo-32381: pymain_run_command() uses PyCF_IGNORE_COOKIE (GH-23724)Victor Stinner2020-12-231-0/+8
| | | | | | | | | | 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-232-57/+57
|
* 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-232-84/+149
|
* bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors ↵Irit Katriel2020-12-222-5/+34
| | | | without a lineno (GH-23427)
* bpo-42008: Fix internal _random.Random() seeding for the one argument case ↵AMIR2020-12-211-0/+9
| | | | (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-212-37/+56
| | | | | | | * Mark reraise after except blocks as artificial. * Update importlib * Update dis test.
* [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-206-72/+112
|
* bpo-42630: Improve error reporting in Tkinter for absent default root (GH-23781)Serhiy Storchaka2020-12-1917-79/+307
| | | | | | | | | | | * 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-192-7/+24
| | | | (GH-23665)
* bpo-34805: Guarantee that __subclasses__() is in definition order. (GH-23844)Raymond Hettinger2020-12-191-0/+10
|
* bpo-24792: Fix zipimporter masking the cause of import errors (GH-22204)Irit Katriel2020-12-192-22/+24
| | | | | zipimport's _unmarshal_code swallows import errors and then _get_module_code doesn't know the cause of the error, and returns the generic, and sometimes incorrect, 'could not find...'. Automerge-Triggered-By: GH:brettcannon
* bpo-36769: Document that fnmatch.filter supports any kind of iterable (#13039)Andre Delfino2020-12-181-1/+1
|
* bpo-41891: ensure asyncio.wait_for waits for task completion (#22461)Richard Kojedzinszky2020-12-182-1/+65
|
* bpo-42199: Fix bytecode_helper assertNotInBytecode (#23031)Max Bernstein2020-12-182-1/+21
| | | | | | | | | | * bpo-42199: Fix bytecode_helper assertNotInBytecode Add tests. * 📜🤖 Added by blurb_it. Co-authored-by: Dino Viehland <dinoviehland@fb.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-31904: posixpath.expanduser() handles None user home on VxWorks (GH-23530)pxinwr2020-12-171-0/+3
|