]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agobpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
Victor Stinner [Tue, 8 Dec 2020 23:32:54 +0000 (00:32 +0100)] 
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)

pymain_run_startup() now pass the filename as a Python object to
_PyRun_SimpleFileObject().

4 years agobpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported (GH-21684)
pxinwr [Tue, 8 Dec 2020 23:20:19 +0000 (07:20 +0800)] 
bpo-41439: Skip test_ssl and test_uuid tests if fork() is not supported (GH-21684)

4 years agobpo-41443: Add more attribute checking in test_posix (GH-21688)
pxinwr [Tue, 8 Dec 2020 23:18:37 +0000 (07:18 +0800)] 
bpo-41443:  Add more attribute checking in test_posix (GH-21688)

4 years agobpo-35134: Add Include/cpython/pythonrun.h file (GH-23701)
Victor Stinner [Tue, 8 Dec 2020 22:51:54 +0000 (23:51 +0100)] 
bpo-35134: Add Include/cpython/pythonrun.h file (GH-23701)

Py_CompileString() is now always declared as a function by
Include/pythonrun.h. It is overriden with a macro in
Include/cpython/pythonrun.h.

4 years agobpo-32381: Rewrite PyErr_ProgramText() (GH-23700)
Victor Stinner [Tue, 8 Dec 2020 22:51:26 +0000 (23:51 +0100)] 
bpo-32381: Rewrite PyErr_ProgramText() (GH-23700)

PyErr_ProgramText() now calls PyErr_ProgramTextObject().

4 years ago[Enum] reformat and add doc strings (GH-23705)
Ethan Furman [Tue, 8 Dec 2020 20:26:56 +0000 (12:26 -0800)] 
[Enum] reformat and add doc strings (GH-23705)

4 years agobpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497)
Ethan Furman [Tue, 8 Dec 2020 19:14:10 +0000 (11:14 -0800)] 
bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497)

4 years agobpo-42111: Make the xxlimited module an example of best extension module practices...
Petr Viktorin [Tue, 8 Dec 2020 16:36:53 +0000 (17:36 +0100)] 
bpo-42111: Make the xxlimited module an example of best extension module practices (GH-23226)

- Copy existing xxlimited to xxlimited53 (named for the limited API version it uses)
- Build both modules, both in debug and release
- Test both modules

4 years ago bpo-41910: move news entry (GH-23695)
Terry Jan Reedy [Tue, 8 Dec 2020 15:29:49 +0000 (10:29 -0500)] 
 bpo-41910: move news entry  (GH-23695)

4 years agobpo-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)
Hai Shi [Tue, 8 Dec 2020 14:42:42 +0000 (22:42 +0800)] 
bpo-42599: Remove useless PyModule_GetWarningsModule() (GH-23691)

Removed PyModule_GetWarningsModule() which is useless due to
the _warnings module was converted to a builtin module in 2.6.

4 years agobpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)
Victor Stinner [Tue, 8 Dec 2020 13:38:08 +0000 (14:38 +0100)] 
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)

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().

4 years agoPost 3.10.0a3
Pablo Galindo [Tue, 8 Dec 2020 02:31:04 +0000 (02:31 +0000)] 
Post 3.10.0a3

4 years agoMerge tag 'v3.10.0a3'
Pablo Galindo [Tue, 8 Dec 2020 02:30:25 +0000 (02:30 +0000)] 
Merge tag 'v3.10.0a3'

Python 3.10.0a3

4 years agobpo-41462: Add os.set_blocking() support for VxWorks RTOS (GH-21713)
pxinwr [Mon, 7 Dec 2020 20:41:12 +0000 (04:41 +0800)] 
bpo-41462: Add os.set_blocking() support for VxWorks RTOS (GH-21713)

4 years agobpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)
Matěj Cepl [Mon, 7 Dec 2020 20:05:13 +0000 (21:05 +0100)] 
bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)

The solution in gh#python/cpython#13236 is too strict because it
effectively requires the use of Sphinx >= 2.0. It is not too difficult to
make the same solution more robust so it works with all normal versions
of Sphinx.

4 years agoPython 3.10.0a3 v3.10.0a3
Pablo Galindo [Mon, 7 Dec 2020 19:33:00 +0000 (19:33 +0000)] 
Python 3.10.0a3

4 years agobpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils...
Matti Picus [Mon, 7 Dec 2020 17:33:20 +0000 (19:33 +0200)] 
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)

