]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Terry Jan Reedy [Thu, 14 Jul 2022 01:09:07 +0000 (21:09 -0400)]
idlelib: replace 'while 1' with 'while True' (#94827)
Dong-hee Na [Thu, 14 Jul 2022 00:40:10 +0000 (09:40 +0900)]
gh-90359: Unify documentation style for datetime.rst (gh-94836)
Dong-hee Na [Thu, 14 Jul 2022 00:04:52 +0000 (09:04 +0900)]
gh-90359: Update documentation to follow PEP 495. (gh-94800)
da-woods [Wed, 13 Jul 2022 16:13:10 +0000 (17:13 +0100)]
gh-94499 Add test for private name mangling in class pattern matching (#94500)
The current status quo is that private attribute names are not
mangled when a class is matched. I've added a test to
document/legimize this behaviour.
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
neonene [Wed, 13 Jul 2022 16:08:12 +0000 (01:08 +0900)]
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).
Raymond Hettinger [Wed, 13 Jul 2022 14:46:04 +0000 (09:46 -0500)]
GH-81620: Add random.binomialvariate() (GH-94719)
Christian Heimes [Wed, 13 Jul 2022 14:35:28 +0000 (16:35 +0200)]
gh-94759: Create LCOV report with branch coverage (GH-94793)
Oleg Iarygin [Wed, 13 Jul 2022 11:22:45 +0000 (14:22 +0300)]
gh-93649: Fix linkage of _PyTestCapi_Init_Vectorcall (#94702)
Itay [Wed, 13 Jul 2022 03:53:14 +0000 (06:53 +0300)]
gh-94713 - Replacing while 1 with while True (#94714)
Benjamin Peterson [Tue, 12 Jul 2022 21:34:23 +0000 (14:34 -0700)]
Fix typo in _exact_ratio comment. (GH-94789)
Pradyun Gedam [Tue, 12 Jul 2022 19:55:32 +0000 (20:55 +0100)]
Fix heading levels for "Deprecated" section in What's New for 3.12 (GH-94762)
These headings were at the same level as the "Deprecated" heading, but
likely intended to be a subheading within that section.
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Max Zhenzhera [Tue, 12 Jul 2022 17:45:52 +0000 (20:45 +0300)]
docs: typing.Self, fix typo (GH-94771)
* fix typo - double spelled word 'use'
* change methods names to the infinitive form
Christian Heimes [Tue, 12 Jul 2022 16:09:47 +0000 (18:09 +0200)]
gh-94773: deepfreeze: support frozensets with unsortable types (GH-94775)
Petr Viktorin [Tue, 12 Jul 2022 15:06:05 +0000 (17:06 +0200)]
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754)
This is a quick-and-dirty way to run the C++ tests.
It can definitely be improved in the future, but it should fail when things go wrong.
- Run test functions on import (yes, this can definitely be improved)
- Fudge setuptools metadata (name & version) to make the extension installable
- Install and import the extension in test_cppext
Kumar Aditya [Mon, 11 Jul 2022 14:35:47 +0000 (20:05 +0530)]
GH-94736: mark SemLock test as linux only (GH-94750)
See https://buildbot.python.org/all/#/builders/172/builds/2522
The PR skips the test on non-linux platforms.
Automerge-Triggered-By: GH:pablogsal
Kumar Aditya [Mon, 11 Jul 2022 12:32:11 +0000 (18:02 +0530)]
bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274)
Kumar Aditya [Mon, 11 Jul 2022 12:12:36 +0000 (17:42 +0530)]
GH-94736: Fix _multiprocessing.SemLock subclassing (#94738)
* fix allocator and deallocator
* đđ€ Added by blurb_it.
* code review
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
John Belmonte [Mon, 11 Jul 2022 09:22:41 +0000 (18:22 +0900)]
gh-93883: Fix some tests involving traceback formatting (#94737)
PR #93994 was merged without being rebased in a few weeks, and
some new test code using the old scheme passed through automatic merge.
Simon-Martin Schröder [Mon, 11 Jul 2022 09:14:15 +0000 (11:14 +0200)]
gh-87822: Make traceback module robust to exceptions from repr() of local values (GH-94691)
John Belmonte [Mon, 11 Jul 2022 06:40:53 +0000 (15:40 +0900)]
gh-93883: elide traceback indicators when possible (#93994)
* gh-93883: elide traceback indicators when possible
Elide traceback column indicators when the entire line of the
frame is implicated. This reduces traceback length and draws
even more attention to the remaining (very relevant) indicators.
Example:
```
Traceback (most recent call last):
File "query.py", line 99, in <module>
bar()
File "query.py", line 66, in bar
foo()
File "query.py", line 37, in foo
magic_arithmetic('foo')
File "query.py", line 18, in magic_arithmetic
return add_counts(x) / 25
^^^^^^^^^^^^^
File "query.py", line 24, in add_counts
return 25 + query_user(user1) + query_user(user2)
^^^^^^^^^^^^^^^^^
File "query.py", line 32, in query_user
return 1 + query_count(db, response['a']['b']['c']['user'], retry=True)
~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'NoneType' object is not subscriptable
```
Rather than going out of our way to provide indicator coverage
in every traceback test suite, the indicator test suite should
be responible for sufficient coverage (e.g. by adding a basic
exception group test to ensure that margin strings are covered).
Raymond Hettinger [Mon, 11 Jul 2022 03:34:53 +0000 (22:34 -0500)]
Small speed-up for NormalDist.samples (GH-94730)
MonadChains [Sun, 10 Jul 2022 18:04:01 +0000 (20:04 +0200)]
gh-94309: Deprecate typing.Hashable/Sized (GH-94626)
Deprecate typing.Hashable/Sized. Use the collections.abc counterparts directly instead.
To be consistent with PEP 585, deprecated aliases will not raise any DeprecationWarning.
Raymond Hettinger [Sun, 10 Jul 2022 07:40:27 +0000 (02:40 -0500)]
GH-77265: Document NaN handling in statistics functions that sort or count (#94676)
* Document NaN handling in functions that sort or count
* Update Doc/library/statistics.rst
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Update Doc/library/statistics.rst
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* Fix trailing whitespace and rewrap text
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Brandt Bucher [Sun, 10 Jul 2022 00:22:23 +0000 (17:22 -0700)]
GH-94694: Fix column offsets for multi-line method lookups (GH-94697)
Tom Fryers [Sat, 9 Jul 2022 18:26:24 +0000 (19:26 +0100)]
Improve dataclass docstring (gh-94686)
Christian Heimes [Sat, 9 Jul 2022 16:11:15 +0000 (18:11 +0200)]
gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)
Itamar Ostricher [Sat, 9 Jul 2022 13:58:30 +0000 (06:58 -0700)]
pycore_interp.h: Fix comment about pytypedefs.h (#93188)
GH-31527 moved this typedef to `Include/pytypedefs.h`, so this comment
should point at the correct location
Christian Heimes [Sat, 9 Jul 2022 11:01:23 +0000 (13:01 +0200)]
gh-93649: Fix dependencies of _testcapi (#94695)
- header files are located in $(srcdir)
- dependencies must not list C files that are also in a makesetup Setup file
- generate SRCDIRS for OOT builds
CAM Gerlach [Sat, 9 Jul 2022 05:03:47 +0000 (00:03 -0500)]
gh-94700: Rewrite the logging.Formatter API ref in structured form (GH-94701)
Ken Jin [Sat, 9 Jul 2022 04:18:01 +0000 (12:18 +0800)]
gh-94607: Fix subclassing generics (GH-94610)
Co-authored-by: Serhiy Storchaka <3659035+serhiy-storchaka@users.noreply.github.com>
Brandt Bucher [Sat, 9 Jul 2022 01:52:26 +0000 (18:52 -0700)]
GH-93252: Fix error handling for failed Python calls (GH-94693)
Irit Katriel [Fri, 8 Jul 2022 18:01:47 +0000 (19:01 +0100)]
Increase test coverage of Objects/exceptions.c (GH-94674)
Kumar Aditya [Fri, 8 Jul 2022 17:47:37 +0000 (23:17 +0530)]
GH-90699: Intern statically allocated strings (GH-93597)
This is similar to how strings are interned for deepfreeze.
Petr Viktorin [Fri, 8 Jul 2022 15:56:26 +0000 (17:56 +0200)]
gh-93649: Split vectorcall testing from _testcapimodule.c (GH-94549)
The `_testcapimodule.c` file is getting too large to work with effectively.
This PR lays out a general structure of how tests can be split up, with more splitting to come later if the structure is OK.
Vectorcall tests aren't the biggest issue -- it's just an area I want to work on next, so I'm starting here.
An issue specific to vectorcall tests is that it wasn't clear that e.g. `MethodDescriptor2` is related to testing vectorcall: the `/* Test PEP 590 */` section had an ambiguous end. Separate file should make things like this much clearer.
OTOH, for some pieces it might not be clear where they should be -- I left `meth_fastcall` with tests of the other calling conventions. IMO, even with the ambiguity it's still worth it to split the huge file up.
I'm not sure about the buildsystem changes, hopefully CI will tell me what's wrong.
@vstinner, @markshannon: Do you think this is a good idea?
Automerge-Triggered-By: GH:encukou
Oleg Iarygin [Fri, 8 Jul 2022 14:44:15 +0000 (17:44 +0300)]
Use mdash-es consistently in the library docs index (#92762)
Victor Stinner [Fri, 8 Jul 2022 13:20:15 +0000 (15:20 +0200)]
gh-94199: Remove the ssl.wrap_socket() function (#94203)
Remove the ssl.wrap_socket() function, deprecated in Python 3.7:
instead, create a ssl.SSLContext object and call its
sl.SSLContext.wrap_socket() method. Any package that still uses
ssl.wrap_socket() is broken and insecure. The function neither sends
a SNI TLS extension nor validates server hostname. Code is subject to
CWE-295 : Improper Certificate Validation.
Brandt Bucher [Fri, 8 Jul 2022 12:40:35 +0000 (05:40 -0700)]
gh-94215: Fix error handling for line-tracing events (GH-94681)
* Re-enable crasher
* Fix error handling for line-tracing events
* blurb add
Erlend Egeberg Aasland [Fri, 8 Jul 2022 00:38:38 +0000 (02:38 +0200)]
gh-94622: Add more references to the sqlite3 types anchor (#94623)
Erlend Egeberg Aasland [Thu, 7 Jul 2022 22:33:17 +0000 (00:33 +0200)]
gh-94321: Document sqlite3.PrepareProtocol (#94620)
Kumar Aditya [Thu, 7 Jul 2022 20:04:05 +0000 (01:34 +0530)]
GH-90699: Move generated static initializer to pycore_runtime_generated.h (GH-94051)
Samuel Sloniker [Thu, 7 Jul 2022 19:59:29 +0000 (12:59 -0700)]
gh-93654: Add module docstring to pathlib (GH-94611)
Issue: gh-93654
finefoot [Thu, 7 Jul 2022 14:55:33 +0000 (16:55 +0200)]
gh-94343: Ease initialization of reprlib.Repr attributes (GH-94581)
Christian Heimes [Thu, 7 Jul 2022 12:47:32 +0000 (14:47 +0200)]
gh-94642: Remove -D_XOPEN_SOURCE from more pkg-config CFLAGS (#94657)
Some pkg-config pc files define CFLAGS with -D_XOPEN_SOURCE=600. We always want _XOPEN_SOURCE=700.
Michael Droettboom [Thu, 7 Jul 2022 11:26:56 +0000 (07:26 -0400)]
gh-93910: Fix enum performance regression (GH-94614)
This removes the performance regression in 3.11, **at the expense of not fixing
the "bug" that allows accessing values from values** (e.g. `Color.RED.BLUE`).
Using the benchmark @markshannon [presented](https://github.com/python/cpython/issues/93910#issuecomment-
1165503032 ), the results are:
| Version | Enum | Fast enum | Normal class |
| --- | --- | --- | --- |
| 3.10 | 2.04 | 0.59 | 0.56 |
| 3.11 | 2.78 | 0.31 | 0.15 |
| This PR | 1.30 | 0.32 | 0.16 |
I share this mostly as information about the source of the regression, as this may be useful. It may be that the lower-risk approach for the beta is just to revert to a previously-known working state.
Kumar Aditya [Thu, 7 Jul 2022 10:57:45 +0000 (16:27 +0530)]
GH-94644: fix test_curses ref leak (GH-94647)
Christian Heimes [Thu, 7 Jul 2022 10:57:12 +0000 (12:57 +0200)]
gh-94644: Define HAVE_NCURSESW in pkg-config branch (#94651)
Christian Heimes [Thu, 7 Jul 2022 10:53:57 +0000 (12:53 +0200)]
gh-94215: Add reproducer for segfault in frame_setlineno() (GH-94563)
Erlend Egeberg Aasland [Thu, 7 Jul 2022 09:29:34 +0000 (11:29 +0200)]
gh-94430: Allow params named `module` or `self` with custom C names in Argument Clinic (#94431)
Erlend Egeberg Aasland [Thu, 7 Jul 2022 07:00:20 +0000 (09:00 +0200)]
gh-94628: Add explicit parameter list to sqlite3.connect docs (#94629)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Irit Katriel [Thu, 7 Jul 2022 06:38:36 +0000 (07:38 +0100)]
gh-92228: disable the compiler's 'small exit block inlining' optimization for blocks that have a line number (GH-94592)
Inlining of code that corresponds to source code lines, can make it hard to distinguish later between code which is only reachable from except handlers, and that which is reachable in normal control flow. This caused problems with the debugger's jump feature.
This PR turns off the inlining optimisation for code which has line numbers. We still inline things like the implicit "return None".
Erlend Egeberg Aasland [Wed, 6 Jul 2022 23:13:30 +0000 (01:13 +0200)]
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (#94631)
Erlend Egeberg Aasland [Wed, 6 Jul 2022 20:59:07 +0000 (22:59 +0200)]
gh-94017: Improve clarity of sqlite3 transaction handling docs (#94320)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Kumar Aditya [Wed, 6 Jul 2022 15:18:21 +0000 (20:48 +0530)]
GH-93896: AAlways set event loop in asyncio.run and IsolatedAsyncioTestCase (#94593)
Christian Heimes [Wed, 6 Jul 2022 09:56:25 +0000 (11:56 +0200)]
gh-90005: Port readline and curses to PY_STDLIB_MOD (GH-94452)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Irit Katriel [Wed, 6 Jul 2022 06:15:59 +0000 (07:15 +0100)]
gh-94438: in frameobject's mark_stacks switch, the PUSH_EXC_INFO and POP_EXCEPT cases are no longer reachable (GH-94582)
Pablo Galindo Salgado [Tue, 5 Jul 2022 18:18:47 +0000 (19:18 +0100)]
gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (GH-94511)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Erik De Bonte [Tue, 5 Jul 2022 18:09:41 +0000 (11:09 -0700)]
gh-91330: Tests and docs for dataclass descriptor-typed fields (GH-94424)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Pablo Galindo Salgado [Tue, 5 Jul 2022 16:39:21 +0000 (17:39 +0100)]
gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin (#94386)
* gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* nitty nit
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Carter Dodd [Tue, 5 Jul 2022 15:23:44 +0000 (10:23 -0500)]
gh-90355: Add isolated flag if currently isolated (GH-92857)
Co-authored-by: Ăric <merwok@netwok.org>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Jeremy Kloth [Tue, 5 Jul 2022 15:08:20 +0000 (10:08 -0500)]
gh-92897: Ensure `venv --copies` respects source build property of the creating interpreter (GH-92899)
Petr Viktorin [Tue, 5 Jul 2022 14:37:28 +0000 (16:37 +0200)]
Docs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Erik Montnemery [Tue, 5 Jul 2022 14:23:12 +0000 (16:23 +0200)]
bpo-46755: Don't log stack info twice in QueueHandler (GH-31355)
Irit Katriel [Tue, 5 Jul 2022 12:38:44 +0000 (13:38 +0100)]
gh-94485: Set line number of module's RESUME instruction to 0, as specified by PEP 626 (GH-94552)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Ćukasz Langa [Tue, 5 Jul 2022 12:14:19 +0000 (14:14 +0200)]
gh-84753: Clarify change made to `inspect` functions (#94554)
Victor Stinner [Tue, 5 Jul 2022 10:11:42 +0000 (12:11 +0200)]
gh-94379: Remove zipimport find_loader() and find_module() methods (#94380)
zipimport: Remove find_loader() and find_module() methods, deprecated
in Python 3.10: use the find_spec() method instead. See PEP 451 for
the rationale.
Ned Batchelder [Tue, 5 Jul 2022 09:16:10 +0000 (05:16 -0400)]
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
Erlend Egeberg Aasland [Tue, 5 Jul 2022 09:06:04 +0000 (11:06 +0200)]
gh-94538: Fix Argument Clinic output to custom file (#94539)
KotlinIsland [Tue, 5 Jul 2022 08:46:39 +0000 (18:46 +1000)]
gh-93626: Set the release for `__future__.annotations` to `None` (GH-93628)
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Christian Heimes [Tue, 5 Jul 2022 07:25:45 +0000 (09:25 +0200)]
gh-93939: Add script to check extension modules (#94545)
Add script ``Tools/scripts/check_modules.py`` to check and validate builtin
and shared extension modules. The script also handles ``Modules/Setup`` and
will eventually replace ``setup.py``.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Victor Stinner [Mon, 4 Jul 2022 13:51:01 +0000 (15:51 +0200)]
gh-94383: Remove ElementTree.Element.copy() method (#94384)
xml.etree: Remove the ElementTree.Element.copy() method of the pure
Python implementation, deprecated in Python 3.10, use the copy.copy()
function instead. The C implementation of xml.etree has no copy()
method, only a __copy__() method.
Victor Stinner [Mon, 4 Jul 2022 13:29:19 +0000 (15:29 +0200)]
gh-94352: shlex.split() no longer accepts None (#94353)
shlex.split(): Passing None for s argument now raises an exception,
rather than reading sys.stdin. The feature was deprecated in Python
3.9.
Oleg Iarygin [Mon, 4 Jul 2022 13:11:11 +0000 (16:11 +0300)]
gh-94512: Fix forced arg format in AC-processed multiprocessing (GH-94517)
Oleg Iarygin [Mon, 4 Jul 2022 13:10:10 +0000 (16:10 +0300)]
gh-94512: Fix forced arg format in AC-processed winreg (GH-94513)
Oleg Iarygin [Mon, 4 Jul 2022 13:09:34 +0000 (16:09 +0300)]
gh-94512: Fix forced arg format in AC-processed msvcrtmodule (GH-94514)
Vinay Sajip [Mon, 4 Jul 2022 05:06:43 +0000 (06:06 +0100)]
Update logging documentation: change cross-reference and add webapp r⊠(GH-94540)
Jason R. Coombs [Sun, 3 Jul 2022 19:17:27 +0000 (15:17 -0400)]
gh-93963: Officially deprecate abcs and warn about their usage. (GH-93965)
Fixes #93963
Automerge-Triggered-By: GH:jaraco
Thomas Perl [Sun, 3 Jul 2022 18:58:02 +0000 (20:58 +0200)]
gh-92869: ctypes: Add c_time_t (#92870)
Adds `ctypes.c_time_t` to represent the C `time_t` type accurately as its size varies.
Primarily-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
Terry Jan Reedy [Sun, 3 Jul 2022 16:56:44 +0000 (12:56 -0400)]
IDLE doc: Tweek RESTART and Windows console start (#94530)
Oleg Iarygin [Sat, 2 Jul 2022 06:53:43 +0000 (09:53 +0300)]
gh-93096: Remove `python -m base64 -t` (gh-94230)
Erlend Egeberg Aasland [Sat, 2 Jul 2022 06:35:48 +0000 (08:35 +0200)]
Doc: fix sqlite3 blob reference anchor (#94505)
Erlend Egeberg Aasland [Sat, 2 Jul 2022 06:24:19 +0000 (08:24 +0200)]
gh-94393: Remove unneeded module state from _json (#94394)
Oleg Iarygin [Sat, 2 Jul 2022 05:45:31 +0000 (08:45 +0300)]
gh-93096: Remove `python -m codecs` (gh-94233)
Christian Heimes [Fri, 1 Jul 2022 19:48:38 +0000 (21:48 +0200)]
gh-90005: Port _dbm module to PY_STDLIB_MOD (GH-94433)
Sam Ezeh [Fri, 1 Jul 2022 16:21:27 +0000 (17:21 +0100)]
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416)
Mariatta Wijaya [Fri, 1 Jul 2022 15:51:46 +0000 (08:51 -0700)]
Update code sample when importing modules in queue doc (GH-94244)
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.
Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
Stanley [Fri, 1 Jul 2022 15:18:07 +0000 (08:18 -0700)]
gh-75372: Specify major version in README for installation (GH-92759)
Irit Katriel [Fri, 1 Jul 2022 14:33:35 +0000 (15:33 +0100)]
gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)
Mark Shannon [Fri, 1 Jul 2022 13:01:14 +0000 (14:01 +0100)]
GH-94438: Account for NULLs on evaluation stack when jumping lines. (GH-94444)
Ezio Melotti [Fri, 1 Jul 2022 11:06:09 +0000 (13:06 +0200)]
Remove pr trigger from project-updater GHA. (#94483)
Mark Shannon [Fri, 1 Jul 2022 10:08:20 +0000 (11:08 +0100)]
GH-94262: Don't create frame objects for frames that aren't yet complete. (GH-94371)
Petr Viktorin [Fri, 1 Jul 2022 09:54:30 +0000 (11:54 +0200)]
gh-84461: Tool/wasm/python.html: Add subresource integrity hashes (#93953)
Trey Hunner [Fri, 1 Jul 2022 09:52:58 +0000 (02:52 -0700)]
gh-84461: Improve WebAssembly in-browser demo (#91879)
* Buffer standard input line-by-line
* Add non-root .editorconfig for JS & HTML indent
* Add support for clearing REPL with CTRL+L
* Support unicode in stdout and stderr
* Remove \r\n normalization
* Note that local .editorconfig file extends root
* Only normalize lone \r characters (convert to \n)
* Skip non-printable characters in buffered input
* Fix Safari bug (regex lookbehind not supported)
Co-authored-by: Christian Heimes <christian@python.org>
Ezio Melotti [Fri, 1 Jul 2022 08:33:10 +0000 (10:33 +0200)]
Add a workflow to add issues/PRs to projects. (#94447)
* Add a workflow to add issues/PRs to projects.
* Apply suggestions from code review
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Christian Heimes [Fri, 1 Jul 2022 07:23:41 +0000 (09:23 +0200)]
gh-90005-ffi: Fix building _ctypes without pkg-config (GH-94451)
The fallback path did not set LIBFFI_LIBS variable to link with ``-lffi``.
Mariatta Wijaya [Thu, 30 Jun 2022 17:23:04 +0000 (10:23 -0700)]
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
Guido van Rossum [Thu, 30 Jun 2022 17:10:46 +0000 (10:10 -0700)]
GH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400)
Once the task group is shutting down, it should not be possible to create a new task.
Here "shutting down" means `self._aborting` is set, indicating that at least one task
has failed and we have cancelled all others.
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Mehdi ABAAKOUK [Thu, 30 Jun 2022 17:08:38 +0000 (19:08 +0200)]
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (#94050)
The inspect version was not working with unittest.mock.AsyncMock.
The fix introduces special-casing of AsyncMock in
`inspect.iscoroutinefunction` equivalent to the one
performed in `asyncio.iscoroutinefunction`.
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Jean-Christophe Helary [Thu, 30 Jun 2022 17:06:42 +0000 (02:06 +0900)]
xml.dom.minidom docs: fix typo (#93437)
Guido van Rossum [Thu, 30 Jun 2022 16:16:22 +0000 (09:16 -0700)]
GH-90908: Document asyncio.TaskGroup (GH-94359)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Christian Heimes [Thu, 30 Jun 2022 16:04:10 +0000 (18:04 +0200)]
gh-93491: Fix PEP 11 tier detection for FreeBSD (GH-94441)