Mohamed Koubaa
1baf030a90
bpo-1635741 port _curses_panel to multi-phase init (PEP 489) (GH-21986)
2020-09-07 17:14:25 +02:00
Mohamed Koubaa
2aabc3200b
bpo-1635741: Port _overlapped module to multi-phase init (GH-22051)
...
Port the _overlapped extension module to multi-phase initialization (PEP 489).
2020-09-07 15:12:40 +02:00
Mohamed Koubaa
426f2b4f13
bpo-1635741: Port _opcode module to multi-phase init (PEP 489) (GH-22050)
2020-09-07 10:48:44 +02:00
Mohamed Koubaa
1aaa21ff81
bpo-1635741 port zlib module to multi-phase init (GH-21995)
...
Port the zlib extension module to multi-phase initialization (PEP 489).
2020-09-07 10:27:55 +02:00
Andre Delfino
5bfd60fc2b
[doc] Add link to Generic in typing (GH-22125)
2020-09-06 22:29:38 -07:00
Raymond Hettinger
67c998de24
bpo-41513: Expand comments and add references for a better understanding (GH-22123)
2020-09-06 15:10:07 -07:00
Mohamed Koubaa
63f102fe07
bpo-1635741: Port _sha1, _sha512, _md5 to multiphase init (GH-21818)
...
Port the _sha1, _sha512, and _md5 extension modules
to multi-phase initialization API (PEP 489).
2020-09-06 12:09:51 +02:00
Zackery Spytz
5371a464ce
closes bpo-41723: Fix an error in the py_compile documentation. (GH-22110)
2020-09-05 22:39:23 -05:00
Andre Delfino
2623868ede
[doc] Fix padding in some typing definitions (GH-22114)
...
Automerge-Triggered-By: @gvanrossum
2020-09-05 16:40:25 -07:00
johnthagen
1264d0465a
Fix documented Python version for venv --upgrade-deps (GH-22113)
...
Fixes incorrect Python version added for `venv` `--upgrade-deps` in #13100 . This feature was added in Python 3.9 not 3.8.
Relates to:
-
- 1cba1c9aba
Automerge-Triggered-By: @vsajip
2020-09-05 13:53:47 -07:00
Erlend Egeberg Aasland
7f331c898a
bpo-40318: Migrate to SQLite3 trace v2 API (GH-19581)
...
Ref. https://sqlite.org/c3ref/trace_v2.html
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-09-05 21:43:31 +01:00
Jakub Kulík
8c0be6fd91
bpo-41687: Fix sendfile implementation to work with Solaris ( #22040 )
2020-09-05 12:10:01 -07:00
Steve Dower
dd18001c30
bpo-41627: Distinguish 32 and 64-bit user site packages on Windows (GH-22098)
...
Also fixes the error message returned when sysconfig fails to interpolate a variable correctly.
2020-09-05 00:45:54 +01:00
Zackery Spytz
51b84f8e96
bpo-38585: Remove references to defusedexpat (GH-22095)
...
defusedexpat is not maintained.
2020-09-04 13:57:48 -07:00
Stefan Krah
84a7917b4c
bpo-41721: Add xlc options (GH-22096)
2020-09-04 22:33:17 +02:00
Serhiy Storchaka
306cfb3a37
bpo-40486: Specify what happens if directory content change diring iteration (GH-22025)
2020-09-04 21:19:30 +03:00
Serhiy Storchaka
8171580871
bpo-41638: Improve ProgrammingError message for absent parameter. (GH-21999)
...
It contains now the name of the parameter instead of its index when parameters
are supplied as a dict.
2020-09-04 20:55:41 +03:00
Victor Stinner
4b8032e5a4
bpo-41713: _signal doesn't use multi-phase init (GH-22087)
...
Partially revert commit 71d1bd9569c8a497e279f2fea6fe47cd70a87ea3:
don't use multi-phase initialization (PEP 489) for the _signal
extension module.
2020-09-04 14:51:05 +02:00
Dong-hee Na
54a66ade20
bpo-41700: Skip test if the locale is not supported (GH-22081)
2020-09-04 17:47:40 +09:00
Vinay Sajip
cdbff3527c
[doc] Update documentation on logging optimization. (GH-22075)
2020-09-03 19:44:12 +01:00
Pablo Galindo
e55a0e971b
Fix 'gather' rules in the python parser generator (GH-22021)
...
Currently, empty sequences in gather rules make the conditional for
gather rules fail as empty sequences evaluate as "False". We need to
explicitly check for "None" (the failure condition) to avoid false
negatives.
2020-09-03 15:29:55 +01:00
Pablo Galindo
315a61f7a9
bpo-41697: Correctly handle KeywordOrStarred when parsing arguments in the parser (GH-22077)
2020-09-03 15:29:32 +01:00
Mario Šaško
8516060076
[doc] Fix a typo in the graphlib docs ( #22030 )
2020-09-03 11:00:10 +01:00
Mohamed Koubaa
71d1bd9569
bpo-1635741: Port _signal module to multi-phase init (PEP 489) (GH-22049)
2020-09-03 10:21:06 +02:00
Todd
e223d06a8b
bpo-39883: Use BSD0 license for code in docs (GH-17635)
...
The PSF board approved this use.
2020-09-02 22:22:36 -07:00
Ben Darnell
be435ae2b0
bpo-39010: Improve test shutdown ( #22066 )
...
Simply closing the event loop isn't enough to avoid warnings. If we
don't also shut down the event loop's default executor, it sometimes
logs a "dangling thread" warning.
Follow-up to GH-22017
2020-09-02 21:58:50 -07:00
Shantanu
0770ad948c
bpo-41696: Fix handling of debug mode in asyncio.run ( #22069 )
...
* bpo-41696: Fix handling of debug mode in asyncio.run
This allows PYTHONASYNCIODEBUG or -X dev to enable asyncio debug mode
when using asyncio.run
* 📜 🤖 Added by blurb_it.
Co-authored-by: hauntsaninja <>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2020-09-02 21:54:46 -07:00
Pablo Galindo
4a97b1517a
bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053)
...
This program can segfault the parser by stack overflow:
```
import ast
code = "f(" + ",".join(['a' for _ in range(100000)]) + ")"
print("Ready!")
ast.parse(code)
```
the reason is that the rule for arguments has a simple recursion when collecting args:
args[expr_ty]:
[...]
| a=named_expression b=[',' c=args { c }] {
[...] }
2020-09-02 17:44:19 +01:00
Benjamin Peterson
3940333637
closes bpo-41689: Preserve text signature from tp_doc in C heap type creation. (GH-22058)
2020-09-02 11:29:06 -05:00
Pablo Galindo
5a4a963a6c
Fix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047)
2020-09-02 15:29:38 +01:00
Pablo Galindo
f9c5e3f5f6
bpo-41675: Modernize siginterrupt calls (GH-22028)
...
siginterrupt is deprecated:
./Modules/signalmodule.c:667:5: warning: ‘siginterrupt’ is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
667 | if (siginterrupt(signalnum, flag)<0) {
2020-09-02 15:29:12 +01:00
Victor Stinner
51fece1bb8
bpo-41685: Don't pin setuptools version anymore in Doc/Makefile (GH-22062)
...
setuptools 50.0.2 is now compatible with Python 3.10:
https://github.com/pypa/setuptools/pull/2361
2020-09-02 13:11:21 +02:00
Victor Stinner
c0d5c131d9
bpo-40204: Update Sphinx to version 3.2.1 in Doc/Makefile (GH-22043)
2020-09-02 12:29:31 +02:00
Mohamed Koubaa
93d50a6a8d
bpo-1635741: Port _sha3 module to multi-phase init (GH-21855)
...
Port the _sha3 extension module to multi-phase init (PEP 489).
Convert static types to heap types.
2020-09-02 11:55:19 +02:00
Mohamed Koubaa
a7f026870d
bpo-1635741: Port _blake2 module to multi-phase init (GH-21856)
...
Port the _blake2 extension module to the multi-phase
initialization API (PEP 489).
2020-09-02 11:45:13 +02:00
han-solo
749ed85e44
Fixed mistake in test for f-string error description (GH-22036) (GH-22059)
2020-09-02 04:56:37 -04:00
Raymond Hettinger
5b24d1592a
Improve hypot() accuracy with three separate accumulators (GH-22032)
2020-09-01 22:00:50 -07:00
Andre Delfino
1d25f5bf7b
Remove reference to Boa Constructor. (GH-22012)
2020-09-01 22:22:55 -05:00
Andre Delfino
dea82b6731
[doc] Remove references to PyChecker. (GH-22011)
2020-09-01 22:21:12 -05:00
Benjamin Peterson
700fa1b836
Note the buffer slots can be set with PyType_Spec with the unlimited API. (GH-22031)
...
Follow up to f7c4e23642
.
2020-09-01 20:36:42 -05:00
Shantanu
17dc1b789e
bpo-39349: Add cancel_futures to Executor.shutdown base class (GH-22023)
...
* Add cancel_futures parameter to the Executor base class, since it was missed in the original PR (https://github.com/python/cpython/pull/18057 ) that added cancel_futures.
2020-09-01 17:18:07 -04:00
Pablo Galindo
9b648a95cc
bpo-41654: Fix deallocator of MemoryError to account for subclasses (GH-22020)
...
When allocating MemoryError classes, there is some logic to use
pre-allocated instances in a freelist only if the type that is being
allocated is not a subclass of MemoryError. Unfortunately in the
destructor this logic is not present so the freelist is altered even
with subclasses of MemoryError.
2020-09-01 19:39:46 +01:00
Marek Madejski
6844b56176
bpo-41528: Use math module in turtle (GH-21837)
...
Use angle-related functions from math module instead of reinventing the wheel.
2020-09-01 12:42:41 -04:00
Victor Stinner
e6905e4c82
bpo-41617: Fix pycore_bitutils.h to support clang 3.0 (GH-22042)
...
__builtin_bswap16() is not available in LLVM clang 3.0.
2020-09-01 18:25:14 +02:00
han-solo
0d6aa7f0ee
bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036)
...
* Fixed `f-string/str.format` error description when using two `,` in format specifier.
Co-authored-by: millefalcon <hanish0019@hmail.com>
2020-09-01 10:34:29 -04:00
Andre Delfino
f5a16b4dbf
[doc] Add link to FileHandler in logging (GH-21940)
...
Co-authored-by: Andrés Delfino <adelfino@onapsis.com>
2020-09-01 13:59:46 +01:00
Ned Deily
a4c4e17f95
bpo-41685: Temporarily pin setuptools to 49.2.1 in Docs venv. (GH-22038)
...
See https://github.com/pypa/setuptools/pull/2361
2020-09-01 05:40:27 -04:00
Andre Delfino
3584d4b64a
[doc] Document VIRTUAL_ENV environment variable (GH-21970)
2020-09-01 07:07:29 +01:00
Ben Darnell
ea5a6363c3
bpo-39010: Fix errors logged on proactor loop restart ( #22017 )
...
Stopping and restarting a proactor event loop on windows can lead to
spurious errors logged (ConnectionResetError while reading from the
self pipe). This fixes the issue by ensuring that we don't attempt
to start multiple copies of the self-pipe reading loop.
2020-08-31 12:57:52 -07:00
Andre Delfino
c3a651ad25
[doc] Fix markup in logging (GH-22008)
2020-08-30 21:36:58 +01:00