4 years agobpo-30459: Cast the result of PyCell_SET to void (GH-23654)
Victor Stinner [Mon, 7 Dec 2020 10:56:20 +0000 (11:56 +0100)] 
bpo-30459: Cast the result of PyCell_SET to void (GH-23654)

4 years agobpo-41889: [Enum] fix multiple-inheritance regression (GH-22487)
Ethan Furman [Mon, 7 Dec 2020 08:17:31 +0000 (00:17 -0800)] 
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487)

4 years agoUpdate macos installer ReadMe for 3.10.0a3 (GH-23671)
Ned Deily [Mon, 7 Dec 2020 03:55:12 +0000 (22:55 -0500)] 
Update macos installer ReadMe for 3.10.0a3 (GH-23671)

4 years agobpo-42508: Keep IDLE running on macOS (GH-23577)
Terry Jan Reedy [Mon, 7 Dec 2020 03:22:33 +0000 (22:22 -0500)] 
bpo-42508: Keep IDLE running on macOS (GH-23577)

Remove obsolete workaround that prevented running files with
shortcuts when using new universal2 installers built on macOS 11.
Ignore buggy 2nd run_module_event call.

4 years agobpo-38843: Document behavior of default when the attribute is already set (GH-23653)
Raymond Hettinger [Mon, 7 Dec 2020 02:29:08 +0000 (18:29 -0800)] 
bpo-38843: Document behavior of default when the attribute is already set (GH-23653)

4 years agobpo-42582: Remove asyncio._all_tasks_compat(). (GH-23664)
Serhiy Storchaka [Sun, 6 Dec 2020 16:54:33 +0000 (18:54 +0200)] 
bpo-42582: Remove asyncio._all_tasks_compat(). (GH-23664)

It was used to implement now removed asyncio.Task.all_tasks().

4 years agobpo-42576: Clarify only debug builds are affected in news (GH-23663)
kj [Sun, 6 Dec 2020 16:37:59 +0000 (23:37 +0700)] 
bpo-42576: Clarify only debug builds are affected in news (GH-23663)

4 years agobpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool...
idanw206 [Sun, 6 Dec 2020 09:59:36 +0000 (11:59 +0200)] 
bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH23613)

Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function

4 years agobpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH...
kj [Sat, 5 Dec 2020 16:02:14 +0000 (23:02 +0700)] 
bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656)

Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor.

Needs backport to 3.9.

Automerge-Triggered-By: GH:gvanrossum
4 years agoGH-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (#23638)
Senthil Kumaran [Sat, 5 Dec 2020 13:26:24 +0000 (05:26 -0800)] 
GH-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (#23638)

4 years agobpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975)
Zackery Spytz [Sat, 5 Dec 2020 10:34:51 +0000 (03:34 -0700)] 
bpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975)

Do the same for PyTuple_SET_ITEM().

4 years agobpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649)
Ned Deily [Sat, 5 Dec 2020 04:02:09 +0000 (23:02 -0500)] 
bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649)

If no explicit macOS SDK was specified, setup.py should check for
Tcl and TK frameworks in /Library/Frameworks; the previous commit
inadvertently broke that test.

4 years agobpo-42536: GC track recycled tuples (GH-23623)
Brandt Bucher [Sat, 5 Dec 2020 03:45:57 +0000 (19:45 -0800)] 
bpo-42536: GC track recycled tuples (GH-23623)

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.

4 years agobpo-26131: Deprecate usage of load_module() (GH-23469)
Brett Cannon [Fri, 4 Dec 2020 23:39:21 +0000 (15:39 -0800)] 
bpo-26131: Deprecate usage of load_module() (GH-23469)

Raise an ImportWarning when the import system falls back on load_module(). As for implementations of load_module(), raise a DeprecationWarning.

4 years agobpo-42545: Improve the error message in the stable API script (GH-23648)
Pablo Galindo [Fri, 4 Dec 2020 23:19:21 +0000 (23:19 +0000)] 
bpo-42545: Improve the error message in the stable API script (GH-23648)

4 years agobpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)
Pablo Galindo [Fri, 4 Dec 2020 22:05:58 +0000 (22:05 +0000)] 
bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)

4 years agobpo-17735: inspect.findsource now raises OSError when co_lineno is out of range ...
Irit Katriel [Fri, 4 Dec 2020 21:22:03 +0000 (21:22 +0000)] 
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633)

This can happen when a file was edited after it was imported.

