Ethan Furman
c266736ec1
bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487)
2020-12-07 00:17:31 -08:00
Ned Deily
212337369a
Update macos installer ReadMe for 3.10.0a3 (GH-23671)
2020-12-06 22:55:12 -05:00
Terry Jan Reedy
57e5113610
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.
2020-12-06 22:22:33 -05:00
Raymond Hettinger
752cdf21eb
bpo-38843: Document behavior of default when the attribute is already set (GH-23653)
2020-12-06 18:29:08 -08:00
Serhiy Storchaka
8a62887dfb
bpo-42582: Remove asyncio._all_tasks_compat(). (GH-23664)
...
It was used to implement now removed asyncio.Task.all_tasks().
2020-12-06 18:54:33 +02:00
kj
6a7fb9d31b
bpo-42576: Clarify only debug builds are affected in news (GH-23663)
2020-12-06 08:37:59 -08:00
idanw206
c598a04dd2
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
2020-12-06 09:59:36 +00:00
kj
804d6893b8
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
2020-12-05 08:02:14 -08:00
Senthil Kumaran
da3d2abe6b
GH-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed ( #23638 )
2020-12-05 05:26:24 -08:00
Zackery Spytz
556d97f473
bpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975)
...
Do the same for PyTuple_SET_ITEM().
2020-12-05 11:34:51 +01:00
Ned Deily
29afab6c5f
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.
2020-12-04 23:02:09 -05:00
Brandt Bucher
226a012d1c
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.
2020-12-04 19:45:57 -08:00
Brett Cannon
2de5097ba4
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.
2020-12-04 15:39:21 -08:00
Pablo Galindo
79c1849b9e
bpo-42545: Improve the error message in the stable API script (GH-23648)
2020-12-04 23:19:21 +00:00
Pablo Galindo
85f1dedb8d
bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)
2020-12-04 22:05:58 +00:00
Irit Katriel
2e0760bb2e
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.
2020-12-04 23:22:03 +02:00
pxinwr
8d4f57dbd1
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)
2020-12-04 12:19:32 -08:00
Irit Katriel
6e1eec71f5
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
2020-12-04 18:45:38 +02:00
Victor Stinner
066394018a
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).
2020-12-04 16:23:56 +01:00
Mark Shannon
eaccc12aa9
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.
2020-12-04 15:22:12 +00:00
Yurii Karabas
f24b8101a0
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
2020-12-04 15:20:53 +00:00
Zackery Spytz
db68544122
bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603)
2020-12-03 17:22:04 +00:00
Victor Stinner
8b6c4a921a
bpo-42262: Py_NewRef() casts its argument to PyObject* (GH-23626)
...
Write also unit tests on Py_NewRef() and Py_XNewRef().
2020-12-03 14:01:10 +01:00
Victor Stinner
7e5e13d113
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.
2020-12-03 13:56:41 +01:00
Serhiy Storchaka
2ad93821a6
bpo-42431: Fix outdated bytes comments (GH-23458)
...
Also move definitions of internal macros F_LJUST etc to private header.
2020-12-03 12:46:16 +02:00
Serhiy Storchaka
f3c3ea91a7
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
2020-12-03 10:48:26 +02:00
Senthil Kumaran
3ec9d01901
Remove the conditional for setting query. ( #23604 )
2020-12-02 19:48:14 -08:00
FX Coudert
5291639e61
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.
2020-12-02 22:20:18 -05:00
Pablo Galindo
dedc2cd5f0
bpo-41625: Do not add os.splice on AIX due to compatibility issues (GH-23608)
2020-12-02 17:57:18 +00:00
Pablo Galindo
99b594404d
bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607)
2020-12-02 17:56:17 +00:00
Mark Shannon
5977a7989d
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.
2020-12-02 13:31:40 +00:00
Mark Shannon
4e7a69bdb6
bpo-42500: Fix recursion in or after except (GH-23568)
...
* Use counter, rather boolean state when handling soft overflows.
2020-12-02 13:30:55 +00:00
Pablo Galindo
93a0ef7647
Correct return type in Modules/_ssl.c::sslmodule_legacy (GH-23609)
2020-12-02 06:07:56 +00:00
Pablo Galindo
46bd5ed94c
bpo-40939: Restore some stable API functions incorrectly deleted (GH-23606)
2020-12-02 05:16:31 +00:00
pxinwr
e483d281bd
bpo-31904: Fix test_netrc for VxWorks RTOS (GH-21675)
...
Fix test_netrc on VxWorks: create temporary directories using temp_cwd().
2020-12-01 21:34:42 +01:00
Victor Stinner
1867b462de
bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595)
2020-12-01 16:22:25 +01:00
dependabot[bot]
8acd0e0d49
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>
2020-12-01 09:00:11 -06:00
dependabot[bot]
a43fea8857
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>
2020-12-01 08:59:12 -06:00
Andre Delfino
bc662c0bd7
[doc] Fix abc.update_abstractmethods markup (GH-23576)
...
Add link to ABCMeta while at it.
2020-12-01 01:45:11 -08:00
Andre Delfino
80a429eae9
Fix bz2 examples markup ( #23580 )
2020-12-01 10:41:12 +01:00
Victor Stinner
32bd68c839
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()
2020-12-01 10:37:39 +01:00
Victor Stinner
00d7abd7ef
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().
2020-12-01 09:56:42 +01:00
pxinwr
b2d0c66e88
bpo-31904: Fix fifo test cases for VxWorks (GH-20254)
2020-12-01 09:20:50 +01:00
Raymond Hettinger
cc061d0e6f
bpo-38200: Add itertools.pairwise() (GH-23549)
2020-11-30 20:42:54 -08:00
Irit Katriel
427613f005
bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531)
2020-11-30 17:35:25 -08:00
pxinwr
1244c816d7
bpo-31904: Support signal module on VxWorks (GH-23391)
2020-11-30 22:48:33 +01:00
Christian Heimes
5c73afc36e
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>
2020-11-30 22:34:45 +01:00
Pablo Galindo
9bdc40ee3e
Refactor the grammar to match the language specification docs (GH-23574)
2020-11-30 19:42:38 +00:00
James Gerity
bcc9579227
bpo-42485: [Doc] Link to PEP 617 from full grammar specification (GH-23532)
...
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2020-11-30 19:08:26 +00:00
Raymond Hettinger
7f82f22eba
bpo-42501: Revise the usage note for Enums with the choices (GH-23563)
2020-11-30 09:55:13 -08:00