Skip to content

Commit cfde17e

Browse files
Merge branch 'main' into tkinter-text-sync
2 parents 487ae5b + 2e5843e commit cfde17e

34 files changed

Lines changed: 2916 additions & 155 deletions

.github/workflows/jit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
- name: JIT without optimizations (Debug)
184184
configure_flags: --enable-experimental-jit --with-pydebug
185185
test_env: "PYTHON_UOPS_OPTIMIZE=0"
186+
- name: JIT with stress testing (Debug)
187+
configure_flags: --enable-experimental-jit --with-pydebug
188+
test_env: "PYTHON_JIT_STRESS=1"
186189
- name: JIT with tail calling interpreter
187190
configure_flags: --enable-experimental-jit --with-tail-call-interp --with-pydebug
188191
use_clang: true

Doc/c-api/bytes.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,18 @@ Getters
384384
385385
Get the writer size.
386386
387+
The function does not invalidate pointers returned by
388+
:c:func:`PyBytesWriter_GetData`.
389+
387390
The function cannot fail.
388391
389392
.. c:function:: void* PyBytesWriter_GetData(PyBytesWriter *writer)
390393
391394
Get the writer data: start of the internal buffer.
392395
393-
The pointer is valid until :c:func:`PyBytesWriter_Finish` or
394-
:c:func:`PyBytesWriter_Discard` is called on *writer*.
396+
The pointer remains valid until a :c:type:`PyBytesWriter` function other
397+
than :c:func:`PyBytesWriter_GetData` or :c:func:`PyBytesWriter_GetSize` is
398+
called on *writer*.
395399
396400
The function cannot fail.
397401

Doc/library/curses.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,17 @@ The module :mod:`!curses` defines the following functions:
204204
character-at-a-time line editing without touching the rest of the screen.
205205

206206

207+
.. function:: nofilter()
208+
209+
Undo the effect of a previous :func:`.filter` call.
210+
Like :func:`.filter`, it must be called before :func:`initscr` so that the
211+
next initialization uses the full screen again.
212+
213+
Availability: if the underlying curses library provides ``nofilter()``.
214+
215+
.. versionadded:: next
216+
217+
207218
.. function:: flash()
208219

209220
Flash the screen. That is, change it to reverse-video and then change it back

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ Formatter Objects
690690
:param defaults: A dictionary with default values to use in custom fields.
691691
For example,
692692
``logging.Formatter('%(ip)s %(message)s', defaults={"ip": None})``
693-
:type defaults: dict[str, Any]
693+
:type defaults: dict[str, typing.Any]
694694

695695
.. versionchanged:: 3.2
696696
Added the *style* parameter.

0 commit comments

Comments
 (0)