Ken Jin
05ab4b60ab
bpo-43766: Implement PEP 647 (User-Defined Type Guards) in typing.py ( #25282 )
2021-04-27 07:31:04 -07:00
Tzu-ping Chung
d92513390a
bpo-43312: Functions returning default and preferred sysconfig schemes (GH-24644)
2021-04-27 09:45:55 +01:00
Ma Lin
93f411838a
Fix thread locks in zlib module may go wrong in rare case. ( #22126 )
...
Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
2021-04-27 10:37:11 +02:00
Inada Naoki
878bc8b6c2
bpo-43651: Fix EncodingWarning in fileinput and its test (GH-25648)
2021-04-27 15:47:16 +09:00
Inada Naoki
caae717c29
bpo-43651: Fix EncodingWarning in zipfile (GH-25650)
2021-04-27 15:45:31 +09:00
Ethan Furman
5987b8c463
bpo-43945: [Enum] Deprecate non-standard mixin format() behavior (GH-25649)
...
In 3.12 the enum member, not the member's value, will be used for
format() calls. Format specifiers can be used to retain the current
display of enum members:
Example enumeration:
class Color(IntEnum):
RED = 1
GREEN = 2
BLUE = 3
Current behavior:
f'{Color.RED}' --> '1'
Future behavior:
f'{Color.RED}' --> 'RED'
Using d specifier:
f'{Color.RED:d}' --> '1'
Using specifiers can be done now and is future-compatible.
2021-04-26 22:42:57 -07:00
Inada Naoki
cfe523b492
bpo-43651: PEP 597: Fix `socket.makefile()` (GH-25645)
2021-04-27 13:16:28 +09:00
Andre Delfino
743e2bae10
[doc] Remove duplicated operator.itemgetter example (GH-24178)
...
* Remove duplicated itemgetter example
* Add spaces
2021-04-26 21:15:31 -07:00
Inada Naoki
9dfefbe3e2
bpo-43651: Fix EncodingWarning in `pydoc`. (GH-25644)
2021-04-27 12:46:20 +09:00
Dennis Sweeney
284c52da09
bpo-38530: Require 50% similarity in NameError and AttributeError suggestions (GH-25584)
2021-04-27 01:22:27 +01:00
Erlend Egeberg Aasland
7244c0060d
bpo-43762: Add audit events for loading of sqlite3 extensions (GH-25246)
2021-04-27 00:16:46 +01:00
Andre Delfino
52cd6d5e1b
Use the zero argument form of super() in examples for Python3 docs. (GH-22314)
2021-04-26 15:13:54 -07:00
Ken Jin
425434dadc
bpo-40432: Use python 3.8 or higher to compile CPython on Windows ( #25389 )
2021-04-26 20:11:43 +01:00
Llandy Riveron Del Risco
8a307e488d
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603)
2021-04-26 14:53:28 -04:00
Ken Jin
1b1f9852bd
bpo-42904: Change search order of typing.get_type_hints eval ( #25632 )
...
While surprising (searching globals before locals in one specific case), this is needed for backwards compatibility.
2021-04-26 10:31:21 -07:00
Eric V. Smith
94549ee728
Add additional keyword-only tests. (GH-25633)
2021-04-26 13:14:28 -04:00
Adorilson Bezerra
bd25bcd37a
Doc: Fix the array.fromfile method doc (GH-22037)
...
The check about the f argument type was removed in this commit:
2c94aa567e
Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
2021-04-26 07:19:21 -07:00
Christian Heimes
5f87915d4a
bpo-43466: Link with libz in PY_UNSUPPORTED_OPENSSL_BUILD path (GH-25587)
...
Some OpenSSL build flavors need libz for compression support.
2021-04-26 15:13:34 +02:00
Christian Heimes
666991fc59
bpo-18233: Add internal methods to access peer chain (GH-25467)
...
The internal `_ssl._SSLSocket` object now provides methods to retrieve
the peer cert chain and verified cert chain as a list of Certificate
objects. Certificate objects have methods to convert the cert to a dict,
PEM, or DER (ASN.1).
These are private APIs for now. There is a slim chance to stabilize the
approach and provide a public API for 3.10. Otherwise I'll provide a
stable API in 3.11.
Signed-off-by: Christian Heimes <christian@python.org>
2021-04-26 15:01:40 +02:00
Christian Heimes
3c586ca500
bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624)
...
Signed-off-by: Christian Heimes <christian@python.org>
2021-04-26 10:54:12 +02:00
Gabriel R F
3c4850e222
Update asyncio-subprocess.rst (GH-21680)
2021-04-25 21:38:16 -07:00
Etienne Gautier
b6daab2f67
documentation: clarification about the function remove in os library (GH-19024)
2021-04-25 21:21:50 -07:00
Taneli Hukkinen
7be870f945
Fix documentation typos of argparse exit_on_error (GH-22706)
2021-04-25 21:04:26 -07:00
uy-rrodriguez
b3dec6f9ed
Quick pydoc update to smtplib.py (GH-22292)
...
Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py.
2021-04-25 18:56:37 -07:00
Denis Laxalde
cb5c802dcf
Fix id of 'Internet Message Format' RFC in email doc (GH-24137)
...
Previous ID (5233) refers to "Sieve Email Filtering: Subaddress
Extension". It seems that the actual reference should be "Internet
Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322 ).
(The typo probably comes from commit 29d1bc0842
in which the ID of
this RFC got updated from the obsolete 2822.)
Co-authored-by: Ambrose Chua <ambrose@hey.com>
2021-04-25 18:38:12 -07:00
Andre Delfino
0d930f108c
Fix copy.Error casing in documentation GH-22004
2021-04-25 18:22:28 -07:00
Andre Delfino
d28b346953
Fix broken links and improve stand-alone tools list in FAQ GH-22124
2021-04-25 18:10:05 -07:00
Eric V. Smith
c0280532dc
Add keyword-only fields to dataclasses. (GH=25608)
2021-04-25 20:42:39 -04:00
Sergey Fedoseev
7f8e072c6d
Remove mention of dst parameter from description of os.lstat() (GH-24704)
...
It looks like it was accidentally copy-pasted in
6fa7aada9b
.
2021-04-25 14:24:41 -07:00
Géry Ogam
a1a5e3c4c8
Fix a typo in datamodel reference document (GH-24930)
2021-04-25 14:13:19 -07:00
Saiyang Gou
f84f1b5c63
bpo-38605: Update __future__ module doc as `annotations` is now "mandatory in 3.11" (GH-25602)
2021-04-25 12:49:26 -07:00
Allen
a31cf86bc2
fix typo in warning ( #20620 )
...
* Add space after period to warning in _tzpath.py
Currently:
InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ...
* Update _tzpath.py
2021-04-25 10:45:05 -07:00
Senthil Kumaran
a89d8a94a0
BaseHTTPRequestHandler, that path includes query ( #25597 )
...
* Clarify, for BaseHTTPRequestHandler, that path includes query
Co-authored-by: David Jones <drj@pobox.com>
2021-04-25 10:08:29 -07:00
Anthony Sottile
c9c27b8004
Set the release for `__future__.annotations` to 3.11 ( #25596 )
2021-04-25 17:09:24 +01:00
Serhiy Storchaka
8af929fc76
bpo-43534: Fix the turtle module working with multiple root windows (GH-25591)
2021-04-25 17:49:32 +03:00
Tymoteusz Wołodźko
09aa6f914d
bpo-38490: statistics: Add covariance, Pearson's correlation, and simple linear regression ( #16813 )
...
Co-authored-by: Tymoteusz Wołodźko <twolodzko+gitkraken@gmail.com
2021-04-25 14:45:09 +03:00
Serhiy Storchaka
172c0f2752
bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554)
...
asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop.
In future releases it will became an alias of asyncio.get_running_loop().
2021-04-25 13:40:44 +03:00
Serhiy Storchaka
face87c94e
bpo-42609: Check recursion depth in the AST validator and optimizer (GH-23744)
2021-04-25 13:38:00 +03:00
Serhiy Storchaka
b5adc8a7e5
bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again (GH-24923)
2021-04-25 13:16:49 +03:00
Serhiy Storchaka
3bb3fb3be0
bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window ( #25187 )
2021-04-25 13:07:58 +03:00
Batuhan Taskaya
8cc3cfa8af
bpo-42737: annotations with complex targets no longer causes any runtime effects (GH-23952)
2021-04-25 05:31:20 +03:00
Stéphane Bidoul
196983563d
bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25576)
...
Update bundled pip to 21.1 and setuptools to 56.0.0
2021-04-24 17:21:50 +01:00
Jason R. Coombs
c6ca368867
bpo-43780: Sync with importlib_metadata 3.10 (GH-25297)
...
* bpo-43780: Sync with importlib_metadata 3.10.
* Add blurb
* Apply changes from importlib_metadata 3.10.1.
2021-04-24 10:13:51 -04:00
Christian Heimes
ce9a064349
bpo-43921: also accept EOF in post-handshake auth test (GH-25574)
2021-04-24 15:08:13 +02:00
Christian Heimes
a460ab3134
bpo-41282: Consistent message and filter warning in setup.py (GH-25571)
...
Signed-off-by: Christian Heimes <christian@python.org>
2021-04-24 09:55:15 +02:00
Christian Heimes
c8666cfa7c
bpo-37322: Fix ResourceWarning and exception handling in test (GH-25553)
...
Revert 73ea546
, increase logging, and improve stability of test.
Handle all OSErrors in a single block. OSError also takes care of
SSLError and socket's connection errors.
Partly reverts commit fb7e750
. The
threaded connection handler must not raise an unhandled exception.
2021-04-24 09:17:54 +02:00
Christian Heimes
f05c2aed7e
bpo-31870: Fix test_get_server_certificate_timeout on Windows (GH-25570)
...
Some OS do not support millisecond granularity in select(). Use 100ms
timeout and a server callback with sleep to emulate a slow server.
2021-04-24 07:54:08 +02:00
Zackery Spytz
b2fac1afaa
bpo-31870: Add a timeout parameter to ssl.get_server_certificate() (GH-22270)
2021-04-23 21:46:01 -07:00
Ethan Furman
6c681e1a4a
bpo-38659: [Enum] do not check '_inverted_' during simple test (GH-25566)
...
Depending on usage, it's possible for Flag members to have the _inverted_ attribute when they are testing, while the Flag being testing against will not have that attribute on its members -- so skip that comparison.
2021-04-23 19:08:22 -07:00
Brett Cannon
481994078f
Restrict GITHUB_TOKEN permissions for the 'stale' workflow (GH-25564)
...
It should only need write-level permissions to pull requests.
2021-04-23 15:18:50 -07:00