4 years agobpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)
pxinwr [Fri, 4 Dec 2020 20:19:32 +0000 (04:19 +0800)] 
bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)

Fix test_doctest.py failures for VxWorks by avoiding exact error message checks. (better for everyone all around)

4 years agobpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
Irit Katriel [Fri, 4 Dec 2020 16:45:38 +0000 (16:45 +0000)] 
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)

4 years agobpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)
Victor Stinner [Fri, 4 Dec 2020 15:23:56 +0000 (16:23 +0100)] 
bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637)

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).

4 years agobpo-42246: Don't forget the entry block when ensuring that all exits have a line...
Mark Shannon [Fri, 4 Dec 2020 15:22:12 +0000 (15:22 +0000)] 
bpo-42246: Don't forget the entry block when ensuring that all exits have a line number (GH-23636)

Don't forget the entry block when ensuring that all exits have a line number.

4 years agobpo-42562: Fix issue when dis failed to parse function that has no line numbers ...
Yurii Karabas [Fri, 4 Dec 2020 15:20:53 +0000 (17:20 +0200)] 
bpo-42562: Fix issue when dis failed to parse function that has no line numbers (GH-23632)

Fix issue when dis failed to parse function that has only annotations

4 years agobpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)
Zackery Spytz [Thu, 3 Dec 2020 17:22:04 +0000 (10:22 -0700)] 
bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)

4 years agobpo-42262: Py_NewRef() casts its argument to PyObject* (GH-23626)
Victor Stinner [Thu, 3 Dec 2020 13:01:10 +0000 (14:01 +0100)] 
bpo-42262: Py_NewRef() casts its argument to PyObject* (GH-23626)

Write also unit tests on Py_NewRef() and Py_XNewRef().

4 years agobpo-42553: Fix test_asyncio.test_call_later() (GH-23627)
Victor Stinner [Thu, 3 Dec 2020 12:56:41 +0000 (13:56 +0100)] 
bpo-42553: Fix test_asyncio.test_call_later() (GH-23627)

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.

4 years agobpo-42431: Fix outdated bytes comments (GH-23458)
Serhiy Storchaka [Thu, 3 Dec 2020 10:46:16 +0000 (12:46 +0200)] 
bpo-42431: Fix outdated bytes comments (GH-23458)

Also move definitions of internal macros F_LJUST etc to private header.

4 years agobpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
Serhiy Storchaka [Thu, 3 Dec 2020 08:48:26 +0000 (10:48 +0200)] 
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)

4 years agoRemove the conditional for setting query. (#23604)
Senthil Kumaran [Thu, 3 Dec 2020 03:48:14 +0000 (19:48 -0800)] 
Remove the conditional for setting query. (#23604)

4 years agobpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)
FX Coudert [Thu, 3 Dec 2020 03:20:18 +0000 (04:20 +0100)] 
bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)

macOS releases numbering has changed as of macOS 11 Big Sur.  Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.

4 years agobpo-41625: Do not add os.splice on AIX due to compatibility issues (GH-23608)
Pablo Galindo [Wed, 2 Dec 2020 17:57:18 +0000 (17:57 +0000)] 
bpo-41625: Do not add os.splice on AIX due to compatibility issues (GH-23608)

4 years agobpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)
Pablo Galindo [Wed, 2 Dec 2020 17:56:17 +0000 (17:56 +0000)] 
bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)

4 years agobpo-42246: Make sure that line number is correct after a return, as required by PEP...
Mark Shannon [Wed, 2 Dec 2020 13:31:40 +0000 (13:31 +0000)] 
bpo-42246: Make sure that line number is correct after a return, as required by PEP 626 (GH-23495)

Make sure that line number is correct after a return, as defined by PEP 626.

4 years agobpo-42500: Fix recursion in or after except (GH-23568)
Mark Shannon [Wed, 2 Dec 2020 13:30:55 +0000 (13:30 +0000)] 
bpo-42500: Fix recursion in or after except (GH-23568)

* Use counter, rather boolean state when handling soft overflows.

4 years agoCorrect return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
Pablo Galindo [Wed, 2 Dec 2020 06:07:56 +0000 (06:07 +0000)] 
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)

4 years agobpo-40939: Restore some stable API functions incorrectly deleted (GH-23606)
Pablo Galindo [Wed, 2 Dec 2020 05:16:31 +0000 (05:16 +0000)] 
bpo-40939: Restore some stable API functions incorrectly deleted (GH-23606)

