Skip to content

Commit 4ad032e

Browse files
authored
Merge branch 'main' into fix-issue-137696
2 parents a892331 + 3663b2a commit 4ad032e

File tree

10 files changed

+961
-159
lines changed

10 files changed

+961
-159
lines changed

Doc/library/asyncio-protocol.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,11 @@ Subprocess Transports
390390
Return the transport for the communication pipe corresponding to the
391391
integer file descriptor *fd*:
392392

393-
* ``0``: readable streaming transport of the standard input (*stdin*),
393+
* ``0``: writable streaming transport of the standard input (*stdin*),
394394
or :const:`None` if the subprocess was not created with ``stdin=PIPE``
395-
* ``1``: writable streaming transport of the standard output (*stdout*),
395+
* ``1``: readable streaming transport of the standard output (*stdout*),
396396
or :const:`None` if the subprocess was not created with ``stdout=PIPE``
397-
* ``2``: writable streaming transport of the standard error (*stderr*),
397+
* ``2``: readable streaming transport of the standard error (*stderr*),
398398
or :const:`None` if the subprocess was not created with ``stderr=PIPE``
399399
* other *fd*: :const:`None`
400400

Doc/library/asyncio-sync.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Event
157157

158158
Clear (unset) the event.
159159

160-
Tasks awaiting on :meth:`~Event.wait` will now block until the
160+
Subsequent tasks awaiting on :meth:`~Event.wait` will now block until the
161161
:meth:`~Event.set` method is called again.
162162

163163
.. method:: is_set()

Doc/library/profile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ Analysis of the profiler data is done using the :class:`~pstats.Stats` class.
791791
significant entries. Initially, the list is taken to be the complete set
792792
of profiled functions. Each restriction is either an integer (to select a
793793
count of lines), or a decimal fraction between 0.0 and 1.0 inclusive (to
794-
select a percentage of lines), or a string that will interpreted as a
794+
select a percentage of lines), or a string that will be interpreted as a
795795
regular expression (to pattern match the standard name that is printed).
796796
If several restrictions are provided, then they are applied sequentially.
797797
For example::

Include/internal/pycore_global_objects_fini_generated.h

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_global_strings.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ struct _Py_global_strings {
327327
STRUCT_FOR_ID(c_exception)
328328
STRUCT_FOR_ID(c_parameter_type)
329329
STRUCT_FOR_ID(c_return)
330+
STRUCT_FOR_ID(c_stack)
330331
STRUCT_FOR_ID(cached_datetime_module)
331332
STRUCT_FOR_ID(cached_statements)
332333
STRUCT_FOR_ID(cadata)
@@ -341,6 +342,7 @@ struct _Py_global_strings {
341342
STRUCT_FOR_ID(category)
342343
STRUCT_FOR_ID(cb_type)
343344
STRUCT_FOR_ID(certfile)
345+
STRUCT_FOR_ID(chain)
344346
STRUCT_FOR_ID(check_same_thread)
345347
STRUCT_FOR_ID(clear)
346348
STRUCT_FOR_ID(close)
@@ -435,6 +437,7 @@ struct _Py_global_strings {
435437
STRUCT_FOR_ID(excepthook)
436438
STRUCT_FOR_ID(exception)
437439
STRUCT_FOR_ID(existing_file_name)
440+
STRUCT_FOR_ID(exit)
438441
STRUCT_FOR_ID(exp)
439442
STRUCT_FOR_ID(expression)
440443
STRUCT_FOR_ID(extend)
@@ -695,6 +698,7 @@ struct _Py_global_strings {
695698
STRUCT_FOR_ID(rel_tol)
696699
STRUCT_FOR_ID(release)
697700
STRUCT_FOR_ID(reload)
701+
STRUCT_FOR_ID(repeat)
698702
STRUCT_FOR_ID(repl)
699703
STRUCT_FOR_ID(replace)
700704
STRUCT_FOR_ID(reqrefs)
@@ -733,6 +737,7 @@ struct _Py_global_strings {
733737
STRUCT_FOR_ID(shared)
734738
STRUCT_FOR_ID(show_cmd)
735739
STRUCT_FOR_ID(signed)
740+
STRUCT_FOR_ID(signum)
736741
STRUCT_FOR_ID(size)
737742
STRUCT_FOR_ID(sizehint)
738743
STRUCT_FOR_ID(skip_file_prefixes)

Include/internal/pycore_runtime_init_generated.h

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_unicodeobject_generated.h

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_faulthandler.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,17 @@ def test_enable_single_thread(self):
360360
'Segmentation fault',
361361
all_threads=False)
362362

363+
@skip_segfault_on_android
364+
def test_enable_without_c_stack(self):
365+
self.check_fatal_error("""
366+
import faulthandler
367+
faulthandler.enable(c_stack=False)
368+
faulthandler._sigsegv()
369+
""",
370+
3,
371+
'Segmentation fault',
372+
c_stack=False)
373+
363374
@skip_segfault_on_android
364375
def test_disable(self):
365376
code = """

0 commit comments

Comments
 (0)