summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-42904: Change search order of typing.get_type_hints eval (#25632)Ken Jin2021-04-263-3/+17
| | | While surprising (searching globals before locals in one specific case), this is needed for backwards compatibility.
* Add additional keyword-only tests. (GH-25633)Eric V. Smith2021-04-261-1/+29
|
* Doc: Fix the array.fromfile method doc (GH-22037)Adorilson Bezerra2021-04-261-2/+1
| | | | | | | The check about the f argument type was removed in this commit: https://github.com/python/cpython/commit/2c94aa567e525c82041ad68a3174d8c3acbf37e2 Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with this bug.
* bpo-43466: Link with libz in PY_UNSUPPORTED_OPENSSL_BUILD path (GH-25587)Christian Heimes2021-04-261-1/+2
| | | Some OpenSSL build flavors need libz for compression support.
* bpo-18233: Add internal methods to access peer chain (GH-25467)Christian Heimes2021-04-269-6/+563
| | | | | | | | | | | | 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>
* bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624)Christian Heimes2021-04-261-5/+9
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Update asyncio-subprocess.rst (GH-21680)Gabriel R F2021-04-261-1/+1
|
* documentation: clarification about the function remove in os library (GH-19024)Etienne Gautier2021-04-261-0/+1
|
* Fix documentation typos of argparse exit_on_error (GH-22706)Taneli Hukkinen2021-04-261-1/+1
|
* Quick pydoc update to smtplib.py (GH-22292)uy-rrodriguez2021-04-261-2/+2
| | | Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py.
* Fix id of 'Internet Message Format' RFC in email doc (GH-24137)Denis Laxalde2021-04-262-2/+2
| | | | | | | | | | 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>
* Fix copy.Error casing in documentation GH-22004Andre Delfino2021-04-261-1/+1
|
* Fix broken links and improve stand-alone tools list in FAQ GH-22124Andre Delfino2021-04-263-10/+9
|
* Add keyword-only fields to dataclasses. (GH=25608)Eric V. Smith2021-04-264-38/+298
|
* Remove mention of dst parameter from description of os.lstat() (GH-24704)Sergey Fedoseev2021-04-251-1/+1
| | | | It looks like it was accidentally copy-pasted in 6fa7aada9bd3616e0beeb266e818497b2ec1c859.
* Fix a typo in datamodel reference document (GH-24930)Géry Ogam2021-04-251-1/+1
|
* bpo-38605: Update __future__ module doc as `annotations` is now "mandatory ↵Saiyang Gou2021-04-251-1/+1
| | | | in 3.11" (GH-25602)
* fix typo in warning (#20620)Allen2021-04-251-1/+1
| | | | | | | | * 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
* BaseHTTPRequestHandler, that path includes query (#25597)Senthil Kumaran2021-04-251-1/+3
| | | | | * Clarify, for BaseHTTPRequestHandler, that path includes query Co-authored-by: David Jones <drj@pobox.com>
* Set the release for `__future__.annotations` to 3.11 (#25596)Anthony Sottile2021-04-251-1/+1
|
* bpo-43534: Fix the turtle module working with multiple root windows (GH-25591)Serhiy Storchaka2021-04-252-8/+8
|
* bpo-38490: statistics: Add covariance, Pearson's correlation, and simple ↵Tymoteusz Wołodźko2021-04-256-1/+326
| | | | | linear regression (#16813) Co-authored-by: Tymoteusz Wołodźko <twolodzko+gitkraken@gmail.com
* bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() ↵Serhiy Storchaka2021-04-2516-183/+568
| | | | | | (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().
* bpo-42609: Check recursion depth in the AST validator and optimizer (GH-23744)Serhiy Storchaka2021-04-255-149/+309
|
* bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() ↵Serhiy Storchaka2021-04-252-2/+5
| | | | transitient again (GH-24923)
* bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by ↵Serhiy Storchaka2021-04-257-7/+25
| | | | window managers on macOS and X Window (#25187)
* bpo-42737: annotations with complex targets no longer causes any runtime ↵Batuhan Taskaya2021-04-254-0/+23
| | | | effects (GH-23952)
* bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25576)Stéphane Bidoul2021-04-245-2/+3
| | | Update bundled pip to 21.1 and setuptools to 56.0.0
* bpo-43780: Sync with importlib_metadata 3.10 (GH-25297)Jason R. Coombs2021-04-246-75/+275
| | | | | | | * bpo-43780: Sync with importlib_metadata 3.10. * Add blurb * Apply changes from importlib_metadata 3.10.1.
* bpo-43921: also accept EOF in post-handshake auth test (GH-25574)Christian Heimes2021-04-241-1/+3
|
* bpo-41282: Consistent message and filter warning in setup.py (GH-25571)Christian Heimes2021-04-242-3/+11
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-37322: Fix ResourceWarning and exception handling in test (GH-25553)Christian Heimes2021-04-241-38/+38
| | | | | | | | | 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.
* bpo-31870: Fix test_get_server_certificate_timeout on Windows (GH-25570)Christian Heimes2021-04-241-1/+5
| | | | Some OS do not support millisecond granularity in select(). Use 100ms timeout and a server callback with sleep to emulate a slow server.
* bpo-31870: Add a timeout parameter to ssl.get_server_certificate() (GH-22270)Zackery Spytz2021-04-245-6/+27
|
* bpo-38659: [Enum] do not check '_inverted_' during simple test (GH-25566)Ethan Furman2021-04-241-2/+2
| | | 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.
* Restrict GITHUB_TOKEN permissions for the 'stale' workflow (GH-25564)Brett Cannon2021-04-231-0/+3
| | | It should only need write-level permissions to pull requests.
* bpo-30555: Fix WindowsConsoleIO fails in the presence of fd redirection ↵Segev Finer2021-04-2310-125/+144
| | | | | | | | (GH-1927) This works by not caching the handle and instead getting the handle from the file descriptor each time, so that if the actual handle changes by fd redirection closing/opening the console handle beneath our feet, we will keep working correctly.
* bop-43652: Update Tcl and Tk to 8.6.11 in Windows installer (GH-25170)Terry Jan Reedy2021-04-233-4/+5
|
* Silence find_module() DeprecationWarning on Windows tests (GH-25563)Brett Cannon2021-04-231-1/+4
|
* bpo-43907: add missing memoize call in pure python pickling of bytearray ↵Carl Friedrich Bolz-Tereick2021-04-233-0/+13
| | | | (GH-25501)
* bpo-39950: add `pathlib.Path.hardlink_to()` method that supersedes ↵Barney Gale2021-04-235-4/+64
| | | | | | | | | | | `link_to()` (GH-18909) The argument order of `link_to()` is reversed compared to what one may expect, so: a.link_to(b) Might be expected to create *a* as a link to *b*, in fact it creates *b* as a link to *a*, making it function more like a "link from". This doesn't match `symlink_to()` nor the documentation and doesn't seem to be the original author's intent. This PR deprecates `link_to()` and introduces `hardlink_to()`, which has the same argument order as `symlink_to()`.
* bpo-43921: ignore failing test_wrong_cert_tls13 on Windows (GH-25561)Christian Heimes2021-04-231-2/+10
| | | | | | | test_wrong_cert_tls13 sometimes fails on some Windows buildbots. Turn failing test case into skipped test case until we have more time to investigate. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43538: Add extra arguments to os.startfile (GH-25538)Steve Dower2021-04-236-25/+126
|
* bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)Steve Dower2021-04-233-1/+29
|
* bpo-35114: Make ssl.RAND_status() return a bool (GH-20063)Zackery Spytz2021-04-233-5/+7
|
* bpo-43914: Highlight invalid ranges in SyntaxErrors (#25525)Pablo Galindo2021-04-2317-592/+1060
| | | | | | | | | | | | | | | | | To improve the user experience understanding what part of the error messages associated with SyntaxErrors is wrong, we can highlight the whole error range and not only place the caret at the first character. In this way: >>> foo(x, z for z in range(10), t, w) File "<stdin>", line 1 foo(x, z for z in range(10), t, w) ^ SyntaxError: Generator expression must be parenthesized becomes >>> foo(x, z for z in range(10), t, w) File "<stdin>", line 1 foo(x, z for z in range(10), t, w) ^^^^^^^^^^^^^^^^^^^^ SyntaxError: Generator expression must be parenthesized
* bpo-43868: Remove PyOS_ReadlineFunctionPointer from the stable ABI list ↵Petr Viktorin2021-04-235-2/+10
| | | | | | | | | | | (GH-25442) The inclusion of PyOS_ReadlineFunctionPointer in python3dll.c was a mistake. According to PEP 384: > functions expecting FILE* are not part of the ABI, to avoid depending > on a specific version of the Microsoft C runtime DLL on Windows. https://bugs.python.org/issue43868
* bpo-38820: Test with OpenSSL 3.0.0-alpha15 (GH-25537)Christian Heimes2021-04-232-2/+2
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43795: PEP-652: Clean up the stable ABI/limited API (GH-25482)Petr Viktorin2021-04-237-14/+7
| | | | | | | | | | | | | | | | | | - `_Py_EncodeLocaleRaw`, which is private by name, undocumented, and wasn't exported in `python3.dll`, is moved to a private header. - `_Py_HashSecret_Initialized`, again private by name, undocumented, and not exported in `python3.dll`, is excluded with `Py_LIMITED_API`. - `PyMarshal_*` and `PyMember_*One` functions, declared in private headers and not exported in `python3.dll`, are removed from `Doc/data/stable_abi.dat`. - `PyMem_Calloc` which *was* exported in `python3dll.c`, is moved to public headers where it joins its other `PyMem_*` friends. Only the last change is documented in the blurb; others are not user-visible. (Nothing uses `Doc/data/stable_abi.dat` yet.) https://bugs.python.org/issue43795
* bpo-43795: PEP-652: Simplify headers for easier static analysis (GH-25483)Petr Viktorin2021-04-232-1/+4
| | | | | | | | | | | | | | | | | | | | As part of the PEP-652 implementation, I'll tighten the CI check for functions/data defined with `Py_LIMITED_API`. Discussion in https://discuss.python.org/t/pep-652-maintaining-the-stable-abi/6986 suggests that parsing C headers is OK (though personally I'd rather generate it...), but writing a full C parser is a monumental task and adding an existing one as a dependency brings too many vendoring/bootstraping issues. So, for the check I'll use a "simple" regex on preprocessor output, and adapt the few trivial places where the regex won't work. - Keep declarations in the limited API to one item per line - Make it possible to override `_Py_NO_RETURN`, so the annotation can be removed from preprocessor output. https://bugs.python.org/issue43795