4 years agobpo-31904: Fix test_netrc for VxWorks RTOS (GH-21675)
pxinwr [Tue, 1 Dec 2020 20:34:42 +0000 (04:34 +0800)] 
bpo-31904: Fix test_netrc for VxWorks RTOS (GH-21675)

Fix test_netrc on VxWorks: create temporary directories using temp_cwd().

4 years agobpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
Victor Stinner [Tue, 1 Dec 2020 15:22:25 +0000 (16:22 +0100)] 
bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)

4 years agobuild(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23583)
dependabot[bot] [Tue, 1 Dec 2020 15:00:11 +0000 (09:00 -0600)] 
build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23583)

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>
4 years agobuild(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)
dependabot[bot] [Tue, 1 Dec 2020 14:59:12 +0000 (08:59 -0600)] 
build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582)

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>
4 years ago[doc] Fix abc.update_abstractmethods markup (GH-23576)
Andre Delfino [Tue, 1 Dec 2020 09:45:11 +0000 (06:45 -0300)] 
[doc] Fix abc.update_abstractmethods markup (GH-23576)

Add link to ABCMeta while at it.

4 years agoFix bz2 examples markup (#23580)
Andre Delfino [Tue, 1 Dec 2020 09:41:12 +0000 (06:41 -0300)] 
Fix bz2 examples markup (#23580)

4 years agobpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587)
Victor Stinner [Tue, 1 Dec 2020 09:37:39 +0000 (10:37 +0100)] 
bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587)

No longer use deprecated aliases to functions:

* Replace PyObject_MALLOC() with PyObject_Malloc()
* Replace PyObject_REALLOC() with PyObject_Realloc()
* Replace PyObject_FREE() with PyObject_Free()
* Replace PyObject_Del() with PyObject_Free()
* Replace PyObject_DEL() with PyObject_Free()

4 years agobpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586)
Victor Stinner [Tue, 1 Dec 2020 08:56:42 +0000 (09:56 +0100)] 
bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() (GH-23586)

No longer use deprecated aliases to functions:

* Replace PyMem_MALLOC() with PyMem_Malloc()
* Replace PyMem_REALLOC() with PyMem_Realloc()
* Replace PyMem_FREE() with PyMem_Free()
* Replace PyMem_Del() with PyMem_Free()
* Replace PyMem_DEL() with PyMem_Free()

Modify also the PyMem_DEL() macro to use directly PyMem_Free().

4 years agobpo-31904: Fix fifo test cases for VxWorks (GH-20254)
pxinwr [Tue, 1 Dec 2020 08:20:50 +0000 (16:20 +0800)] 
bpo-31904: Fix fifo test cases for VxWorks (GH-20254)

4 years agobpo-38200: Add itertools.pairwise() (GH-23549)
Raymond Hettinger [Tue, 1 Dec 2020 04:42:54 +0000 (20:42 -0800)] 
bpo-38200: Add itertools.pairwise() (GH-23549)

5 years agobpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
Irit Katriel [Tue, 1 Dec 2020 01:35:25 +0000 (01:35 +0000)] 
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)

5 years agobpo-31904: Support signal module on VxWorks (GH-23391)
pxinwr [Mon, 30 Nov 2020 21:48:33 +0000 (05:48 +0800)] 
bpo-31904: Support signal module on VxWorks (GH-23391)

5 years agobpo-28468: Add platform.freedesktop_os_release() (GH-23492)
Christian Heimes [Mon, 30 Nov 2020 21:34:45 +0000 (22:34 +0100)] 
bpo-28468: Add platform.freedesktop_os_release() (GH-23492)

Add platform.freedesktop_os_release() function to parse freedesktop.org
os-release files.

Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 years agoRefactor the grammar to match the language specification docs (GH-23574)
Pablo Galindo [Mon, 30 Nov 2020 19:42:38 +0000 (19:42 +0000)] 
Refactor the grammar to match the language specification docs (GH-23574)

5 years agobpo-42485: [Doc] Link to PEP 617 from full grammar specification (GH-23532)
James Gerity [Mon, 30 Nov 2020 19:08:26 +0000 (14:08 -0500)] 
bpo-42485: [Doc] Link to PEP 617 from full grammar specification (GH-23532)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
5 years agobpo-42501: Revise the usage note for Enums with the choices (GH-23563)
Raymond Hettinger [Mon, 30 Nov 2020 17:55:13 +0000 (09:55 -0800)] 
bpo-42501:  Revise the usage note for Enums with the choices (GH-23563)

5 years agobpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)
Terry Jan Reedy [Mon, 30 Nov 2020 17:09:43 +0000 (12:09 -0500)] 
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570)

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.)

5 years agobpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534)
Andreas Poehlmann [Mon, 30 Nov 2020 16:34:15 +0000 (17:34 +0100)] 
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534)

5 years agobpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)
Yasser A [Mon, 30 Nov 2020 09:53:11 +0000 (01:53 -0800)] 
bpo-42451: Indicate that PyTuple_GetItem does not support negative indices (GH-23529)

5 years agobpo-42506: Fix unexpected output in test_format (GH-23564)
Zackery Spytz [Mon, 30 Nov 2020 08:39:12 +0000 (01:39 -0700)] 
bpo-42506: Fix unexpected output in test_format (GH-23564)

5 years agobpo-42142: Try to fix timeouts in ttk tests (GH-23474)
Serhiy Storchaka [Mon, 30 Nov 2020 08:24:07 +0000 (10:24 +0200)] 
bpo-42142: Try to fix timeouts in ttk tests (GH-23474)

Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop
use update() which should proceed all queued events.

5 years agobpo-42450: Minor updates to the itertools recipes (GH-23555)
Raymond Hettinger [Sun, 29 Nov 2020 18:47:22 +0000 (10:47 -0800)] 
bpo-42450: Minor updates to the itertools recipes (GH-23555)

5 years agobpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
Renato Cunha [Sun, 29 Nov 2020 18:23:15 +0000 (15:23 -0300)] 
bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)

* 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>
5 years agobpo-42392: Remove deprecated loop parameter from docs (GH-23552)
Yurii Karabas [Sun, 29 Nov 2020 12:50:57 +0000 (14:50 +0200)] 
bpo-42392: Remove deprecated loop parameter from docs (GH-23552)

5 years agobpo-39096: Improve description of 'e', 'f' and 'g' presentation types (#23537)
Mark Dickinson [Sun, 29 Nov 2020 09:34:36 +0000 (09:34 +0000)] 
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (#23537)

* 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

5 years agobpo-31904: remove libnet dependency from detect_socket() for VxWorks (GH-23394)
pxinwr [Sat, 28 Nov 2020 22:14:16 +0000 (06:14 +0800)] 
bpo-31904: remove libnet dependency from detect_socket() for VxWorks (GH-23394)

Previously on VxWorks compiling socket extension module needs the libnet to link. Now VxWorks has moved the replied functions to libc. So removing libnet from setup.py.

5 years agobpo-31904: skip some tests related to fifo on VxWorks (GH-23473)
pxinwr [Sat, 28 Nov 2020 22:06:36 +0000 (06:06 +0800)] 
bpo-31904: skip some tests related to fifo on VxWorks (GH-23473)

On VxWork RTOS, FIFO must be created under directory "/fifos/". Some test cases related to fifo is invalid on VxWorks. So skip them.

5 years agobpo-31904: add shell requirement for test_pipes (GH-23489)
pxinwr [Sat, 28 Nov 2020 22:04:50 +0000 (06:04 +0800)] 
bpo-31904: add shell requirement for test_pipes (GH-23489)

VxWorks has no user space shell provided so it can't support pipes module. Also add shell requirement for running test_pipes.

5 years agoskip test_test of test_mailcap on VxWorks (GH-23507)
pxinwr [Sat, 28 Nov 2020 21:49:47 +0000 (05:49 +0800)] 
skip test_test of test_mailcap on VxWorks (GH-23507)

5 years agoskip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symboli...
pxinwr [Sat, 28 Nov 2020 21:48:38 +0000 (05:48 +0800)] 
skip test_getaddrinfo_ipv6_scopeid_symbolic and test_getnameinfo_ipv6_scopeid_symbolic on VxWorks (GH-23518)

5 years agoFix an error in the news entry for _posixsubprocess multiphase init (GH-23516)
Zackery Spytz [Sat, 28 Nov 2020 21:46:30 +0000 (14:46 -0700)] 
Fix an error in the news entry for _posixsubprocess multiphase init (GH-23516)

Commit 035deee265c7fb227ddc87222fa48761231d8bd7 converted the
_posixsubprocess module to multiphase initialization, but the news entry
mentions the _posixshmem module.

5 years agoFix dis markup (GH-23524)
Andre Delfino [Sat, 28 Nov 2020 21:43:22 +0000 (18:43 -0300)] 
Fix dis markup (GH-23524)

5 years agoFix multiprocessing markup (GH-23525)
Andre Delfino [Sat, 28 Nov 2020 21:42:23 +0000 (18:42 -0300)] 
Fix multiprocessing markup (GH-23525)

5 years agobpo-41818: Fix test_master_read() so that it succeeds on all platforms that either...
Soumendra Ganguly [Sat, 28 Nov 2020 21:04:20 +0000 (15:04 -0600)] 
bpo-41818: Fix test_master_read() so that it succeeds on all platforms that either raise OSError or return b"" upon reading from master (GH-23536)

Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
5 years agobpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (GH-20256)
pxinwr [Sat, 28 Nov 2020 20:21:30 +0000 (04:21 +0800)] 
bpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (GH-20256)

5 years agobpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
Zackery Spytz [Sat, 28 Nov 2020 14:53:39 +0000 (07:53 -0700)] 
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)

5 years agobpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925)
Zackery Spytz [Sat, 28 Nov 2020 14:27:28 +0000 (07:27 -0700)] 
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925)

Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
5 years agobpo-41241: Unnecessary Type casting in 'if condition' (GH-21396)
Wansoo Kim [Sat, 28 Nov 2020 11:37:08 +0000 (20:37 +0900)] 
bpo-41241: Unnecessary Type casting in 'if condition' (GH-21396)

This is my first issue!
So, if there's anything wrong, please tell me!

Also, thank you always for all the contributors!

Automerge-Triggered-By: GH:asvetlov
5 years agobpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521)
Yurii Karabas [Sat, 28 Nov 2020 08:21:17 +0000 (10:21 +0200)] 
bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521)

5 years agobpo-42452: Improve colorsys.rgb_to_hls code (GH-23306)
Julien Jerphanion [Sat, 28 Nov 2020 07:11:19 +0000 (07:11 +0000)] 
bpo-42452: Improve colorsys.rgb_to_hls code (GH-23306)

Cache repeated sum and difference to make code slightly faster and easier to read.

5 years agobpo-42474: test TracebackException comparison to non-equal instances (GH-23522)
Irit Katriel [Fri, 27 Nov 2020 16:38:54 +0000 (16:38 +0000)] 
bpo-42474: test TracebackException comparison to non-equal instances (GH-23522)

Closes bpo-42474

5 years agobpo-41818: Make test_openpty() avoid unexpected success due to number of rows and...
Soumendra Ganguly [Fri, 27 Nov 2020 10:16:41 +0000 (04:16 -0600)] 
bpo-41818: Make test_openpty() avoid unexpected success due to number of rows and/or number of columns being == 0. (GH-23526)

5 years ago bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)
Volker-Weissmann [Fri, 27 Nov 2020 00:41:32 +0000 (01:41 +0100)] 
 bpo-17852: Doc: Fix the tutorial about closing files (GH-23135)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
5 years agoDocument optional 'task'/'asyncgen' fields in call_exception_handler (#21735)
Shane Harvey [Thu, 26 Nov 2020 13:24:48 +0000 (05:24 -0800)] 
Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)

5 years agobpo-41332: Added missing connect_accepted_socket() to AbstractEventLoop (GH-21533)
Alex Grönholm [Thu, 26 Nov 2020 10:09:12 +0000 (12:09 +0200)] 
bpo-41332: Added missing connect_accepted_socket() to AbstractEventLoop (GH-21533)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
5 years agobpo-42392: Remove loop parameter from asyncio.streams (GH-23517)
Yurii Karabas [Thu, 26 Nov 2020 07:36:37 +0000 (09:36 +0200)] 
bpo-42392: Remove loop parameter from asyncio.streams (GH-23517)

5 years agobpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform...
Andrew Svetlov [Wed, 25 Nov 2020 17:06:12 +0000 (19:06 +0200)] 
bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform (GH-23514)

5 years agoTypo: fix inverted sense of statement (GH-23288)
basak [Wed, 25 Nov 2020 14:12:17 +0000 (14:12 +0000)] 
Typo: fix inverted sense of statement (GH-23288)

Looks like a "not" was inadvertently omitted in commit e6a7ea4.
Classmethods are useful when data stored in specific instances are *not*
needed.

Automerge-Triggered-By: GH:JulienPalard